Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

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

Open
Jason2866 wants to merge 4 commits into espressif:master
base: master
Choose a base branch
Loading
from Jason2866:patch-5

Conversation

Copy link
Collaborator

@Jason2866 Jason2866 commented Mar 23, 2025
edited
Loading

which happens when provisioning example is build via Arduino as an component of IDF.

This PR fixes this bug by removing the override possiblity via the weak define

Fix #11181

Edit: Platformio / pioarduino does generate correct code when the setting lib_archive = no in platformio.ini is added.

Copy link
Contributor

github-actions bot commented Mar 23, 2025
edited
Loading

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
  • the commit message "fix BT mem release logic":
    • summary looks empty
    • type/action looks empty
  • the commit message "reemove duplicate btInUse define":
    • 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 3b971f2

Copy link
Contributor

github-actions bot commented Mar 23, 2025
edited
Loading

Test Results

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

Results for commit 3b971f2.

♻️ This comment has been updated with latest results.

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

github-actions bot commented Mar 23, 2025
edited
Loading

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💚 -560💚 -0.010.00000.000.00
ESP32S2000.000.00000.000.00
ESP32C3💚 -140💚 -0.010.00000.000.00
ESP32C6💚 -120💚 -0.010.00000.000.00
ESP32H2💚 -1200.000.00000.000.00
ESP32💚 -12360💚 -0.370.00💚 -880💚 -0.430.00
Click to expand the detailed deltas report [usage change in BYTES]
TargetESP32P4ESP32S3ESP32S2ESP32C3ESP32C6ESP32H2ESP32
ExampleFLASHRAMFLASHRAMFLASHRAMFLASHRAMFLASHRAMFLASHRAMFLASHRAM
ArduinoOTA/examples/BasicOTA00💚 -24000💚 -100💚 -100--💚 -828💚 -88
AsyncUDP/examples/AsyncUDPClient00💚 -24000💚 -100💚 -100--💚 -816💚 -88
AsyncUDP/examples/AsyncUDPMulticastServer00💚 -24000💚 -100💚 -100--💚 -800💚 -88
AsyncUDP/examples/AsyncUDPServer00💚 -24000💚 -100💚 -100--💚 -824💚 -88
DNSServer/examples/CaptivePortal00💚 -28000💚 -100💚 -100--💚 -856💚 -88
EEPROM/examples/eeprom_class00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
EEPROM/examples/eeprom_extra00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
EEPROM/examples/eeprom_write00💚 -16000💚 -120💚 -100💚 -100💚 -820💚 -88
ESP32/examples/AnalogOut/LEDCFade00💚 -16000💚 -140💚 -100💚 -100💚 -820💚 -88
ESP32/examples/AnalogOut/LEDCSingleChannel00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
ESP32/examples/AnalogOut/LEDCSoftwareFade00💚 -16000💚 -120💚 -120💚 -120💚 -820💚 -88
ESP32/examples/AnalogOut/SigmaDelta00💚 -16000💚 -100💚 -100💚 -120💚 -820💚 -88
ESP32/examples/AnalogOut/ledcFrequency00💚 -16000💚 -140💚 -120💚 -120💚 -820💚 -88
ESP32/examples/AnalogOut/ledcWrite_RGB00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
ESP32/examples/AnalogRead00💚 -16000💚 -100💚 -120💚 -120💚 -804💚 -88
ESP32/examples/AnalogReadContinuous00💚 -16000💚 -100💚 -120💚 -100💚 -820💚 -88
ESP32/examples/ArduinoStackSize00💚 -16000💚 -100💚 -100💚 -120💚 -820💚 -88
ESP32/examples/CI/CIBoardsTest00💚 -16000💚 -100💚 -100💚 -100💚 -1236💚 -88
ESP32/examples/ChipID/GetChipID00💚 -16000💚 -100💚 -120💚 -100💚 -820💚 -88
ESP32/examples/DeepSleep/TimerWakeUp00💚 -16000💚 -120💚 -100--💚 -820💚 -88
ESP32/examples/DeepSleep/TouchWakeUp00💚 -16000------💚 -820💚 -88
ESP32/examples/FreeRTOS/BasicMultiThreading00💚 -16000💚 -100💚 -100💚 -100💚 -804💚 -88
ESP32/examples/FreeRTOS/Mutex00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
ESP32/examples/FreeRTOS/Queue00💚 -16000💚 -120💚 -100💚 -100💚 -820💚 -88
ESP32/examples/FreeRTOS/Semaphore00💚 -16000💚 -120💚 -120💚 -100💚 -820💚 -88
ESP32/examples/GPIO/BlinkRGB00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
ESP32/examples/GPIO/FunctionalInterrupt00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
ESP32/examples/GPIO/FunctionalInterruptStruct00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
ESP32/examples/GPIO/GPIOInterrupt00💚 -16000💚 -100💚 -100💚 -120💚 -820💚 -88
ESP32/examples/HWCDC_Events00💚 -160--💚 -100💚 -100💚 -100--
ESP32/examples/MacAddress/GetMacAddress00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
ESP32/examples/RMT/Legacy_RMT_Driver_Compatible00💚 -16000💚 -120💚 -100💚 -120💚 -820💚 -88
ESP32/examples/RMT/RMTCallback00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
ESP32/examples/RMT/RMTLoopback00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
ESP32/examples/RMT/RMTReadXJT00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
ESP32/examples/RMT/RMTWrite_RGB_LED00💚 -16000💚 -100💚 -120💚 -100💚 -820💚 -88
ESP32/examples/RMT/RMT_CPUFreq_Test00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
ESP32/examples/RMT/RMT_EndOfTransmissionState00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
ESP32/examples/RMT/RMT_LED_Blink00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
ESP32/examples/ResetReason/ResetReason00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
ESP32/examples/ResetReason/ResetReason200💚 -16000💚 -100💚 -120💚 -100💚 -820💚 -88
ESP32/examples/Serial/BaudRateDetect_Demo00💚 -16000💚 -120💚 -100💚 -100💚 -820💚 -88
ESP32/examples/Serial/OnReceiveError_BREAK_Demo00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
ESP32/examples/Serial/OnReceive_Demo00💚 -16000💚 -120💚 -100💚 -100💚 -820💚 -88
ESP32/examples/Serial/RS485_Echo_Demo00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
ESP32/examples/Serial/RxFIFOFull_Demo00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
ESP32/examples/Serial/RxTimeout_Demo00💚 -16000💚 -100💚 -100💚 -120💚 -820💚 -88
ESP32/examples/Serial/Serial_All_CPU_Freqs00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
ESP32/examples/Serial/Serial_STD_Func_OnReceive00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
ESP32/examples/Serial/onReceiveExample00💚 -16000💚 -100💚 -100💚 -120💚 -820💚 -88
ESP32/examples/TWAI/TWAIreceive00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
ESP32/examples/TWAI/TWAItransmit00💚 -16000💚 -100💚 -100💚 -120💚 -820💚 -88
ESP32/examples/Template/ExampleTemplate00💚 -16000💚 -120💚 -120💚 -120💚 -820💚 -88
ESP32/examples/Time/SimpleTime00💚 -24000💚 -100💚 -100--💚 -836💚 -88
ESP32/examples/Timer/RepeatTimer00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
ESP32/examples/Timer/WatchdogTimer00💚 -16000💚 -100💚 -120💚 -100💚 -820💚 -88
ESP32/examples/Touch/TouchInterrupt00💚 -16000------💚 -820💚 -88
ESP32/examples/Touch/TouchRead00💚 -16000------💚 -820💚 -88
ESP32/examples/Utilities/HEXBuilder00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
ESP32/examples/Utilities/MD5Builder00💚 -16000💚 -120💚 -100💚 -100💚 -820💚 -88
ESP32/examples/Utilities/SHA1Builder00💚 -16000💚 -120💚 -100💚 -100💚 -820💚 -88
ESP_I2S/examples/ES8388_loopback00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
ESP_I2S/examples/Record_to_WAV00💚 -160--------💚 -820💚 -88
ESP_I2S/examples/Simple_tone00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
ESPmDNS/examples/mDNS-SD_Extended00💚 -24000💚 -100💚 -100--💚 -828💚 -88
ESPmDNS/examples/mDNS_Web_Server00💚 -24000💚 -100💚 -100--💚 -828💚 -88
Ethernet/examples/ETH_TLK11000----------💚 -828💚 -88
Ethernet/examples/ETH_W5500_Arduino_SPI00💚 -16000💚 -100💚 -100💚 -100💚 -828💚 -88
Ethernet/examples/ETH_W5500_IDF_SPI00💚 -16000💚 -100💚 -100💚 -100💚 -832💚 -88
Ethernet/examples/ETH_WIFI_BRIDGE00💚 -24000💚 -100💚 -100--💚 -840💚 -88
FFat/examples/FFat_Test00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
FFat/examples/FFat_time00💚 -28000💚 -100💚 -100--💚 -836💚 -88
HTTPClient/examples/Authorization00💚 -24000💚 -100💚 -100--💚 -828💚 -88
HTTPClient/examples/BasicHttpClient00💚 -24000💚 -100💚 -100--💚 -828💚 -88
HTTPClient/examples/BasicHttpsClient00💚 -24000💚 -100💚 -100--💚 -812💚 -88
HTTPClient/examples/ReuseConnection000000💚 -100💚 -100--💚 -828💚 -88
HTTPClient/examples/StreamHttpClient00💚 -24000💚 -100💚 -100--💚 -812💚 -88
HTTPUpdate/examples/httpUpdate00💚 -24000💚 -100💚 -100--💚 -844💚 -88
HTTPUpdate/examples/httpUpdateSPIFFS00💚 -24000💚 -100💚 -100--💚 -848💚 -88
HTTPUpdate/examples/httpUpdateSecure00💚 -24000💚 -100💚 -100--💚 -840💚 -88
HTTPUpdateServer/examples/WebUpdater00💚 -24000💚 -100💚 -100--💚 -848💚 -88
LittleFS/examples/LITTLEFS_test00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
LittleFS/examples/LITTLEFS_time00💚 -24000💚 -100💚 -100--💚 -832💚 -88
NetBIOS/examples/ESP_NBNST00💚 -24000💚 -100💚 -100--💚 -828💚 -88
NetworkClientSecure/examples/WiFiClientInsecure00💚 -28000💚 -100💚 -100--💚 -832💚 -88
NetworkClientSecure/examples/WiFiClientPSK00💚 -28000💚 -100💚 -100--💚 -812💚 -88
NetworkClientSecure/examples/WiFiClientSecure00💚 -24000💚 -100💚 -100--💚 -812💚 -88
NetworkClientSecure/examples/WiFiClientSecureProtocolUpgrade00💚 -24000💚 -100💚 -100--💚 -816💚 -88
NetworkClientSecure/examples/WiFiClientShowPeerCredentials00💚 -24000💚 -100💚 -100--💚 -820💚 -88
NetworkClientSecure/examples/WiFiClientTrustOnFirstUse00💚 -24000💚 -100💚 -100--💚 -840💚 -88
PPP/examples/PPP_Basic00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
PPP/examples/PPP_WIFI_BRIDGE00💚 -24000💚 -100💚 -100--💚 -828💚 -88
Preferences/examples/Prefs2Struct00💚 -16000💚 -100💚 -100💚 -120💚 -820💚 -88
Preferences/examples/StartCounter00💚 -16000💚 -100💚 -100💚 -120💚 -820💚 -88
SD/examples/SD_Test00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
SD/examples/SD_time00💚 -24000💚 -100💚 -100--💚 -836💚 -88
SD_MMC/examples/SD2USBMSC00💚 -160----------
SD_MMC/examples/SDMMC_Test00💚 -160--------💚 -824💚 -88
SD_MMC/examples/SDMMC_time00💚 -240--------💚 -828💚 -88
SPI/examples/SPI_Multiple_Buses00💚 -16000💚 -100💚 -100💚 -120💚 -820💚 -88
SPIFFS/examples/SPIFFS_Test00💚 -16000💚 -120💚 -100💚 -100💚 -820💚 -88
SPIFFS/examples/SPIFFS_time00💚 -24000💚 -100💚 -100--💚 -836💚 -88
TFLiteMicro/examples/hello_world00💚 -16000💚 -120💚 -120💚 -100💚 -820💚 -88
Ticker/examples/Blinker00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
Ticker/examples/TickerBasic00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
Ticker/examples/TickerParameter00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
USB/examples/CompositeDevice00💚 -16000--------
USB/examples/ConsumerControl00💚 -16000--------
USB/examples/CustomHIDDevice00💚 -16000--------
USB/examples/FirmwareMSC00💚 -16000--------
USB/examples/Gamepad00💚 -16000--------
USB/examples/HIDVendor00💚 -16000--------
USB/examples/Keyboard/KeyboardLogout00💚 -16000--------
USB/examples/Keyboard/KeyboardMessage00💚 -16000--------
USB/examples/Keyboard/KeyboardReprogram00💚 -16000--------
USB/examples/Keyboard/KeyboardSerial00💚 -16000--------
USB/examples/KeyboardAndMouseControl00💚 -16000--------
USB/examples/MIDI/MidiController00💚 -16000--------
USB/examples/MIDI/MidiInterface00💚 -16000--------
USB/examples/MIDI/MidiMusicBox00💚 -16000--------
USB/examples/MIDI/ReceiveMidi00💚 -16000--------
USB/examples/Mouse/ButtonMouseControl00💚 -16000--------
USB/examples/SystemControl00💚 -16000--------
USB/examples/USBMSC00💚 -16000--------
USB/examples/USBSerial00💚 -16000--------
USB/examples/USBVendor00💚 -16000--------
Update/examples/AWS_S3_OTA_Update00💚 -24000💚 -100💚 -100--💚 -804💚 -88
Update/examples/HTTPS_OTA_Update00💚 -40000💚 -100💚 -100--💚 -860💚 -88
Update/examples/HTTP_Client_AES_OTA_Update00💚 -24000💚 -100💚 -100--💚 -832💚 -88
Update/examples/HTTP_Server_AES_OTA_Update00💚 -28000💚 -100💚 -100--💚 -828💚 -88
Update/examples/OTAWebUpdater00💚 -24000💚 -100💚 -100--💚 -812💚 -88
Update/examples/SD_Update00💚 -16000💚 -100💚 -100💚 -100💚 -820💚 -88
WebServer/examples/AdvancedWebServer00💚 -24000💚 -100💚 -100--💚 -816💚 -88
WebServer/examples/FSBrowser00💚 -28000💚 -100💚 -100--💚 -828💚 -88
WebServer/examples/Filters00💚 -32000💚 -100💚 -100--💚 -816💚 -88
WebServer/examples/HelloServer00💚 -24000💚 -100💚 -100--💚 -808💚 -88
WebServer/examples/HttpAdvancedAuth00💚 -28000💚 -100💚 -100--💚 -816💚 -88
WebServer/examples/HttpAuthCallback00💚 -24000💚 -100💚 -100--💚 -832💚 -88
WebServer/examples/HttpAuthCallbackInline00💚 -24000💚 -100💚 -100--💚 -832💚 -88
WebServer/examples/HttpBasicAuth00💚 -24000💚 -100💚 -100--💚 -812💚 -88
WebServer/examples/HttpBasicAuthSHA100💚 -24000💚 -100💚 -100--💚 -828💚 -88
WebServer/examples/HttpBasicAuthSHA1orBearerToken00💚 -24000💚 -100💚 -100--💚 -840💚 -88
WebServer/examples/MultiHomedServers00💚 -24000💚 -100💚 -100--💚 -800💚 -88
WebServer/examples/PathArgServer00💚 -24000💚 -100💚 -100--💚 -816💚 -88
WebServer/examples/SDWebServer00💚 -24000💚 -100💚 -100--💚 -844💚 -88
WebServer/examples/SimpleAuthentification00💚 -24000💚 -100💚 -100--💚 -832💚 -88
WebServer/examples/UploadHugeFile00💚 -24000💚 -100💚 -100--💚 -828💚 -88
WebServer/examples/WebServer00💚 -24000💚 -100💚 -100--💚 -836💚 -88
WebServer/examples/WebUpdate00💚 -24000💚 -100💚 -100--💚 -844💚 -88
WiFi/examples/FTM/FTM_Initiator00💚 -24000💚 -100💚 -100--💚 -836💚 -88
WiFi/examples/FTM/FTM_Responder00💚 -32000💚 -100💚 -100--💚 -808💚 -88
WiFi/examples/SimpleWiFiServer00💚 -24000💚 -100💚 -100--💚 -820💚 -88
WiFi/examples/WiFiAccessPoint00💚 -24000💚 -100💚 -100--💚 -832💚 -88
WiFi/examples/WiFiClient00💚 -24000💚 -100💚 -100--💚 -836💚 -88
WiFi/examples/WiFiClientBasic00💚 -24000💚 -100💚 -100--💚 -836💚 -88
WiFi/examples/WiFiClientConnect00💚 -24000💚 -100💚 -100--💚 -816💚 -88
WiFi/examples/WiFiClientEvents00💚 -24000💚 -100💚 -100--💚 -836💚 -88
WiFi/examples/WiFiClientStaticIP00💚 -24000💚 -100💚 -100--💚 -832💚 -88
WiFi/examples/WiFiExtender00💚 -28000💚 -100💚 -100--💚 -840💚 -88
WiFi/examples/WiFiIPv600💚 -28000💚 -100💚 -100--💚 -812💚 -88
WiFi/examples/WiFiMulti00💚 -56000💚 -100💚 -100--💚 -844💚 -88
WiFi/examples/WiFiMultiAdvanced00💚 -24000💚 -100💚 -100--💚 -820💚 -88
WiFi/examples/WiFiScan00💚 -28000💚 -100💚 -100--💚 -840💚 -88
WiFi/examples/WiFiScanAsync00💚 -24000💚 -100💚 -100--💚 -836💚 -88
WiFi/examples/WiFiScanDualAntenna00💚 -24000💚 -100💚 -100--💚 -836💚 -88
WiFi/examples/WiFiScanTime00💚 -12000💚 -100💚 -100--💚 -824💚 -88
WiFi/examples/WiFiTelnetToSerial00💚 -24000💚 -100💚 -100--💚 -832💚 -88
WiFi/examples/WiFiUDPClient00💚 -24000💚 -100💚 -100--💚 -824💚 -88
Wire/examples/WireMaster00💚 -16000💚 -120💚 -100💚 -100💚 -820💚 -88
Wire/examples/WireScan00💚 -16000💚 -100💚 -100💚 -120💚 -820💚 -88
Wire/examples/WireSlave00💚 -16000💚 -120💚 -100💚 -100💚 -820💚 -88
BLE/examples/BLE5_extended_scan--💚 -240--💚 -100💚 -100💚 -100--
BLE/examples/BLE5_multi_advertising--💚 -240--💚 -100💚 -100💚 -100--
BLE/examples/BLE5_periodic_advertising--💚 -240--💚 -100💚 -100💚 -100--
BLE/examples/BLE5_periodic_sync--💚 -240--💚 -100💚 -100💚 -100--
BLE/examples/Beacon_Scanner--💚 -240--💚 -100💚 -100💚 -100💚 -280
BLE/examples/Client--💚 -240--💚 -100💚 -100💚 -100💚 -240
BLE/examples/EddystoneTLM_Beacon--💚 -240--💚 -100💚 -100💚 -100💚 -240
BLE/examples/EddystoneURL_Beacon--💚 -240--💚 -100💚 -100💚 -100💚 -240
BLE/examples/Notify--💚 -240--💚 -100💚 -100💚 -100💚 -240
BLE/examples/Scan--💚 -240--💚 -100💚 -100💚 -100💚 -240
BLE/examples/Server--💚 -240--💚 -100💚 -100💚 -100💚 -240
BLE/examples/Server_multiconnect--💚 -240--💚 -100💚 -100💚 -100💚 -240
BLE/examples/UART--💚 -240--💚 -100💚 -100💚 -100💚 -280
BLE/examples/Write--💚 -240--💚 -100💚 -100💚 -100💚 -320
BLE/examples/iBeacon--💚 -240--💚 -100💚 -100💚 -100💚 -240
ESP32/examples/Camera/CameraWebServer (1)--💚 -24000------💚 -1108💚 -88
ESP32/examples/Camera/CameraWebServer (2)--💚 -20000------💚 -832💚 -88
ESP32/examples/Camera/CameraWebServer (3)--💚 -240----------
ESP32/examples/DeepSleep/ExternalWakeUp--💚 -16000------💚 -820💚 -88
ESP_NOW/examples/ESP_NOW_Broadcast_Master--💚 -24000💚 -100💚 -100--💚 -836💚 -88
ESP_NOW/examples/ESP_NOW_Broadcast_Slave--💚 -24000💚 -100💚 -100--💚 -840💚 -88
ESP_NOW/examples/ESP_NOW_Network--💚 -24000💚 -100💚 -100--💚 -832💚 -88
ESP_NOW/examples/ESP_NOW_Serial--💚 -24000💚 -100💚 -100--💚 -836💚 -88
ESP_SR/examples/Basic--💚 -160----------
HTTPClient/examples/HTTPClientEnterprise--💚 -24000💚 -100💚 -100--💚 -820💚 -88
Insights/examples/DiagnosticsSmokeTest--💚 -24000💚 -100💚 -100--💚 -824💚 -88
Insights/examples/MinimalDiagnostics--💚 -24000💚 -100💚 -100--💚 -836💚 -88
Matter/examples/MatterColorLight--💚 -24000💚 -100💚 -100--💚 -848💚 -88
Matter/examples/MatterCommissionTest--💚 -24000💚 -100💚 -100--💚 -808💚 -88
Matter/examples/MatterComposedLights--💚 -24000💚 -100💚 -100--💚 -812💚 -88
Matter/examples/MatterContactSensor--💚 -28000💚 -100💚 -100--💚 -852💚 -88
Matter/examples/MatterDimmableLight--💚 -32000💚 -100💚 -100--💚 -856💚 -88
Matter/examples/MatterEnhancedColorLight--💚 -28000💚 -100💚 -100--💚 -848💚 -88
Matter/examples/MatterFan--💚 -28000💚 -100💚 -100--💚 -828💚 -88
Matter/examples/MatterHumiditySensor--💚 -24000💚 -100💚 -100--💚 -860💚 -88
Matter/examples/MatterMinimum--💚 -28000💚 -100💚 -100--💚 -828💚 -88
Matter/examples/MatterOccupancySensor--💚 -24000💚 -100💚 -100--💚 -844💚 -88
Matter/examples/MatterOnIdentify--0000💚 -100💚 -100--💚 -824💚 -88
Matter/examples/MatterOnOffLight--💚 -24000💚 -100💚 -100--💚 -844💚 -88
Matter/examples/MatterOnOffPlugin--💚 -24000💚 -100💚 -100--💚 -848💚 -88
Matter/examples/MatterPressureSensor--💚 -24000💚 -100💚 -100--💚 -836💚 -88
Matter/examples/MatterSmartButon--💚 -24000💚 -100💚 -100--💚 -848💚 -88
Matter/examples/MatterTemperatureLight--💚 -24000💚 -100💚 -100--💚 -840💚 -88
Matter/examples/MatterTemperatureSensor--💚 -24000💚 -100💚 -100--💚 -852💚 -88
Matter/examples/MatterThermostat--💚 -24000💚 -100💚 -100--💚 -788💚 -88
Matter/examples/WiFiProvWithinMatter--💚 -28000💚 -100💚 -100--💚 -1040
NetworkClientSecure/examples/WiFiClientSecureEnterprise--💚 -24000💚 -100💚 -100--💚 -840💚 -88
RainMaker/examples/RMakerCustom--💚 -24000💚 -100💚 -100--💚 -440
RainMaker/examples/RMakerCustomAirCooler--💚 -24000💚 -120💚 -120----
RainMaker/examples/RMakerSonoffDualR3--💚 -24000💚 -100💚 -100----
RainMaker/examples/RMakerSwitch--💚 -24000💚 -100💚 -100--💚 -800
SimpleBLE/examples/SimpleBleDevice--💚 -240--💚 -1000000💚 -240
WebServer/examples/Middleware--💚 -24000💚 -100💚 -100--💚 -844💚 -88
WiFi/examples/WPS--💚 -24000💚 -100💚 -100--💚 -844💚 -88
WiFi/examples/WiFiBlueToothSwitch--💚 -240--💚 -100💚 -100--💚 -240
WiFi/examples/WiFiClientEnterprise--💚 -24000💚 -100💚 -100--💚 -848💚 -88
WiFi/examples/WiFiSmartConfig--💚 -24000💚 -100💚 -100--💚 -844💚 -88
WiFiProv/examples/WiFiProv--💚 -24000💚 -100💚 -100--💚 -960
Zigbee/examples/Zigbee_Color_Dimmer_Switch--💚 -16000💚 -100💚 -100💚 -100💚 -816💚 -88
Zigbee/examples/Zigbee_Gateway--💚 -24000💚 -100----💚 -808💚 -88
Zigbee/examples/Zigbee_On_Off_Switch--💚 -16000💚 -100💚 -100💚 -100💚 -812💚 -88
Zigbee/examples/Zigbee_Range_Extender--💚 -20000💚 -100💚 -100💚 -100💚 -828💚 -88
Zigbee/examples/Zigbee_Thermostat--💚 -16000💚 -100💚 -120💚 -100💚 -824💚 -88
OpenThread/examples/COAP/coap_lamp--------💚 -100💚 -100--
OpenThread/examples/COAP/coap_switch--------💚 -100💚 -100--
OpenThread/examples/SimpleCLI--------💚 -100💚 -100--
OpenThread/examples/SimpleNode--------💚 -100💚 -100--
OpenThread/examples/SimpleThreadNetwork/ExtendedRouterNode--------💚 -100💚 -100--
OpenThread/examples/SimpleThreadNetwork/LeaderNode--------💚 -100💚 -100--
OpenThread/examples/SimpleThreadNetwork/RouterNode--------💚 -120💚 -100--
OpenThread/examples/ThreadScan--------💚 -100💚 -120--
OpenThread/examples/onReceive--------💚 -100💚 -100--
Zigbee/examples/Zigbee_Analog_Input_Output--------💚 -100💚 -100--
Zigbee/examples/Zigbee_CarbonDioxide_Sensor--------💚 -120💚 -120--
Zigbee/examples/Zigbee_Color_Dimmable_Light--------💚 -100💚 -100--
Zigbee/examples/Zigbee_Contact_Switch--------💚 -100💚 -100--
Zigbee/examples/Zigbee_Dimmable_Light--------💚 -100💚 -100--
Zigbee/examples/Zigbee_OTA_Client--------💚 -100💚 -120--
Zigbee/examples/Zigbee_Occupancy_Sensor--------💚 -100💚 -100--
Zigbee/examples/Zigbee_On_Off_Light--------💚 -100💚 -100--
Zigbee/examples/Zigbee_Pressure_Flow_Sensor--------💚 -120💚 -120--
Zigbee/examples/Zigbee_Scan_Networks--------💚 -100💚 -100--
Zigbee/examples/Zigbee_Temp_Hum_Sensor_Sleepy--------💚 -120💚 -120--
Zigbee/examples/Zigbee_Temperature_Sensor--------💚 -120💚 -120--
Zigbee/examples/Zigbee_Vibration_Sensor--------💚 -100💚 -100--
Zigbee/examples/Zigbee_Wind_Speed_Sensor--------💚 -120💚 -120--
Zigbee/examples/Zigbee_Window_Covering--------💚 -120💚 -120--
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

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
Copy link
Collaborator Author

