-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
ESP32-S3 crash with arduino-esp32 core 3.x.x #676
Comments
Hello @Laxilef, thanks for opening this issue. Yes, the new arduino core has broken this library for now and I will fix this in the future. It will still work but it requires modifying your application to do the BLE related calls from a task running on the same core as the main NimBLE stack task like so:
|
Yeah, it works! Thanks @h2zero :) p.s. did you find any other bugs with 3.x.x? |
Unrelated, however, ESP-NOW had some breaking changes made. Espressif has noted them, but the Arduino wrapper team missed it. |
@Laxilef Im not aware of anything else, I just knew the build broke due to IPC changes. I've pinned this for everyone to comment on their experience and to make the workaround visible. |
I will wait for the fix and go back to esp32 Version 2. |
Please test #681 and let me know if it resolves this for you all. |
The change resolves the issue, I am now able to scan without getting the |
On a ESP32-Zero. with esp32 3.0.1 Rebooting... Backtrace: 0x4038344b:0x3fcf0d00 0x4038193d:0x3fcf0d30 0x403837d8:0x3fcf0d60 0x403837ce:0xa5a5a5a5 |<-CORRUPTED ELF file SHA256: 0c670f66a2a5e575 |
Same on ESP32-S3WROOM-1 Dev board |
Using the last library with the Arduino Nano ESP32 board that still uses esp32 2.0.13 gave these errors during compiling
|
Probably not at first but now I downloaded NimBLE-Arduino-nimble-1.5.0.zip I use BLE-UART from your examples I as remember well Rebooting... E (794) BLE_INIT: controller disable failed E (795) BLE_INIT: controller deinit failed E (795) BLE_INIT: nimble host init failed assert failed: xQueueReceive queue.c:1475 (( pxQueue )) Backtrace: 0x403772c6:0x3fcedb10 0x4037d4d9:0x3fcedb30 0x403832a1:0x3fcedb50 0x4037dbcb:0x3fcedc80 0x420169d1:0x3fcedcc0 0x4037542f:0x3fcedcf0 0x42005e72:0x3fcedd10 |
You BLE-uart example also gives the same error as above and the Arduino Nano ESP32 does not initializes the BLE serial and simply stops without rebooting |
BTW The Nano was also rebooting
|
Sorry I mentioned the wrong PR... the fix should be in #681 |
Now I have NimBLE-Arduino-release-1.4.zip
I tested that this morning but I will test it again to be sure because there is also NimBLE-Arduino-master.zip in my download folder
From: h2zero ***@***.***>
Sent: Tuesday, 11 June 2024 15:43
To: h2zero/NimBLE-Arduino ***@***.***>
Cc: Ed Nieuwenhuys ***@***.***>; Mention ***@***.***>
Subject: Re: [h2zero/NimBLE-Arduino] ESP32-S3 crash with arduino-esp32 core 3.x.x (Issue #676)
Sorry I mentioned the wrong PR... the fix should be in #681 <#681>
—
Reply to this email directly, view it on GitHub <#676 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AC42NIAR3IXQGBQFSJSXDQDZG35GHAVCNFSM6AAAAABI4XUVLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRQHAYDENJWGU> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/AC42NIDUOS5GT76H64R6J5LZG35GHA5CNFSM6AAAAABI4XUVLCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUAZM5QK.gif> Message ID: ***@***.*** ***@***.***> >
|
No. still rebooting
ELF file SHA256: 10f61709dc4a6b25 ` |
If you still have this:
in esp_nible_hci.c then you do not have the PR branch as that is what gets removed there. |
Can you send the library bij mail to me or direct me how to download it? |
Tested on esp32 s3, core 3.0.1, esp-idf v5.1.4, works great @ednieuw https://github.com/h2zero/NimBLE-Arduino/archive/refs/heads/remove-ipc.zip |
Thanks for the link Laxilef! I still can not find it in Github but with your link I got success But now an error with esp32 core 2.0.13 compiling for Arduino Nano ESP32
|
@ednieuw have you set Please try one of the server examples with default config and let me know if you have this error. |
No. Did not changed anything. Used this library version if you like it I can change esp_nible_hci.c with the #if ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(3, 0, 0) compile options mentioned before |
@ednieuw I'm not able to reproduce this issue, there must be something in your environment causing this. |
It could be a cache problem. I suspect the arduino IDE2 is not clearing it completely when switching boards |
That sounds likely, please let me know. I recommend switching to PlatformIO in vscode as it makes this sort of thing much easier to manage. |
Succes. Both ESP32 version V2.0 and v3.0 work now. I tried the ESP32-S3 with V3.0.1 and the Arduino Nano ESP32 with the Arduino version V2.0 13. |
Great! thanks for the update! I will close this now. |
Hi
I'm using NimBLE-Arduino 1.4.1 with arduino-esp32 core 2.x.x and it works great, but now I'm trying to upgrade to arduino-esp32 core 3.x.x and when I call the
NimBLEClient::connect()
method I get a crash.The error always looks like this:
I tried increasing the task stack to 50k, it doesn't help.
Platformio.ini config:
This is very similar to #649. Does this mean that the library is currently not compatible with arduino-esp32 core 3.x.x?
The text was updated successfully, but these errors were encountered: