Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error #8176: simple_ble_start enable controller failed 259 #11167

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Jason2866
Copy link
Collaborator

@Jason2866 Jason2866 commented Mar 23, 2025

which happens when example https://github.com/espressif/arduino-esp32/tree/master/libraries/WiFiProv/examples/WiFiProv is compiled with pioarduino. The full pioarduino example is here https://github.com/pioarduino/test-rainmaker/tree/wifiprov

This PR fixes this bug by comment out the call to esp_bt_controller_mem_release since, once you release that memory, it cannot be reclaimed per the docs.

Fix #8176

Copy link
Contributor

github-actions bot commented Mar 23, 2025

Warnings
⚠️

Some issues found for the commit messages in this PR:

  • the commit message "Fix error: simple_ble_start enable controller failed 259":
    • summary looks empty
    • type/action looks empty

Please fix these commit messages - here are some basic tips:

  • follow Conventional Commits style
  • correct format of commit message should be: <type/action>(<scope/component>): <summary>, for example fix(esp32): Fixed startup timeout issue
  • allowed types are: change,ci,docs,feat,fix,refactor,remove,revert,test
  • sufficiently descriptive message summary should be between 10 to 72 characters and start with upper case letter
  • avoid Jira references in commit messages (unavailable/irrelevant for our customers)

TIP: Install pre-commit hooks and run this check when committing (uses the Conventional Precommit Linter).

👋 Hello Jason2866, we appreciate your contribution to this project!


📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more.

🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project.

Click to see more instructions ...


This automated output is generated by the PR linter DangerJS, which checks if your Pull Request meets the project's requirements and helps you fix potential issues.

DangerJS is triggered with each push event to a Pull Request and modify the contents of this comment.

Please consider the following:
- Danger mainly focuses on the PR structure and formatting and can't understand the meaning behind your code or changes.
- Danger is not a substitute for human code reviews; it's still important to request a code review from your colleagues.
- Resolve all warnings (⚠️ ) before requesting a review from human reviewers - they will appreciate it.
- To manually retry these Danger checks, please navigate to the Actions tab and re-run last Danger workflow.

Review and merge process you can expect ...


We do welcome contributions in the form of bug reports, feature requests and pull requests.

1. An internal issue has been created for the PR, we assign it to the relevant engineer.
2. They review the PR and either approve it or ask you for changes or clarifications.
3. Once the GitHub PR is approved we do the final review, collect approvals from core owners and make sure all the automated tests are passing.
- At this point we may do some adjustments to the proposed change, or extend it by adding tests or documentation.
4. If the change is approved and passes the tests it is merged into the default branch.

Generated by 🚫 dangerJS against 1145aec

Copy link
Contributor

github-actions bot commented Mar 23, 2025

Test Results

 76 files   76 suites   11m 52s ⏱️
 38 tests  38 ✅ 0 💤 0 ❌
241 runs  241 ✅ 0 💤 0 ❌

Results for commit 1145aec.

♻️ This comment has been updated with latest results.

@Jason2866 Jason2866 added this to the 3.2.0 milestone Mar 23, 2025
Copy link
Contributor

Memory usage test (comparing PR against master branch)

The table below shows the summary of memory usage change (decrease - increase) in bytes and percentage for each target.