Jason2866 commented Mar 24, 2025
edited
Loading

@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

sQueezy1332 reacted with thumbs up emoji

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

Copy link
Collaborator Author

Jason2866 commented Mar 24, 2025
edited
Loading

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?

Copy link
Member

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

Copy link
Collaborator Author

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

Copy link
Collaborator Author

Jason2866 commented Mar 26, 2025
edited
Loading

Removed the in pioarduino non working weak stuff define. The allocating and release BT logic should be carefully revisited when moving to NimBLE.

Copy link
Collaborator Author

Jason2866 commented Apr 7, 2025
edited
Loading

The PR is not needed for pioarduino. The use of weak definitions in Arduino core can be forced in Platformio / pioarduino by adding lib_archive = no in platformio.ini
The example has this setting added and is working now.

The compile Arduino as an component of IDF still fails, since the weak define does not work and needs a change as suggested in this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@lucasssvaz lucasssvaz Awaiting requested review from lucasssvaz

@me-no-dev me-no-dev Awaiting requested review from me-no-dev

At least 0 approving reviews are required to merge this pull request.

Assignees
No one assigned
Labels
Status: Needs investigation We need to do some research before taking next steps on this issue
Projects
None yet
Milestone
3.2.1
Development

Successfully merging this pull request may close these issues.

esp_bt_init falied : 259

AltStyle によって変換されたページ (->オリジナル) /