Description
Answers checklist
- I have read the documentation ESP-AT Programming Guide and the issue is not addressed there.
- I have used the latest released firmware or have updated my ESP-AT branch (master or release) to the latest version and checked that the issue is present there.
- I have searched the issue tracker for a similar issue and not found a similar issue.
AT+GMR
AT version:4.0.0.0(3fe3806 - ESP32C6 - Dec 29 2023 11:10:21)
SDK version:v5.1.2-dirty
compile time(89040be):Jan 2 2024 05:53:07
Bin version:v4.0.0.0(ESP32C6-4MB)
ESP-AT Firmware Source
Downloaded from https://docs.espressif.com/projects/esp-at/en/latest/esp32c6/AT_Binary_Lists/esp_at_binaries.html
Hardware Information
ESP32-C6 WROOM
Power Supply used
External 3.3V
What is the expected behavior?
Accept the connection and not crash.
What is the actual behavior?
When an Android client connects to the ESP32 BLE server the module crashes.
This is most repeatable when there are >100 BLE devices advertising as seen in LightBlue on the Android device.
When the crash happens the ESP32 does not recover to the application, instead remaining in BSL mode.
Probability of recurrence
75% when over 100 BLE devices are within scanning range of the Android device.
AT+SYSRAM?
Not available as module crashes.
Steps to reproduce
- Configure the ESP32 to advertise as a BLE server with paring support
- Connect an Android device
AT command port output
ESP-AT >> (00003160s) ready
ESP-AT << (00003171s) ATE0
ESP-AT >> (00003184s) ATE0
ESP-AT >> (00003194s)
ESP-AT >> (00003205s) OK
ESP-AT << (00003217s) AT+UART_CUR=921600,8,1,0,1
ESP-AT >> (00003228s)
ESP-AT >> (00003236s) OK
ESP-AT << (00003247s) AT+GMR
ESP-AT >> (00003259s) AT version:4.0.0.0(3fe3806 - ESP32C6 - Dec 29 2023 11:10:21)
ESP-AT >> (00003268s) SDK version:v5.1.2-dirty
ESP-AT >> (00003278s) compile time(89040be7):Jan 2 2024 05:53:07
ESP-AT >> (00003289s) Bin version:v4.0.0.0(ESP32C6-4MB)
ESP-AT >> (00003299s)
ESP-AT >> (00003311s) OK
ESP-AT << (00003321s) AT+CWINIT=0
ESP-AT >> (00003335s)
ESP-AT >> (00003344s) OK
ESP-AT << (00003355s) AT+BLEINIT=2
ESP-AT >> (00004317s)
ESP-AT >> (00004327s) OK
ESP-AT << (00004339s) AT+BLEADDR?
ESP-AT >> (00004351s) +BLEADDR:"40:4c:ca:43:ad:66"
ESP-AT >> (00004362s) OK
ESP-AT << (00004373s) AT+BLESECPARAM=13,0,16,3,3
ESP-AT >> (00004384s)
ESP-AT >> (00004395s) OK
ESP-AT << (00004405s) AT+BLESETKEY=123456
ESP-AT >> (00004413s)
ESP-AT >> (00004423s) OK
ESP-AT << (00004433s) AT+BLENAME="TPG_6600000523"
ESP-AT >> (00004442s)
ESP-AT >> (00004451s) OK
ESP-AT << (00004460s) AT+BLEADVPARAM=50,50,0,0,7,0
ESP-AT >> (00004471s)
ESP-AT >> (00004478s) OK
ESP-AT << (00004487s) AT+BLEADVDATA="02010603031DBA0F095450475F36363030303030353233"
ESP-AT >> (00004499s)
ESP-AT >> (00004505s) OK
ESP-AT << (00004514s) AT+BLEADVSTART
ESP-AT >> (00004524s)
ESP-AT >> (00004531s) OK
ESP-AT >> (00006474s) +BLECONN:0,"78:c0:2d:95:13:cb"
ESP-AT >> (00007432s) +BLECONNPARAM:0,6,6,6,0,500
AT log port output
ESP-DEBUG >> (00002378s) ESP-ROM:esp32c6-20220919
ESP-DEBUG >> (00002399s) Build:Sep 19 2022
ESP-DEBUG >> (00002406s) rst:0x1 (POWERON),boot:0x6d (SPI_FAST_FLASH_BOOT)
ESP-DEBUG >> (00002413s) SPIWP:0xee
ESP-DEBUG >> (00002423s) mode:DIO, clock div:2
ESP-DEBUG >> (00002430s) load:0x4086c410,len:0xd2c
ESP-DEBUG >> (00002440s) load:0x4086e610,len:0x2df0
ESP-DEBUG >> (00002447s) load:0x40875728,len:0x17d8
ESP-DEBUG >> (00002458s) entry 0x4086c410
ESP-DEBUG >> (00002503s) �[0;32mI (23) boot: ESP-IDF v5.1.2-dirty 2nd stage bootloader�[0m
ESP-DEBUG >> (00002512s) �[0;32mI (24) boot: compile time Jan 2 2024 05:53:08�[0m
ESP-DEBUG >> (00002519s) �[0;32mI (24) boot: chip revision: v0.0�[0m
ESP-DEBUG >> (00002529s) �[0;32mI (27) boot.esp32c6: SPI Speed : 80MHz�[0m
ESP-DEBUG >> (00002536s) �[0;32mI (32) boot.esp32c6: SPI Mode : DIO�[0m
ESP-DEBUG >> (00002545s) �[0;32mI (36) boot.esp32c6: SPI Flash Size : 4MB�[0m
ESP-DEBUG >> (00002552s) �[0;32mI (41) boot: Enabling RNG early entropy source...�[0m
ESP-DEBUG >> (00002562s) �[0;32mI (47) boot: Partition Table:�[0m
ESP-DEBUG >> (00002569s) �[0;32mI (50) boot: ## Label Usage Type ST Offset Length�[0m
ESP-DEBUG >> (00002581s) �[0;32mI (57) boot: 0 otadata OTA data 01 00 0000d000 00002000�[0m
ESP-DEBUG >> (00002589s) �[0;32mI (65) boot: 1 phy_init RF data 01 01 0000f000 00001000�[0m
ESP-DEBUG >> (00002600s) �[0;32mI (72) boot: 2 nvs WiFi data 01 02 00010000 0000e000�[0m
ESP-DEBUG >> (00002607s) �[0;32mI (80) boot: 3 at_customize unknown 40 00 0001e000 00042000�[0m
ESP-DEBUG >> (00002617s) �[0;32mI (87) boot: 4 ota_0 OTA app 00 10 00060000 001d0000�[0m
ESP-DEBUG >> (00002627s) �[0;32mI (95) boot: 5 ota_1 OTA app 00 11 00230000 001d0000�[0m
ESP-DEBUG >> (00002634s) �[0;32mI (102) boot: End of partition table�[0m
ESP-DEBUG >> (00002643s) �[0;32mI (107) esp_image: segment 0: paddr=00060020 vaddr=42150020 size=30740h (198464) map�[0m
ESP-DEBUG >> (00002649s) �[0;32mI (156) esp_image: segment 1: paddr=00090768 vaddr=40800000 size=0f8b0h ( 63664) load�[0m
ESP-DEBUG >> (00002658s) �[0;32mI (172) esp_image: segment 2: paddr=000a0020 vaddr=42000020 size=146000h (1335296) map�[0m
ESP-DEBUG >> (00002832s) �[0;32mI (447) esp_image: segment 3: paddr=001e6028 vaddr=4080f8b0 size=0a17ch ( 41340) load�[0m
ESP-DEBUG >> (00002863s) �[0;32mI (458) esp_image: segment 4: paddr=001f01ac vaddr=40819a30 size=03bf8h ( 15352) load�[0m
ESP-DEBUG >> (00002871s) �[0;32mI (462) esp_image: segment 5: paddr=001f3dac vaddr=50000000 size=00068h ( 104) load�[0m
ESP-DEBUG >> (00002879s) �[0;32mI (469) boot: Loaded app from partition at offset 0x60000�[0m
ESP-DEBUG >> (00002890s) �[0;32mI (470) boot: Disabling RNG early entropy source...�[0m
ESP-DEBUG >> (00003374s) controller lib commit: [77d09ce]
ESP-DEBUG >> (00004114s) registered service 0x1800 with handle=1
ESP-DEBUG >> (00004120s) registering characteristic 0x2a00 with def_handle=2 val_handle=3
ESP-DEBUG >> (00004129s) registering characteristic 0x2a01 with def_handle=4 val_handle=5
ESP-DEBUG >> (00004136s) registered service 0x1801 with handle=6
ESP-DEBUG >> (00004145s) registering characteristic 0x2a05 with def_handle=7 val_handle=8
ESP-DEBUG >> (00004152s) registered service 0xa002 with handle=10
ESP-DEBUG >> (00004160s) registering characteristic 0xc300 with def_handle=11 val_handle=12
ESP-DEBUG >> (00004167s) registering descriptor 0x2901 with handle=13
ESP-DEBUG >> (00004175s) registering characteristic 0xc301 with def_handle=14 val_handle=15
ESP-DEBUG >> (00004182s) registering descriptor 0x2901 with handle=16
ESP-DEBUG >> (00004190s) registering characteristic 0xc302 with def_handle=17 val_handle=18
ESP-DEBUG >> (00004198s) registering descriptor 0x2901 with handle=19
ESP-DEBUG >> (00004206s) registering characteristic 0xc303 with def_handle=20 val_handle=21
ESP-DEBUG >> (00004213s) registering descriptor 0x2901 with handle=22
ESP-DEBUG >> (00004222s) registering characteristic 0xc304 with def_handle=23 val_handle=24
ESP-DEBUG >> (00004229s) registering characteristic 0xc305 with def_handle=25 val_handle=26
ESP-DEBUG >> (00004240s) registering characteristic 0xc306 with def_handle=28 val_handle=29
ESP-DEBUG >> (00004247s) registering characteristic 0xc307 with def_handle=31 val_handle=32
ESP-DEBUG >> (00004257s) registering descriptor 0x2901 with handle=33
ESP-DEBUG >> (00004263s) registered service 0xa003 with handle=34
ESP-DEBUG >> (00004273s) registering characteristic 0xc400 with def_handle=35 val_handle=36
ESP-DEBUG >> (00004281s) registering descriptor 0x2901 with handle=37
ESP-DEBUG >> (00004291s) registering characteristic 0xc401 with def_handle=38 val_handle=39
ESP-DEBUG >> (00004299s) registering descriptor 0x2901 with handle=40
ESP-DEBUG >> (00004310s) reset reason=0
ESP-DEBUG >> (00006484s) connection established; status=0 handle=1 our_ota_addr_type=0 our_ota_addr=408374cf:00:15:40828000:00:4217d440
ESP-DEBUG >> (00006494s) our_id_addr_type=0 our_id_addr=408374c1:00:15:40828000:00:4217d440
ESP-DEBUG >> (00006502s) peer_ota_addr_type=1 peer_ota_addr=408374d6:00:15:40828000:00:4217d440
ESP-DEBUG >> (00006512s) peer_id_addr_type=1 peer_id_addr=408374c8:00:15:40828000:00:4217d440
ESP-DEBUG >> (00006521s) conn_itvl=39 conn_latency=0 supervision_timeout=500 encrypted=0 authenticated=0 bonded=0
ESP-DEBUG >> (00007442s) advertise complete; reason=0connection updated; status=0 handle=1 our_ota_addr_type=0 our_ota_addr=4083747f:00:15:40828000:00:4217d440
ESP-DEBUG >> (00007450s) our_id_addr_type=0 our_id_addr=40837471:00:15:40828000:00:4217d440
ESP-DEBUG >> (00007457s) peer_ota_addr_type=1 peer_ota_addr=40837486:00:15:40828000:00:4217d440
ESP-DEBUG >> (00007467s) peer_id_addr_type=1 peer_id_addr=40837478:00:15:40828000:00:4217d440
ESP-DEBUG >> (00007473s) conn_itvl=6 conn_latency=0 supervision_timeout=500 encrypted=0 authenticated=0 bonded=0
ESP-DEBUG >> (00007482s)
ESP-DEBUG >> (00007680s) BLE assert: line 178 in function r_ble_ll_utils_remapped_channel, param: 0x0, 0x0
ESP-DEBUG >> (00007688s) assert failed: osi_assert_wrapper bt.c:263 (0)
ESP-DEBUG >> (00007695s) Core 0 register dump:
ESP-DEBUG >> (00007705s) MEPC : 0x40800616 RA : 0x4080e1a8 SP : 0x40834b80 GP : 0x4081a234
ESP-DEBUG >> (00007713s) TP : 0x40804ea8 T0 : 0x37363534 T1 : 0x7271706f T2 : 0x33323130
ESP-DEBUG >> (00007724s) S0/FP : 0x00000099 S1 : 0x00000001 A0 : 0x40834bbc A1 : 0x4081c7f1
ESP-DEBUG >> (00007732s) A2 : 0x00000001 A3 : 0x00000029 A4 : 0x00000001 A5 : 0x40828000
ESP-DEBUG >> (00007745s) A6 : 0x0000000c A7 : 0x76757473 S2 : 0x00000009 S3 : 0x40834cbe
ESP-DEBUG >> (00007753s) S4 : 0x4081c7f0 S5 : 0x20830000 S6 : 0x20040015 S7 : 0x4215c000
ESP-DEBUG >> (00007764s) S8 : 0x20040000 S9 : 0x40828704 S10 : 0x00000000 S11 : 0x00000000
ESP-DEBUG >> (00007777s) T3 : 0x6e6d6c6b T4 : 0x6a696867 T5 : 0x66656463 T6 : 0x62613938
ESP-DEBUG >> (00007785s) MSTATUS : 0x00001881 MTVEC : 0x40800001 MCAUSE : 0x00000007 MTVAL : 0x00000000
ESP-DEBUG >> (00007796s) MHARTID : 0x00000000
ESP-DEBUG >> (00007803s)
ESP-DEBUG >> (00007813s) Stack memory:
ESP-DEBUG >> (00007820s) 40834b80: 0x40834c00 0x4215bd2f 0x421594dc 0x40811a4c 0x4081cdd0 0x421594dc 0x4081d120 0x42159441
ESP-DEBUG >> (00007832s) 40834ba0: 0x4081cde0 0x40834bb4 0x4081cde4 0x421527ac 0x4081c7f0 0x00333632 0x4082c328 0x65737361
ESP-DEBUG >> (00007839s) 40834bc0: 0x66207472 0x656c6961 0x6f203a64 0x615f6973 0x72657373 0x72775f74 0x65707061 0x74622072
ESP-DEBUG >> (00007851s) 40834be0: 0x323a632e 0x28203336 0xff002930 0x4001924e 0x40840b84 0x0000001b 0x00000000 0x408012da
ESP-DEBUG >> (00007906s) 40834c00: 0x00380030 0x40880000 0x40829f10 0x4080306c 0x408309e0 0x40828000 0x40838c6c 0x40003e08
ESP-DEBUG >> (00007915s) 40834c20: 0x00ff0000 0x40834cf0 0x00000000 0x00000000 0x00000000 0x40828704 0x20040000 0x4215c000
ESP-DEBUG >> (00007923s) 40834c40: 0x20040015 0x20830000 0x40803e14 0x40838ba4 0x00000001 0x40828000 0x40838b6c 0x400193a6
ESP-DEBUG >> (00007935s) 40834c60: 0x40840b84 0x4082c324 0x40828718 0x40022498 0x40880000 0x4082c324 0x40829f10 0x40834c94
ESP-DEBUG >> (00007943s) 40834c80: 0x00000002 0x00000000 0x00000000 0x40000000 0x00000004 0x000000b2 0x40803e14 0x40838ba4
ESP-DEBUG >> (00007954s) 40834ca0: 0x00000001 0x40828000 0x40838b6c 0x408031e6 0x20040015 0x40828000 0x20040000 0x4205a290
ESP-DEBUG >> (00007963s) 40834cc0: 0x20040015 0x40828000 0x40838b6c 0x4204aa7e 0x20040015 0x40828000 0x40839428 0x00000001
ESP-DEBUG >> (00007975s) 40834ce0: 0x4082c060 0x40838078 0x40838b6c 0x42066a04 0x4082c060 0x4082fe4c 0x00001388 0x00000001
ESP-DEBUG >> (00007983s) 40834d00: 0x4082c060 0x40838078 0x40838b6c 0x42066dd0 0x40828584 0x40828000 0xfff00000 0x600a2000
ESP-DEBUG >> (00007995s) 40834d20: 0x000fffff 0x40837c44 0x40838078 0x4205e87a 0x40828584 0x00000000 0x00000000 0x00000000
ESP-DEBUG >> (00008003s) 40834d40: 0x00000000 0x4215b000 0x40828000 0x40803620 0x40828584 0x40828710 0x40828000 0x4205e9e0
ESP-DEBUG >> (00008015s) 40834d60: 0x40828584 0x40828000 0x40828710 0x408032ac 0x40828584 0x40828000 0x408301b4 0x42045c0c
ESP-DEBUG >> (00008023s) 40834d80: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x4080e536
ESP-DEBUG >> (00008036s) 40834da0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
ESP-DEBUG >> (00008044s) 40834dc0: 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0x00000154 0x40834b20 0x40829f24
ESP-DEBUG >> (00008055s) 40834de0: 0x4081d9a8 0x4081d9a8 0x40834dd8 0x4081d9a0 0x00000002 0x4083146c 0x4083146c 0x40834dd8
ESP-DEBUG >> (00008061s) 40834e00: 0x00000000 0x00000017 0x40833dd4 0xba006c6c 0xb59d25a1 0x84ae7747 0x008340c0 0x00000000
ESP-DEBUG >> (00008072s) 40834e20: 0x40834dd0 0x00000017 0x00000000 0x00000000 0x00000000 0x00000000 0x4082a894 0x4082a8fc
ESP-DEBUG >> (00008078s) 40834e40: 0x4082a964 0x00000000 0x00000000 0x00000001 0x00000000 0x00000000 0x00000000 0x42133f7c
ESP-DEBUG >> (00008089s) 40834e60: 0x00000000 0x00000000 0x00000000 0x40837b54 0x00000000 0x00000000 0x00000000 0x00000000
ESP-DEBUG >> (00008095s) 40834e80: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
ESP-DEBUG >> (00008106s) 40834ea0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
ESP-DEBUG >> (00008117s) 40834ec0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
ESP-DEBUG >> (00008124s) 40834ee0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
ESP-DEBUG >> (00008135s) 40834f00: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
ESP-DEBUG >> (00008142s) 40834f20: 0x00000000 0x00000000 0x40000000 0x00000054 0x00000000 0x40834f30 0x00000000 0x00000000
ESP-DEBUG >> (00008153s) 40834f40: 0x00000000 0x40834f48 0xffffffff 0x40834f48 0x40834f48 0x00000000 0x40834f5c 0xffffffff
ESP-DEBUG >> (00008161s) 40834f60: 0x40834f5c 0x40834f5c 0x00000001 0x00000001 0x00000000 0x0000ffff 0x00000000 0xb33fffff
ESP-DEBUG >> (00008173s)
ESP-DEBUG >> (00008180s)
ESP-DEBUG >> (00008191s)
ESP-DEBUG >> (00008197s) ELF file SHA256: ea477cf2673a8368
ESP-DEBUG >> (00008207s)
ESP-DEBUG >> (00008213s) Rebooting...
ESP-DEBUG >> (00008223s) ESP-ROM:esp32c6-20220919
ESP-DEBUG >> (00008229s) Build:Sep 19 2022
ESP-DEBUG >> (00008239s) rst:0xc (SW_CPU),boot:0x6d (SPI_FAST_FLASH_BOOT)
ESP-DEBUG >> (00008245s) Saved PC:0x4001975a
ESP-DEBUG >> (00008255s) SPIWP:0xee
ESP-DEBUG >> (00008261s) mode:DIO, clock div:2
ESP-DEBUG >> (00008271s) load:0x4086c410,len:0xd2c
ESP-DEBUG >> (00008278s) load:0x4086e610,len:0x2df0
ESP-DEBUG >> (00008289s) load:0x40875728,len:0x17d8
ESP-DEBUG >> (00008296s) entry 0x4086c410
ESP-DEBUG >> (00008307s) �[0;32mI (27) boot: ESP-IDF v5.1.2-dirty 2nd stage bootloader�[0m
ESP-DEBUG >> (00008315s) �[0;32mI (27) boot: compile time Jan 2 2024 05:53:08�[0m
ESP-DEBUG >> (00008327s) �[0;32mI (28) boot: chip revision: v0.0�[0m
ESP-DEBUG >> (00008334s) �[0;32mI (30) boot.esp32c6: SPI Speed : 80MHz�[0m
ESP-DEBUG >> (00008344s) �[0;32mI (35) boot.esp32c6: SPI Mode : DIO�[0m
ESP-DEBUG >> (00008351s) �[0;32mI (40) boot.esp32c6: SPI Flash Size : 4MB�[0m
ESP-DEBUG >> (00008360s) �[0;32mI (44) boot: Enabling RNG early entropy source...�[0m
ESP-DEBUG >> (00008366s) �[0;32mI (50) boot: Partition Table:�[0m
ESP-DEBUG >> (00008375s) �[0;32mI (53) boot: ## Label Usage Type ST Offset Length�[0m
ESP-DEBUG >> (00008381s) �[0;32mI (61) boot: 0 otadata OTA data 01 00 0000d000 00002000�[0m
ESP-DEBUG >> (00008391s) �[0;32mI (68) boot: 1 phy_init RF data 01 01 0000f000 00001000�[0m
ESP-DEBUG >> (00008398s) �[0;32mI (76) boot: 2 nvs WiFi data 01 02 00010000 0000e000�[0m
ESP-DEBUG >> (00008408s) �[0;32mI (83) boot: 3 at_customize unknown 40 00 0001e000 00042000�[0m
ESP-DEBUG >> (00008415s) �[0;32mI (91) boot: 4 ota_0 OTA app 00 10 00060000 001d0000�[0m
ESP-DEBUG >> (00008425s) �[0;32mI (98) boot: 5 ota_1 OTA app 00 11 00230000 001d0000�[0m
ESP-DEBUG >> (00008432s) �[0;32mI (106) boot: End of partition table�[0m
ESP-DEBUG >> (00008441s) �[0;32mI (110) esp_image: segment 0: paddr=00060020 vaddr=42150020 size=30740h (198464) map�[0m
ESP-DEBUG >> (00008448s) �[0;32mI (199) esp_image: segment 1: paddr=00090768 vaddr=40800000 size=0f8b0h ( 63664) load�[0m
ESP-DEBUG >> (00008461s) �[0;32mI (230) esp_image: segment 2: paddr=000a0020 vaddr=42000020 size=146000h (1335296) map�[0m
ESP-DEBUG >> (00008706s) �[0;32mI (774) esp_image: segment 3: paddr=001e6028 vaddr=4080f8b0 size=0a17ch ( 41340) load�[0m
ESP-DEBUG >> (00008735s) �[0;32mI (795) esp_image: segment 4: paddr=001f01ac vaddr=40819a30 size=03bf8h ( 15352) load�[0m
ESP-DEBUG >> (00008743s) �[0;32mI (803) esp_image: segment 5: paddr=001f3dac vaddr=50000000 size=00068h ( 104) load�[0m
ESP-DEBUG >> (00008751s) �[0;32mI (816) boot: Loaded app from partition at offset 0x60000�[0m
ESP-DEBUG >> (00008759s) �[0;32mI (817) boot: Disabling RNG early entropy source...�[0m
More Information.
Timestamps are in milliseconds