MemoryFLASH [bytes]FLASH [%]RAM [bytes]RAM [%]
TargetDECINCDECINCDECINCDECINC
ESP32P4000.000.00000.000.00
ESP32S3💚 -884‼️ +4K💚 -0.25⚠️ +0.43💚 -20⚠️ +456💚 -0.03⚠️ +0.73
ESP32S20‼️ +4K0.00⚠️ +0.380⚠️ +120.00⚠️ +0.02
ESP32C3💚 -9420💚 -0.350.00💚 -40💚 -0.030.00
ESP32C6💚 -380💚 -0.010.00000.000.00
ESP32H2💚 -400💚 -0.010.00000.000.00
ESP32💚 -1236‼️ +11K💚 -0.37‼️ +1.11💚 -88⚠️ +4💚 -0.43⚠️ +0.01
Click to expand the detailed deltas report [usage change in BYTES]
TargetESP32P4ESP32S3ESP32S2ESP32C3ESP32C6ESP32H2ESP32
ExampleFLASHRAMFLASHRAMFLASHRAMFLASHRAMFLASHRAMFLASHRAMFLASHRAM
ArduinoOTA/examples/BasicOTA00💚 -584💚 -400💚 -9220💚 -200--💚 -828💚 -88
AsyncUDP/examples/AsyncUDPClient00💚 -584💚 -400💚 -9220💚 -200--💚 -816💚 -88
AsyncUDP/examples/AsyncUDPMulticastServer00💚 -580💚 -400💚 -9220💚 -200--💚 -800💚 -88
AsyncUDP/examples/AsyncUDPServer00💚 -584💚 -400💚 -9220💚 -200--💚 -824💚 -88
DNSServer/examples/CaptivePortal00💚 -584💚 -400💚 -9220💚 -200--💚 -856💚 -88
EEPROM/examples/eeprom_class00💚 -544💚 -400💚 -920💚 -4💚 -240💚 -300💚 -820💚 -88
EEPROM/examples/eeprom_extra00💚 -560💚 -400💚 -920💚 -4💚 -220💚 -300💚 -820💚 -88
EEPROM/examples/eeprom_write00💚 -560💚 -400💚 -922💚 -4💚 -220💚 -300💚 -820💚 -88
ESP32/examples/AnalogOut/LEDCFade00💚 -560💚 -400💚 -926💚 -4💚 -220💚 -320💚 -820💚 -88
ESP32/examples/AnalogOut/LEDCSingleChannel00💚 -560💚 -400💚 -918💚 -4💚 -220💚 -320💚 -820💚 -88
ESP32/examples/AnalogOut/LEDCSoftwareFade00💚 -560💚 -400💚 -920💚 -4💚 -240💚 -340💚 -820💚 -88
ESP32/examples/AnalogOut/SigmaDelta00💚 -560💚 -400💚 -920💚 -4💚 -220💚 -320💚 -820💚 -88
ESP32/examples/AnalogOut/ledcFrequency00💚 -560💚 -400💚 -922💚 -4💚 -240💚 -340💚 -820💚 -88
ESP32/examples/AnalogOut/ledcWrite_RGB00💚 -560💚 -400💚 -920💚 -4💚 -240💚 -320💚 -820💚 -88
ESP32/examples/AnalogRead00💚 -560💚 -400💚 -920💚 -4💚 -240💚 -340💚 -804💚 -88
ESP32/examples/AnalogReadContinuous00💚 -560💚 -400💚 -924💚 -4💚 -260💚 -280💚 -820💚 -88
ESP32/examples/ArduinoStackSize00💚 -544💚 -400💚 -920💚 -4💚 -220💚 -340💚 -820💚 -88
ESP32/examples/CI/CIBoardsTest00💚 -564000💚 -926💚 -4💚 -220💚 -360💚 -1236💚 -88
ESP32/examples/ChipID/GetChipID00💚 -560💚 -400💚 -924💚 -4💚 -240💚 -300💚 -820💚 -88
ESP32/examples/DeepSleep/TimerWakeUp00💚 -560💚 -400💚 -926💚 -4💚 -220--💚 -820💚 -88
ESP32/examples/DeepSleep/TouchWakeUp00💚 -560💚 -400------💚 -820💚 -88
ESP32/examples/FreeRTOS/BasicMultiThreading00💚 -564000💚 -924💚 -4💚 -220💚 -340💚 -804💚 -88
ESP32/examples/FreeRTOS/Mutex00💚 -560💚 -400💚 -920💚 -4💚 -220💚 -320💚 -820💚 -88
ESP32/examples/FreeRTOS/Queue00💚 -560💚 -400💚 -922💚 -4💚 -220💚 -320💚 -820💚 -88
ESP32/examples/FreeRTOS/Semaphore00💚 -560💚 -400💚 -924💚 -4💚 -240💚 -300💚 -820💚 -88
ESP32/examples/GPIO/BlinkRGB00💚 -564000💚 -924💚 -4💚 -220💚 -360💚 -820💚 -88
ESP32/examples/GPIO/FunctionalInterrupt00💚 -560💚 -400💚 -920💚 -4💚 -240💚 -300💚 -820💚 -88
ESP32/examples/GPIO/FunctionalInterruptStruct00💚 -560💚 -400💚 -920💚 -4💚 -220💚 -300💚 -820💚 -88
ESP32/examples/GPIO/GPIOInterrupt00💚 -560💚 -400💚 -920💚 -4💚 -220💚 -320💚 -820💚 -88
ESP32/examples/HWCDC_Events00💚 -828💚 -4--💚 -924💚 -4💚 -220💚 -340--
ESP32/examples/MacAddress/GetMacAddress00💚 -544💚 -400💚 -920💚 -4💚 -220💚 -340💚 -820💚 -88
ESP32/examples/RMT/Legacy_RMT_Driver_Compatible00💚 -560💚 -400💚 -924💚 -4💚 -240💚 -340💚 -820💚 -88
ESP32/examples/RMT/RMTCallback00💚 -564000💚 -924💚 -4💚 -220💚 -340💚 -820💚 -88
ESP32/examples/RMT/RMTLoopback00💚 -564000💚 -924💚 -4💚 -240💚 -380💚 -820💚 -88
ESP32/examples/RMT/RMTReadXJT00💚 -548000💚 -940💚 -4💚 -220💚 -340💚 -820💚 -88
ESP32/examples/RMT/RMTWrite_RGB_LED00💚 -564000💚 -924💚 -4💚 -240💚 -360💚 -820💚 -88
ESP32/examples/RMT/RMT_CPUFreq_Test00💚 -564000💚 -924💚 -4💚 -220💚 -340💚 -820💚 -88
ESP32/examples/RMT/RMT_EndOfTransmissionState00💚 -564000💚 -924💚 -4💚 -220💚 -340💚 -820💚 -88
ESP32/examples/RMT/RMT_LED_Blink00💚 -564000💚 -926💚 -4💚 -220💚 -340💚 -820💚 -88
ESP32/examples/ResetReason/ResetReason00💚 -560💚 -400💚 -924💚 -4💚 -220💚 -300💚 -820💚 -88
ESP32/examples/ResetReason/ResetReason200💚 -560💚 -400💚 -920💚 -4💚 -240💚 -320💚 -820💚 -88
ESP32/examples/Serial/BaudRateDetect_Demo00💚 -560💚 -400💚 -922💚 -4💚 -220💚 -320💚 -820💚 -88
ESP32/examples/Serial/OnReceiveError_BREAK_Demo00💚 -560💚 -400💚 -920💚 -4💚 -220💚 -300💚 -820💚 -88
ESP32/examples/Serial/OnReceive_Demo00💚 -544💚 -400💚 -922💚 -4💚 -220💚 -300💚 -820💚 -88
ESP32/examples/Serial/RS485_Echo_Demo00💚 -560💚 -400💚 -922💚 -4💚 -220💚 -300💚 -820💚 -88
ESP32/examples/Serial/RxFIFOFull_Demo00💚 -560💚 -400💚 -920💚 -4💚 -220💚 -320💚 -820💚 -88
ESP32/examples/Serial/RxTimeout_Demo00💚 -544💚 -400💚 -920💚 -4💚 -220💚 -320💚 -820💚 -88
ESP32/examples/Serial/Serial_All_CPU_Freqs00💚 -560💚 -400💚 -920💚 -4💚 -220💚 -300💚 -820💚 -88
ESP32/examples/Serial/Serial_STD_Func_OnReceive00💚 -560💚 -400💚 -922💚 -4💚 -240💚 -320💚 -820💚 -88
ESP32/examples/Serial/onReceiveExample00💚 -544💚 -400💚 -920💚 -4💚 -220💚 -320💚 -820💚 -88
ESP32/examples/TWAI/TWAIreceive00💚 -560💚 -400💚 -920💚 -4💚 -220💚 -320💚 -820💚 -88
ESP32/examples/TWAI/TWAItransmit00💚 -560💚 -400💚 -920💚 -4💚 -220💚 -320💚 -820💚 -88
ESP32/examples/Template/ExampleTemplate00💚 -560💚 -400💚 -922💚 -4💚 -240💚 -320💚 -820💚 -88
ESP32/examples/Time/SimpleTime00💚 -572💚 -400💚 -9140💚 -200--💚 -836💚 -88
ESP32/examples/Timer/RepeatTimer00💚 -560💚 -400💚 -920💚 -4💚 -220💚 -320💚 -820💚 -88
ESP32/examples/Timer/WatchdogTimer00💚 -560💚 -400💚 -918💚 -4💚 -240💚 -300💚 -820💚 -88
ESP32/examples/Touch/TouchInterrupt00💚 -560💚 -400------💚 -820💚 -88
ESP32/examples/Touch/TouchRead00💚 -544💚 -400------💚 -820💚 -88
ESP32/examples/Utilities/HEXBuilder00💚 -544💚 -400💚 -920💚 -4💚 -220💚 -320💚 -820💚 -88
ESP32/examples/Utilities/MD5Builder00💚 -560💚 -400💚 -922💚 -4💚 -220💚 -320💚 -820💚 -88
ESP32/examples/Utilities/SHA1Builder00💚 -560💚 -400💚 -926💚 -4💚 -220💚 -320💚 -820💚 -88
ESP_I2S/examples/ES8388_loopback00💚 -564000💚 -928💚 -4💚 -220💚 -380💚 -820💚 -88
ESP_I2S/examples/Record_to_WAV00💚 -552💚 -4--------💚 -820💚 -88
ESP_I2S/examples/Simple_tone00💚 -560💚 -400💚 -922💚 -4💚 -240💚 -320💚 -820💚 -88
ESPmDNS/examples/mDNS-SD_Extended00💚 -568💚 -400💚 -9220💚 -200--💚 -828💚 -88
ESPmDNS/examples/mDNS_Web_Server00💚 -608💚 -400💚 -9220💚 -200--💚 -844💚 -88
Ethernet/examples/ETH_TLK11000----------💚 -828💚 -88
Ethernet/examples/ETH_W5500_Arduino_SPI00💚 -572000💚 -910💚 -4💚 -220💚 -220💚 -828💚 -88
Ethernet/examples/ETH_W5500_IDF_SPI00💚 -560000💚 -910💚 -4💚 -220💚 -220💚 -832💚 -88
Ethernet/examples/ETH_WIFI_BRIDGE00💚 -584💚 -400💚 -9140💚 -200--💚 -840💚 -88
FFat/examples/FFat_Test00💚 -560💚 -400💚 -914💚 -4💚 -200💚 -300💚 -820💚 -88
FFat/examples/FFat_time00💚 -512💚 -400💚 -9140💚 -200--💚 -836💚 -88
HTTPClient/examples/Authorization00💚 -572💚 -400💚 -9140💚 -200--💚 -828💚 -88
HTTPClient/examples/BasicHttpClient00💚 -572💚 -400💚 -9140💚 -200--💚 -828💚 -88
HTTPClient/examples/BasicHttpsClient00💚 -564💚 -400💚 -9140💚 -200--💚 -812💚 -88
HTTPClient/examples/ReuseConnection00💚 -560💚 -400💚 -9140💚 -200--💚 -828💚 -88
HTTPClient/examples/StreamHttpClient00💚 -576💚 -400💚 -9140💚 -200--💚 -812💚 -88
HTTPUpdate/examples/httpUpdate00💚 -592💚 -400💚 -9220💚 -200--💚 -844💚 -88
HTTPUpdate/examples/httpUpdateSPIFFS00💚 -576💚 -400💚 -9220💚 -200--💚 -848💚 -88
HTTPUpdate/examples/httpUpdateSecure00💚 -572💚 -400💚 -9220💚 -200--💚 -840💚 -88
HTTPUpdateServer/examples/WebUpdater00💚 -576💚 -400💚 -9220💚 -200--💚 -848💚 -88
LittleFS/examples/LITTLEFS_test00💚 -560💚 -400💚 -912💚 -4💚 -200💚 -300💚 -820💚 -88
LittleFS/examples/LITTLEFS_time00💚 -580💚 -400💚 -9140💚 -200--💚 -832💚 -88
NetBIOS/examples/ESP_NBNST00💚 -584💚 -400💚 -9220💚 -200--💚 -828💚 -88
NetworkClientSecure/examples/WiFiClientInsecure00💚 -540💚 -400💚 -9140💚 -200--💚 -832💚 -88
NetworkClientSecure/examples/WiFiClientPSK00💚 -528💚 -400💚 -9140💚 -200--💚 -812💚 -88
NetworkClientSecure/examples/WiFiClientSecure00💚 -536💚 -400💚 -9140💚 -200--💚 -812💚 -88
NetworkClientSecure/examples/WiFiClientSecureProtocolUpgrade00💚 -544💚 -400💚 -9140💚 -200--💚 -816💚 -88
NetworkClientSecure/examples/WiFiClientShowPeerCredentials00💚 -556💚 -400💚 -9140💚 -200--💚 -820💚 -88
NetworkClientSecure/examples/WiFiClientTrustOnFirstUse00💚 -572💚 -400💚 -9220💚 -200--💚 -840💚 -88
PPP/examples/PPP_Basic00💚 -568000💚 -924💚 -4💚 -220💚 -360💚 -820💚 -88
PPP/examples/PPP_WIFI_BRIDGE00💚 -576💚 -400💚 -9220💚 -200--💚 -828💚 -88
Preferences/examples/Prefs2Struct00💚 -560💚 -400💚 -920💚 -4💚 -220💚 -320💚 -820💚 -88
Preferences/examples/StartCounter00💚 -544💚 -400💚 -920💚 -4💚 -220💚 -320💚 -820💚 -88
SD/examples/SD_Test00💚 -564000💚 -916💚 -4💚 -200💚 -340💚 -820💚 -88
SD/examples/SD_time00💚 -580💚 -400💚 -9220💚 -200--💚 -836💚 -88
SD_MMC/examples/SD2USBMSC00💚 -5640----------
SD_MMC/examples/SDMMC_Test00💚 -544💚 -4--------💚 -824💚 -88
SD_MMC/examples/SDMMC_time00💚 -572💚 -4--------💚 -828💚 -88
SPI/examples/SPI_Multiple_Buses00💚 -564000💚 -928💚 -4💚 -220💚 -360💚 -820💚 -88
SPIFFS/examples/SPIFFS_Test00💚 -560💚 -400💚 -922💚 -4💚 -200💚 -300💚 -820💚 -88
SPIFFS/examples/SPIFFS_time00💚 -564💚 -400💚 -9140💚 -200--💚 -836💚 -88
TFLiteMicro/examples/hello_world00💚 -544💚 -400💚 -922💚 -4💚 -240💚 -300💚 -820💚 -88
Ticker/examples/Blinker00💚 -564000💚 -910💚 -4💚 -220💚 -200💚 -820💚 -88
Ticker/examples/TickerBasic00💚 -564000💚 -910💚 -4💚 -220💚 -200💚 -820💚 -88
Ticker/examples/TickerParameter00💚 -564000💚 -910💚 -4💚 -220💚 -200💚 -820💚 -88
USB/examples/CompositeDevice00💚 -564000--------
USB/examples/ConsumerControl00💚 -564000--------
USB/examples/CustomHIDDevice00💚 -564000--------
USB/examples/FirmwareMSC00💚 -548000--------
USB/examples/Gamepad00💚 -564000--------
USB/examples/HIDVendor00💚 -564000--------
USB/examples/Keyboard/KeyboardLogout00💚 -564000--------
USB/examples/Keyboard/KeyboardMessage00💚 -564000--------
USB/examples/Keyboard/KeyboardReprogram00💚 -564000--------
USB/examples/Keyboard/KeyboardSerial00💚 -564000--------
USB/examples/KeyboardAndMouseControl00💚 -564000--------
USB/examples/MIDI/MidiController00💚 -564000--------
USB/examples/MIDI/MidiInterface00💚 -564000--------
USB/examples/MIDI/MidiMusicBox00💚 -564000--------
USB/examples/MIDI/ReceiveMidi00💚 -564000--------
USB/examples/Mouse/ButtonMouseControl00💚 -564000--------
USB/examples/SystemControl00💚 -564000--------
USB/examples/USBMSC00💚 -548000--------
USB/examples/USBSerial00💚 -564000--------
USB/examples/USBVendor00💚 -564000--------
Update/examples/AWS_S3_OTA_Update00💚 -572💚 -400💚 -9220💚 -200--💚 -804💚 -88
Update/examples/HTTPS_OTA_Update00💚 -620💚 -400💚 -9220💚 -200--💚 -860💚 -88
Update/examples/HTTP_Client_AES_OTA_Update00💚 -584💚 -400💚 -9220💚 -200--💚 -832💚 -88
Update/examples/HTTP_Server_AES_OTA_Update00💚 -552💚 -400💚 -9220💚 -200--💚 -828💚 -88
Update/examples/OTAWebUpdater00💚 -580💚 -400💚 -9220💚 -200--💚 -812💚 -88
Update/examples/SD_Update00💚 -564000💚 -928💚 -4💚 -260💚 -400💚 -820💚 -88
WebServer/examples/AdvancedWebServer00💚 -564💚 -400💚 -9220💚 -200--💚 -816💚 -88
WebServer/examples/FSBrowser00💚 -580💚 -400💚 -9220💚 -200--💚 -828💚 -88
WebServer/examples/Filters00💚 -600💚 -400💚 -9220💚 -200--💚 -816💚 -88
WebServer/examples/HelloServer00💚 -580💚 -400💚 -9220💚 -200--💚 -808💚 -88
WebServer/examples/HttpAdvancedAuth00💚 -576💚 -400💚 -9220💚 -200--💚 -816💚 -88
WebServer/examples/HttpAuthCallback00💚 -580💚 -400💚 -9220💚 -200--💚 -832💚 -88
WebServer/examples/HttpAuthCallbackInline00💚 -584💚 -400💚 -9220💚 -200--💚 -832💚 -88
WebServer/examples/HttpBasicAuth00💚 -592💚 -400💚 -9220💚 -200--💚 -812💚 -88
WebServer/examples/HttpBasicAuthSHA100💚 -548💚 -400💚 -9220💚 -200--💚 -828💚 -88
WebServer/examples/HttpBasicAuthSHA1orBearerToken00💚 -572💚 -400💚 -9220💚 -200--💚 -840💚 -88
WebServer/examples/MultiHomedServers00💚 -548💚 -400💚 -9220💚 -200--💚 -800💚 -88
WebServer/examples/PathArgServer00💚 -564💚 -400💚 -9140💚 -200--💚 -816💚 -88
WebServer/examples/SDWebServer00💚 -584💚 -400💚 -9220💚 -200--💚 -844💚 -88
WebServer/examples/SimpleAuthentification00💚 -572💚 -400💚 -9220💚 -200--💚 -832💚 -88
WebServer/examples/UploadHugeFile00💚 -572💚 -400💚 -9220💚 -200--💚 -828💚 -88
WebServer/examples/WebServer00💚 -596💚 -400💚 -9140💚 -200--💚 -820💚 -88
WebServer/examples/WebUpdate00💚 -564💚 -400💚 -9220💚 -200--💚 -844💚 -88
WiFi/examples/FTM/FTM_Initiator00💚 -568💚 -400💚 -9220💚 -200--💚 -836💚 -88
WiFi/examples/FTM/FTM_Responder00💚 -592💚 -400💚 -9220💚 -200--💚 -808💚 -88
WiFi/examples/SimpleWiFiServer00💚 -572💚 -400💚 -9220💚 -200--💚 -820💚 -88
WiFi/examples/WiFiAccessPoint00💚 -560💚 -400💚 -9220💚 -200--💚 -832💚 -88
WiFi/examples/WiFiClient00💚 -540💚 -400💚 -9220💚 -200--💚 -836💚 -88
WiFi/examples/WiFiClientBasic00💚 -580💚 -400💚 -9220💚 -200--💚 -836💚 -88
WiFi/examples/WiFiClientConnect00💚 -576💚 -400💚 -9140💚 -200--💚 -816💚 -88
WiFi/examples/WiFiClientEvents00💚 -604💚 -400💚 -9220💚 -200--💚 -836💚 -88
WiFi/examples/WiFiClientStaticIP00💚 -532💚 -400💚 -9220💚 -200--💚 -832💚 -88
WiFi/examples/WiFiExtender00💚 -560💚 -400💚 -9220💚 -200--💚 -840💚 -88
WiFi/examples/WiFiIPv600💚 -596💚 -400💚 -9220💚 -200--💚 -812💚 -88
WiFi/examples/WiFiMulti00💚 -616💚 -400💚 -9220💚 -200--💚 -844💚 -88
WiFi/examples/WiFiMultiAdvanced00💚 -576💚 -400💚 -9140💚 -200--💚 -820💚 -88
WiFi/examples/WiFiScan00💚 -560💚 -400💚 -9220💚 -200--💚 -840💚 -88
WiFi/examples/WiFiScanAsync00💚 -556💚 -400💚 -9220💚 -200--💚 -836💚 -88
WiFi/examples/WiFiScanDualAntenna00💚 -588💚 -400💚 -9220💚 -200--💚 -836💚 -88
WiFi/examples/WiFiScanTime00💚 -544💚 -400💚 -9220💚 -200--💚 -824💚 -88
WiFi/examples/WiFiTelnetToSerial00💚 -580💚 -400💚 -9220💚 -200--💚 -832💚 -88
WiFi/examples/WiFiUDPClient00💚 -580💚 -400💚 -9220💚 -200--💚 -824💚 -88
Wire/examples/WireMaster00💚 -560💚 -400💚 -924💚 -4💚 -220💚 -360💚 -820💚 -88
Wire/examples/WireScan00💚 -560💚 -400💚 -922💚 -4💚 -220💚 -360💚 -820💚 -88
Wire/examples/WireSlave00💚 -544💚 -400💚 -924💚 -4💚 -220💚 -340💚 -820💚 -88
BLE/examples/BLE5_extended_scan--💚 -5360--💚 -9140💚 -200💚 -200--
BLE/examples/BLE5_multi_advertising--💚 -5600--💚 -9140💚 -200💚 -200--
BLE/examples/BLE5_periodic_advertising--💚 -5600--💚 -9140💚 -200💚 -200--
BLE/examples/BLE5_periodic_sync--💚 -5640--💚 -9140💚 -200💚 -200--
BLE/examples/Beacon_Scanner--💚 -5600--💚 -9140💚 -200💚 -200💚 -280
BLE/examples/Client--💚 -5760--💚 -9140💚 -200💚 -200💚 -240
BLE/examples/EddystoneTLM_Beacon--💚 -5640--💚 -9140💚 -200💚 -200💚 -240
BLE/examples/EddystoneURL_Beacon--💚 -5560--💚 -9140💚 -200💚 -200💚 -240
BLE/examples/Notify--💚 -5680--💚 -9140💚 -200💚 -200💚 -240
BLE/examples/Scan--💚 -5640--💚 -9140💚 -200💚 -200💚 -240
BLE/examples/Server--💚 -5840--💚 -9140💚 -200💚 -200💚 -240
BLE/examples/Server_multiconnect--💚 -5680--💚 -9140💚 -200💚 -200💚 -240
BLE/examples/UART--💚 -5640--💚 -9140💚 -200💚 -200💚 -280
BLE/examples/Write--💚 -5760--💚 -9140💚 -200💚 -200💚 -320
BLE/examples/iBeacon--💚 -5560--💚 -9140💚 -200💚 -200💚 -240
ESP32/examples/Camera/CameraWebServer--‼️ +4K⚠️ +456‼️ +4K⚠️ +12------‼️ +11K⚠️ +4
ESP32/examples/DeepSleep/ExternalWakeUp--💚 -560💚 -400------💚 -820💚 -88
ESP_NOW/examples/ESP_NOW_Broadcast_Master--💚 -556💚 -400💚 -9220💚 -200--💚 -836💚 -88
ESP_NOW/examples/ESP_NOW_Broadcast_Slave--💚 -588💚 -400💚 -9220💚 -200--💚 -840💚 -88
ESP_NOW/examples/ESP_NOW_Network--💚 -556💚 -400💚 -9220💚 -200--💚 -832💚 -88
ESP_NOW/examples/ESP_NOW_Serial--💚 -584💚 -400💚 -9220💚 -200--💚 -836💚 -88
ESP_SR/examples/Basic--💚 -824💚 -4----------
HTTPClient/examples/HTTPClientEnterprise--💚 -556💚 -400💚 -9140💚 -200--💚 -820💚 -88
Insights/examples/DiagnosticsSmokeTest--💚 -576💚 -400💚 -9140💚 -200--💚 -824💚 -88
Insights/examples/MinimalDiagnostics--💚 -576💚 -400💚 -9140💚 -200--💚 -836💚 -88
Matter/examples/MatterColorLight--💚 -564💚 -400💚 -9180💚 -200--💚 -848💚 -88
Matter/examples/MatterCommissionTest--💚 -544💚 -400💚 -9260💚 -200--💚 -808💚 -88
Matter/examples/MatterComposedLights--💚 -556💚 -400💚 -9260💚 -200--💚 -812💚 -88
Matter/examples/MatterContactSensor--💚 -584💚 -400💚 -9180💚 -200--💚 -852💚 -88
Matter/examples/MatterDimmableLight--💚 -560💚 -400💚 -9180💚 -200--💚 -856💚 -88
Matter/examples/MatterEnhancedColorLight--💚 -588💚 -400💚 -9180💚 -200--💚 -848💚 -88
Matter/examples/MatterFan--💚 -564💚 -400💚 -9180💚 -200--💚 -828💚 -88
Matter/examples/MatterHumiditySensor--💚 -564💚 -400💚 -9260💚 -200--💚 -860💚 -88
Matter/examples/MatterMinimum--💚 -560💚 -400💚 -9420💚 -200--💚 -828💚 -88
Matter/examples/MatterOccupancySensor--💚 -576💚 -400💚 -9260💚 -200--💚 -844💚 -88
Matter/examples/MatterOnIdentify--💚 -528💚 -400💚 -9220💚 -200--💚 -824💚 -88
Matter/examples/MatterOnOffLight--💚 -576💚 -400💚 -9220💚 -200--💚 -844💚 -88
Matter/examples/MatterOnOffPlugin--💚 -572💚 -400💚 -9220💚 -200--💚 -848💚 -88
Matter/examples/MatterPressureSensor--💚 -572💚 -400💚 -9260💚 -200--💚 -836💚 -88
Matter/examples/MatterSmartButon--💚 -580💚 -400💚 -9300💚 -200--💚 -848💚 -88
Matter/examples/MatterTemperatureLight--💚 -572💚 -400💚 -9180💚 -200--💚 -840💚 -88
Matter/examples/MatterTemperatureSensor--💚 -564💚 -400💚 -9260💚 -200--💚 -852💚 -88
Matter/examples/MatterThermostat--💚 -564💚 -400💚 -9260💚 -200--💚 -788💚 -88
Matter/examples/WiFiProvWithinMatter--💚 -124000💚 -1400💚 -380--💚 -1040
NetworkClientSecure/examples/WiFiClientSecureEnterprise--💚 -596💚 -400💚 -9220💚 -200--💚 -840💚 -88
RainMaker/examples/RMakerCustom--💚 -88000💚 -1120💚 -220--💚 -440
RainMaker/examples/RMakerCustomAirCooler--💚 -108000💚 -1060💚 -240----
RainMaker/examples/RMakerSonoffDualR3--💚 -84000💚 -1120💚 -220----
RainMaker/examples/RMakerSwitch--💚 -112000💚 -1120💚 -220--💚 -800
SimpleBLE/examples/SimpleBleDevice--💚 -5720--💚 -9140💚 -180💚 -180💚 -240
WebServer/examples/Middleware--💚 -576💚 -400💚 -9220💚 -200--💚 -844💚 -88
WiFi/examples/WPS--💚 -576💚 -400💚 -9220💚 -200--💚 -844💚 -88
WiFi/examples/WiFiBlueToothSwitch--💚 -5760--💚 -9140💚 -200--💚 -240
WiFi/examples/WiFiClientEnterprise--💚 -572💚 -400💚 -9140💚 -200--💚 -848💚 -88
WiFi/examples/WiFiSmartConfig--💚 -568💚 -400💚 -9220💚 -200--💚 -844💚 -88
WiFiProv/examples/WiFiProv--💚 -176000💚 -1200💚 -100--💚 -960
Zigbee/examples/Zigbee_Color_Dimmer_Switch--💚 -560💚 -400💚 -926💚 -4💚 -220💚 -220💚 -816💚 -88
Zigbee/examples/Zigbee_Gateway--💚 -588💚 -400💚 -9140----💚 -808💚 -88
Zigbee/examples/Zigbee_On_Off_Switch--💚 -560💚 -400💚 -918💚 -4💚 -220💚 -220💚 -812💚 -88
Zigbee/examples/Zigbee_Range_Extender--💚 -568000💚 -924💚 -4💚 -220💚 -200💚 -828💚 -88
Zigbee/examples/Zigbee_Thermostat--💚 -560💚 -400💚 -926💚 -4💚 -220💚 -200💚 -824💚 -88
OpenThread/examples/COAP/coap_lamp--------💚 -180💚 -400--
OpenThread/examples/COAP/coap_switch--------💚 -180💚 -400--
OpenThread/examples/SimpleCLI--------💚 -180💚 -280--
OpenThread/examples/SimpleNode--------💚 -180💚 -280--
OpenThread/examples/SimpleThreadNetwork/ExtendedRouterNode--------💚 -180💚 -280--
OpenThread/examples/SimpleThreadNetwork/LeaderNode--------💚 -180💚 -280--
OpenThread/examples/SimpleThreadNetwork/RouterNode--------💚 -200💚 -280--
OpenThread/examples/ThreadScan--------💚 -180💚 -300--
OpenThread/examples/onReceive--------💚 -180💚 -280--
Zigbee/examples/Zigbee_Analog_Input_Output--------💚 -220💚 -200--
Zigbee/examples/Zigbee_CarbonDioxide_Sensor--------💚 -240💚 -220--
Zigbee/examples/Zigbee_Color_Dimmable_Light--------💚 -220💚 -220--
Zigbee/examples/Zigbee_Contact_Switch--------💚 -220💚 -200--
Zigbee/examples/Zigbee_Dimmable_Light--------💚 -220💚 -200--
Zigbee/examples/Zigbee_OTA_Client--------💚 -220💚 -220--
Zigbee/examples/Zigbee_Occupancy_Sensor--------💚 -240💚 -200--
Zigbee/examples/Zigbee_On_Off_Light--------💚 -220💚 -200--
Zigbee/examples/Zigbee_Pressure_Flow_Sensor--------💚 -240💚 -240--
Zigbee/examples/Zigbee_Scan_Networks--------💚 -220💚 -200--
Zigbee/examples/Zigbee_Temp_Hum_Sensor_Sleepy--------💚 -240💚 -220--
Zigbee/examples/Zigbee_Temperature_Sensor--------💚 -220💚 -220--
Zigbee/examples/Zigbee_Vibration_Sensor--------💚 -220💚 -200--
Zigbee/examples/Zigbee_Wind_Speed_Sensor--------💚 -260💚 -220--
Zigbee/examples/Zigbee_Window_Covering--------💚 -240💚 -220--
BluetoothSerial/examples/DiscoverConnect------------💚 -280
BluetoothSerial/examples/GetLocalMAC------------💚 -240
BluetoothSerial/examples/SerialToSerialBT------------💚 -280
BluetoothSerial/examples/SerialToSerialBTM------------💚 -240
BluetoothSerial/examples/SerialToSerialBT_Legacy------------💚 -240
BluetoothSerial/examples/SerialToSerialBT_SSP------------💚 -280
BluetoothSerial/examples/bt_classic_device_discovery------------💚 -200
BluetoothSerial/examples/bt_remove_paired_devices------------💚 -280
ESP32/examples/DeepSleep/SmoothBlink_ULP_Code------------💚 -820💚 -88
Ethernet/examples/ETH_LAN8720------------💚 -828💚 -88

