-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
NimBLE examples panics when connected from an iPhone using nRF Connect
app (IDFGH-14056)
#14875
Comments
nRF Connect
appnRF Connect
app (IDFGH-14056)
@Tnze Based on the IDF version and chip name you provided, I was NOT able to reproduce the issue. I have included the log below. Also, please ensure that your codebase is clean and properly synced. Could you kindly share the sdkconfig file? Log that I got : I (23) bot: ESP-IDF v5.3.1 2nd stage bootloader I (2143) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (2153) uart: queue free spaces: 8 I (13534) NimBLE: I (13538) NimBLE: advertise complete; reason=0 I (14137) NimBLE: connection updated; status=0 I (14222) NimBLE: I (14710) NimBLE: connection updated; status=0 I (14800) NimBLE: I (109905) NimBLE: disconnect; reason=531 I (109991) NimBLE: I (121245) NimBLE: connection established; status=0 I (121337) NimBLE: I (121342) NimBLE: advertise complete; reason=0 I (121526) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (121585) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (121742) NimBLE: connection established; status=0 I (121835) NimBLE: I (121841) NimBLE: advertise complete; reason=0 I (122025) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (122082) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (122201) NimBLE: connection established; status=0 I (122293) NimBLE: I (122297) NimBLE: advertise complete; reason=0 I (123193) NimBLE: connection updated; status=0 I (123279) NimBLE: I (123825) NimBLE: connection updated; status=0 I (123914) NimBLE: I (304007) NimBLE: disconnect; reason=531 I (304093) NimBLE: |
Looks like you didn't reproduce the assertion failure and panic. While capturing the logs my codebase is not clean because I applied a patch from #16864. But I can ensure the issue can be reproduced on unmodified esp-idf release. I will clean the code and recapture the logs, sharing the config file later. |
I cleanup my esp-idf and I can still reproduce this issue. Logs40829150: 0x66207472 0x656c6961 0x65203a64 0x625f7478 0x7270656c 0x615f6870 0x72657664 0x65736974 40829170: 0x69616d20 0x3a632e6e 0x20393231 0x20637228 0x30203d3d 0x00000029 0x40828378 0x4080e234 0x4080e234: prvCopyDataToQueue at F:/esp/v5.3.1/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:247040829190: 0x00000000 0x00000000 0x40828378 0x4080e864 0x408291f4 0x00002036 0x0000020c 0x00000000 408291b0: 0x00000019 0x00002036 0x00000000 0x4201ea94 0x0000020c 0x408291f0 0x00000001 0x00000000 408291d0: 0x0000020c 0x408293e8 0x40828378 0x4080ea26 0x00000000 0x40829244 0x408201e0 0x408036b4 408291f0: 0x00000000 0x40829244 0x00000000 0x42012c3a 0x00000000 0x00000000 0x01020001 0x42012c56 40829210: 0x00000000 0x00000000 0x00000000 0x42000000 0x00000012 0x00000000 0x00000000 0x00000000 40829250: 0x00000000 0x00000000 0x02010000 0x00000100 0x4208376c 0x00000000 0x408292ec 0x4200e8e2 40829270: 0x408292cc 0x00002016 0x00000000 0x00000000 0x408292e8 0x408293e8 0x40828378 0x4080ea26 40829290: 0x408292e8 0x408292e4 0x408201e0 0x408036b4 0x00000000 0x408292e4 0x00000000 0x42012c3a 408292b0: 0x40818931 0x40819a60 0x40818918 0x42012c56 0x00000000 0x000000fc 0x00000000 0x42018446 408292d0: 0x00000012 0x408241a6 0x00000000 0x420187ba 0x408293e0 0x00000000 0x4200e5d0 0x00000009 408292f0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 40829330: 0x00000012 0x408241a6 0x408241a6 0x42013aee 0x00000000 0x00000000 0x00000006 0x42013460 40829350: 0x40818000 0x0000003e 0x408241a4 0x42013fbc 0x40818000 0x408241a4 0x40818864 0x42012b16 40829370: 0x00000000 0x00000000 0x40818864 0x40802d86 0x00000000 0x00000000 0x40818000 0x40802c6a 40829390: 0x420837a8 0x00000865 0x00000000 0x4200e276 0x00000000 0x00000000 0x00000000 0x40810ace 408293b0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 40829470: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 ELF file SHA256: 441742955 Rebooting... I (2256) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (2267) uart: queue free spaces: 8 I (2327) NimBLE: I (2330) NimBLE: advertise complete; reason=0 I (2463) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (2520) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (2527) NimBLE: connection established; status=0 I (2576) NimBLE: I (2580) NimBLE: advertise complete; reason=0 assert failed: ext_bleprph_advertise main.c:129 (rc == 0) TP : 0x408293e0 T0 : 0x37363534 T1 : 0x7271706f T2 : 0x33323130 MHARTID : 0x00000000 Stack memory: 40829130: 0x408164dc 0x40829144 0x408164e0 0x42083960 0x408164e4 0x00393231 0x408282c8 0x65737361 40829190: 0x00000000 0x00000000 0x40828378 0x4080e864 0x408291f4 0x00002036 0x0000020c 0x00000000 408291b0: 0x00000019 0x00002036 0x00000000 0x4201ea94 0x0000020c 0x408291f0 0x00000001 0x00000000 408291d0: 0x0000020c 0x408293e8 0x40828378 0x4080ea26 0x00000000 0x40829244 0x408201e0 0x408036b4 408291f0: 0x00000000 0x40829244 0x00000000 0x42012c3a 0x00000000 0x00000000 0x01020001 0x42012c56 40829210: 0x00000000 0x00000000 0x00000000 0x42000000 0x00000000 0x00000000 0x00000000 0x00000000 40829250: 0x00000000 0x00000000 0x02010000 0x00000100 0x4208376c 0x00000000 0x408292ec 0x4200e8e2 40829270: 0x408292cc 0x00002016 0x00000000 0x00000000 0x408292e8 0x408293e8 0x40828378 0x4080ea26 40829290: 0x408292e8 0x408292e4 0x408201e0 0x408036b4 0x40818931 0x408292e4 0x00000000 0x42012c3a 408292b0: 0x40818931 0x40819a60 0x40818918 0x42012c56 0x00000000 0x00000000 0x00000000 0x42018446 408292d0: 0x00000012 0x408241a6 0x00000000 0x420187ba 0x42013fbe 0x00000000 0x4200e5d0 0x00000009 408292f0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 40829330: 0x00000012 0x408241a6 0x408241a6 0x42013aee 0x00000000 0x00000000 0x00000006 0x42013460 40829350: 0x40818000 0x0000003e 0x408241a4 0x42013fbc 0x40818000 0x408241a4 0x40818864 0x42012b16 40829370: 0x00000000 0x00000000 0x40818864 0x40802d86 0x00000000 0x00000000 0x40818000 0x40802c6a 40829390: 0x420837a8 0x00000865 0x00000000 0x4200e276 0x00000000 0x00000000 0x00000000 0x40810ace 408293b0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 40829470: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 ELF file SHA256: 441742955 Rebooting... I (2257) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (2267) uart: queue free spaces: 8 I (2327) NimBLE: I (2331) NimBLE: advertise complete; reason=0 I (2464) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (2523) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (2735) NimBLE: connection established; status=0 I (2821) NimBLE: I (2825) NimBLE: advertise complete; reason=0 I (2921) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (2977) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (2985) NimBLE: connection established; status=0 I (3033) NimBLE: I (3037) NimBLE: advertise complete; reason=0 assert failed: ext_bleprph_advertise main.c:129 (rc == 0) TP : 0x408293e0 T0 : 0x37363534 T1 : 0x7271706f T2 : 0x33323130 MHARTID : 0x00000000 Stack memory: 40829130: 0x408164dc 0x40829144 0x408164e0 0x42083960 0x408164e4 0x00393231 0x408282c8 0x65737361 40829190: 0x00000000 0x00000000 0x40828378 0x4080e864 0x408291f4 0x00002036 0x0000020c 0x00000000 408291b0: 0x00000019 0x00002036 0x00000000 0x4201ea94 0x0000020c 0x408291f0 0x00000001 0x00000000 408291d0: 0x0000020c 0x408293e8 0x40828378 0x4080ea26 0x00000000 0x40829244 0x408201e0 0x408036b4 408291f0: 0x00000000 0x40829244 0x00000000 0x42012c3a 0x00000000 0x00000000 0x01020001 0x42012c56 40829210: 0x00000000 0x00000000 0x00000000 0x42000000 0x00000012 0x00000000 0x00000000 0x00000000 40829250: 0x00000000 0x00000000 0x02010000 0x00000100 0x4208376c 0x00000000 0x408292ec 0x4200e8e2 40829270: 0x408292cc 0x00002016 0x00000000 0x00000000 0x408292e8 0x408293e8 0x40828378 0x4080ea26 40829290: 0x408292e8 0x408292e4 0x408201e0 0x408036b4 0x40818931 0x408292e4 0x00000000 0x42012c3a 408292b0: 0x40818931 0x40819a60 0x40818918 0x42012c56 0x00000000 0x00000000 0x00000000 0x42018446 408292d0: 0x00000012 0x408241a6 0x00000000 0x420187ba 0x00000000 0x00000000 0x4200e5d0 0x00000009 408292f0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 40829330: 0x00000012 0x408241a6 0x408241a6 0x42013aee 0x40818000 0x00000000 0x00000006 0x42013460 40829350: 0x40818000 0x0000003e 0x408241a4 0x42013fbc 0x40818000 0x408241a4 0x40818868 0x42012b16 40829370: 0x00000000 0x00000000 0x40818868 0x40802d86 0x00000000 0x00000000 0x40818000 0x40802c6a 40829390: 0x420837a8 0x00000865 0x00000000 0x4200e276 0x00000000 0x00000000 0x00000000 0x40810ace 408293b0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 40829470: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 ELF file SHA256: 441742955 Rebooting... I (2255) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (2265) uart: queue free spaces: 8 I (2398) NimBLE: I (2405) NimBLE: advertise complete; reason=0 I (2503) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (2560) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (2614) NimBLE: connection established; status=0 I (2698) NimBLE: I (2703) NimBLE: advertise complete; reason=0 I (2802) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (2859) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (2911) NimBLE: connection established; status=0 I (2995) NimBLE: I (3001) NimBLE: advertise complete; reason=0 I (3097) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (3156) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (3245) NimBLE: connection established; status=0 I (3331) NimBLE: I (3338) NimBLE: advertise complete; reason=0 I (3431) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (3487) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (3542) NimBLE: connection established; status=0 I (3626) NimBLE: I (3631) NimBLE: advertise complete; reason=0 I (3733) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (3790) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (3841) NimBLE: connection established; status=0 I (3925) NimBLE: I (3931) NimBLE: advertise complete; reason=0 I (4024) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (4081) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (4170) NimBLE: connection established; status=0 I (4255) NimBLE: I (4260) NimBLE: advertise complete; reason=0 I (4363) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (4420) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (4473) NimBLE: connection established; status=0 I (4557) NimBLE: I (4562) NimBLE: advertise complete; reason=0 I (4662) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (4720) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (4773) NimBLE: connection established; status=0 I (4857) NimBLE: I (4863) NimBLE: advertise complete; reason=0 I (4955) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (5012) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (5099) NimBLE: connection established; status=0 I (5184) NimBLE: I (5190) NimBLE: advertise complete; reason=0 I (5289) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (5347) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (5396) NimBLE: connection established; status=0 I (5480) NimBLE: I (5485) NimBLE: advertise complete; reason=0 I (5586) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (5643) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (5970) NimBLE: connection established; status=0 I (6056) NimBLE: I (6062) NimBLE: advertise complete; reason=0 I (6106) NimBLE: mtu update event; conn_handle=0 cid=4 mtu=256 |
@Shreeyash-17 Your patch cannot be applied even by hand because file |
@Tnze The previous patch I shared was not compatible with version 5.3.1. I am sending a new patch—please apply this one and share the log and results with us. Path : esp-idf/ components/bt/host/nimble/nimble : |
I have patched my codebase. I tested it twice. During the first test, due to setting too few Scrollback lines on the terminal, the previous logs were flushed out, so I tested again for the second time. I saw Log1
Log2
|
Answers checklist.
IDF version.
v5.3.1
Espressif SoC revision.
ESP32-H2
Operating System used.
Windows
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
PowerShell
Development Kit.
Waveshare ESP32-H2-DEV-KIT-N4
Power Supply used.
USB
What is the expected behavior?
The example doesn't panic. And the BLE works.
What is the actual behavior?
When connected from an iPhone, the ESP-32 panic and reboot.
After crashing and restarting several times, and connecting several times, the connection can then be successful.
Steps to reproduce.
power save
examplenimble-bleprph-e
Debug Logs.
More Information.
It's noticed that the rear part of the logs is quite similar to #12911
The text was updated successfully, but these errors were encountered: