h2zero / NimBLE-Arduino

A fork of the NimBLE library structured for compilation with Arduino, for use with ESP32, nRF5x.
https://h2zero.github.io/NimBLE-Arduino/
Apache License 2.0
667 stars 138 forks source link

ESP_ERROR_CHECK failed on platformio, platform=espressif32@6.5.0 #643

Closed Darmandran closed 3 weeks ago

Darmandran commented 4 months ago

Hi, since beginning of the year i been having issues with the platformio,

[env:esp32dev]
platform = espressif32@6.5.0
board = esp32dev 
framework = arduino
board_build.filesystem = littlefs 
monitor_speed = 115200
08:54:35.508 > ESP_ERROR_CHECK failed: esp_err_t 0x102 (ESP_ERR_INVALID_ARG) at 0x40094b70
08:54:35.514 > file: ".pio/libdeps/esp32dev/NimBLE-Arduino/src/NimBLEDevice.cpp" line 879
08:54:35.519 > func: static void NimBLEDevice::init(const string&)
08:54:35.525 > expression: esp_bt_controller_init(&bt_cfg)
08:54:35.527 > 
08:54:35.527 > abort() was called at PC 0x40094b73 on core 1
08:54:35.533 > 
08:54:35.533 > 
08:54:35.533 > Backtrace: 0x40084105:0x3ffced50 0x40094b7d:0x3ffced70 0x4009a8e1:0x3ffced90 0x40094b73:0x3ffcee10 0x400f2236:0x3ffcee30 0x400d3775:0x3ffcee80 0x400d602b:0x3ffceec0 0x40105fda:0x3ffcef20
08:54:35.550 >

the code in use is from the example beacon scan

 BLEDevice::init("");
  pBLEScan = BLEDevice::getScan(); 
  pBLEScan->setAdvertisedDeviceCallbacks(new MyAdvertisedDeviceCallbacks());
  pBLEScan->setActiveScan(false); // set it to false for scan_evt error 
  pBLEScan->setInterval(100);
  pBLEScan->setWindow(80); 
  pBLEScan->setMaxResults(0);

for
platform = espressif32@6.4.0 has no issues

h2zero commented 1 month ago

No idea what the problem with this would be but 6.7.0 has no such issue. Have you resolved this?

Darmandran commented 3 weeks ago

for now i have been sticking with platform = espressif32@6.4.0, and its been good.

h2zero commented 3 weeks ago

Thanks, I'll close this then as it seems to be a limited issue.