@me-no-dev
Copy link
Member

This is the classic BT memory being released, not BLE, so I wonder why you see the issue that you do. Maybe we can rethink this so that provisioning will cause it to not be released?

@me-no-dev me-no-dev added the Status: Needs investigation We need to do some research before taking next steps on this issue label Mar 24, 2025
@Jason2866
Copy link
Collaborator Author

Jason2866 commented Mar 24, 2025

@me-no-dev Isnt the provided PR just doing this? Keep the allocated memory for BT / BLE needs. Imho the weak if here does not work always as it should
from the docs

esp_bt_controller_mem_release(ESP_BT_MODE_BTDM) could release the BSS and data consumed by both Classic Bluetooth and BLE Controller to heap.

So doing this call affects classic BT and BLE https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/bluetooth/controller_vhci.html

@me-no-dev
Copy link
Member

@Jason2866 it is keeping it always, regardless if BT is used or not. The point of the commented code is to free that memory if BT is not in use. You in effect never free that memory with this PR

@Jason2866
Copy link
Collaborator Author

Jason2866 commented Mar 24, 2025

So the if with the "weak" is not working. Honestly idk why not working looking in https://github.com/espressif/arduino-esp32/blob/master/cores/esp32/esp32-hal-bt.c

Imho btInUse() is always true since

#if SOC_BT_SUPPORTED
#ifdef CONFIG_BT_ENABLED

#if CONFIG_IDF_TARGET_ESP32

is always set when using a BT / BLE sketch. Wrong include order?

@me-no-dev
Copy link
Member

We might need to rework/revisit this, especially with moving to NimBLE. What chip is failing @Jason2866 ?

@Jason2866
Copy link
Collaborator Author

@me-no-dev Have tested with an esp32. Probably other MCU types fail too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs investigation We need to do some research before taking next steps on this issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BLE provisioning sample doesn't work on release/v2.x branch
2 participants