espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.75k stars 7.3k forks source link

NimBLE examples panics when connected from an iPhone using `nRF Connect` app (IDFGH-14056) #14875

Open Tnze opened 1 day ago

Tnze commented 1 day ago

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.

  1. Run the power save example
  2. Run the ESP-IDF Monitor
  3. Scan BLE devices on iPhone using the "nRF Connect" app (I'm using iPhone 12 Pro Max), and try connecting the device nimble-bleprph-e
  4. The firmware fatal and reboot

Debug Logs.

--- WARNING: GDB cannot open serial ports accessed as COMx
--- Using \\.\COM20 instead...
--- esp-idf-monitor 1.4.0 on \\.\COM20 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ESP-ROM:esp32h2-20221101
Build:Nov  1 2022
rst:0x1 (POWERON),boot:0xc (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x408460e0,len:0x17ac
load:0x4083cad0,len:0xefc
load:0x4083efd0,len:0x2ce4
entry 0x4083cada
I (23) boot: ESP-IDF v5.3.1-dirty 2nd stage bootloader
I (24) boot: compile time Nov 12 2024 21:19:21
I (25) boot: chip revision: v0.1
I (27) boot.esp32h2: SPI Speed      : 64MHz
I (32) boot.esp32h2: SPI Mode       : DIO
I (37) boot.esp32h2: SPI Flash Size : 2MB
I (41) boot: Enabling RNG early entropy source...
I (47) boot: Partition Table:
I (50) boot: ## Label            Usage          Type ST Offset   Length
I (58) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (65) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (72) boot:  2 factory          factory app      00 00 00010000 00100000
I (80) boot: End of partition table
I (84) esp_image: segment 0: paddr=00010020 vaddr=42080020 size=1b0c4h (110788) map
I (127) esp_image: segment 1: paddr=0002b0ec vaddr=40800000 size=04f2ch ( 20268) load
I (135) esp_image: segment 2: paddr=00030020 vaddr=42000020 size=7e4dch (517340) map
I (296) esp_image: segment 3: paddr=000ae504 vaddr=40804f2c size=0f5d8h ( 62936) load
I (318) esp_image: segment 4: paddr=000bdae4 vaddr=40814510 size=02cbch ( 11452) load
I (323) esp_image: segment 5: paddr=000c07a8 vaddr=50000000 size=00050h (    80) load
I (324) esp_image: segment 6: paddr=000c0800 vaddr=50000050 size=00008h (     8) load
I (339) boot: Loaded app from partition at offset 0x10000
I (339) boot: Disabling RNG early entropy source...
I (356) cpu_start: Unicore app
W (1892) clk: 32 kHz clock not found, switching to internal 150 kHz oscillator
I (1916) cpu_start: Pro cpu start user code
I (1916) cpu_start: cpu freq: 96000000 Hz
I (1917) app_init: Application information:
I (1919) app_init: Project name:     power_save
I (1924) app_init: App version:      1
I (1929) app_init: Compile time:     Nov 12 2024 21:19:11
I (1935) app_init: ELF file SHA256:  a608a03df...
I (1940) app_init: ESP-IDF:          v5.3.1-dirty
I (1946) efuse_init: Min chip rev:     v0.0
I (1950) efuse_init: Max chip rev:     v0.99
I (1955) efuse_init: Chip rev:         v0.1
I (1960) heap_init: Initializing. RAM available for dynamic allocation:
I (1968) heap_init: At 40819F90 len 000333F0 (204 KiB): RAM
I (1974) heap_init: At 4084D380 len 00002B60 (10 KiB): RAM
I (1981) spi_flash: detected chip: generic
I (1985) spi_flash: flash io: dio
W (1989) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (2003) sleep: Enable automatic switching of GPIO sleep configuration
I (2010) sleep_clock: System Power, Clock and Reset sleep retention initialization
I (2032) pm: Frequency switching config: CPU_MAX: 96, APB_MAX: 32, APB_MIN: 32, Light sleep: DISABLED
I (2033) coexist: coex firmware version: 4482466
I (2038) main_task: Started on CPU0
I (2041) main_task: Calling app_main()
I (2054) pm: Frequency switching config: CPU_MAX: 96, APB_MAX: 32, APB_MIN: 32, Light sleep: ENABLED   
W (2056) BLE_INIT: 32.768kHz XTAL not detected, fall back to main XTAL as Bluetooth sleep clock
I (2064) BLE_INIT: Using main XTAL as clock source
I (2076) BLE_INIT: ble controller commit:[a95ec45]
W (2076) BLE_INIT: BLE modem sleep is enabled
I (2081) BLE_INIT: Modem BLE MAC retention initialization
W (2086) BLE_INIT: Enable light sleep, the wake up source is BLE timer
I (2106) phy: phy_version: 310,2, 8fa9cb4, Jun  5 2024, 14:19:10
I (2124) phy: libbtbb version: a024da6, Jun  5 2024, 14:19:22
I (2125) sleep_clock: Modem Power, Clock and Reset sleep retention initialization
I (2130) NimBLE_BLE_PRPH: BLE Host Task Started
I (2138) NimBLE: Device Address: 
I (2138) NimBLE: 74:4d:bd:62:05:5f
I (2141) NimBLE:

I (2145) NimBLE: GAP procedure initiated: extended advertise; instance=0

I (2156) uart: queue free spaces: 8
I (2157) main_task: Returned from app_main()
I (186713) NimBLE: connection established; status=0 
I (186764) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr=
I (186765) NimBLE: 74:4d:bd:62:05:5f
I (186766) NimBLE:  our_id_addr_type=0 our_id_addr=
I (186770) NimBLE: 74:4d:bd:62:05:5f
I (186774) NimBLE:  peer_ota_addr_type=1 peer_ota_addr=
I (186780) NimBLE: 7c:f8:9a:ef:5c:68
I (186785) NimBLE:  peer_id_addr_type=1 peer_id_addr=
I (186791) NimBLE: 7c:f8:9a:ef:5c:68
I (186795) NimBLE:  conn_itvl=21 conn_latency=0 supervision_timeout=72 encrypted=0 authenticated=0 bonded=0

I (186806) NimBLE:

I (186810) NimBLE: advertise complete; reason=0
I (186817) NimBLE: GAP procedure initiated: extended advertise; instance=0

I (186874) NimBLE: Reattempt advertising; reason: 0x3e, status = 0
I (186925) NimBLE: GAP procedure initiated: stop extended advertising.

I (186929) NimBLE: GAP procedure initiated: extended advertise; instance=0

I (186937) NimBLE: connection established; status=0
I (186940) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr=
I (186942) NimBLE: 74:4d:bd:62:05:5f
I (186946) NimBLE:  our_id_addr_type=0 our_id_addr=
I (186952) NimBLE: 74:4d:bd:62:05:5f
I (186956) NimBLE:  peer_ota_addr_type=1 peer_ota_addr=
I (186962) NimBLE: 7c:f8:9a:ef:5c:68
I (186967) NimBLE:  peer_id_addr_type=1 peer_id_addr=
I (186972) NimBLE: 7c:f8:9a:ef:5c:68
I (186976) NimBLE:  conn_itvl=21 conn_latency=0 supervision_timeout=72 encrypted=0 authenticated=0 bonded=0

I (186987) NimBLE: 

I (186993) NimBLE: advertise complete; reason=0

assert failed: ext_bleprph_advertise main.c:129 (rc == 0)
Core  0 register dump:
MEPC    : 0x40800808  RA      : 0x4080d7b4  SP      : 0x40829110  GP      : 0x40814d14
0x40800808: panic_abort at F:/esp/v5.3.1/esp-idf/components/esp_system/panic.c:463
0x4080d7b4: assist_debug_hal_get_sp_bounds at F:/esp/v5.3.1/esp-idf/components/hal/include/hal/assist_debug_hal.h:54
 (inlined by) esp_hw_stack_guard_get_bounds at F:/esp/v5.3.1/esp-idf/components/esp_system/hw_stack_guard.c:76

TP      : 0x408293e0  T0      : 0x37363534  T1      : 0x7271706f  T2      : 0x33323130
S0/FP   : 0x0000008e  S1      : 0x00000001  A0      : 0x4082914c  A1      : 0x408164e5
A2      : 0x00000001  A3      : 0x00000029  A4      : 0x00000001  A5      : 0x40818000
A6      : 0x0000000c  A7      : 0x76757473  S2      : 0x00000009  S3      : 0x40829259
S4      : 0x408164e4  S5      : 0x00000000  S6      : 0x00000000  S7      : 0x00000000
S8      : 0x00000000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000
T3      : 0x6e6d6c6b  T4      : 0x6a696867  T5      : 0x66656463  T6      : 0x62613938  
MSTATUS : 0x00001881  MTVEC   : 0x40800001  MCAUSE  : 0x00000007  MTVAL   : 0x00000000
0x40800001: _vector_table at F:/esp/v5.3.1/esp-idf/components/riscv/vectors_intc.S:54

MHARTID : 0x00000000

Stack memory:
40829110: 0x00000004 0x40826538 0x4208d250 0x4081347e 0x408164cc 0x4208d250 0x40815e40 0x42083970      
0x4081347e: newlib_include_assert_impl at F:/esp/v5.3.1/esp-idf/components/newlib/assert.c:92

40829130: 0x408164dc 0x40829144 0x408164e0 0x42083960 0x408164e4 0x00393231 0x408282c8 0x65737361      
40829150: 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:2470

40829190: 0x00000000 0x00000000 0x40828378 0x4080e864 0x408291f4 0x00002036 0x0000020c 0x00000000      
0x4080e864: xQueueGenericSend at F:/esp/v5.3.1/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:1057

408291b0: 0x00000019 0x00002036 0x00000000 0x4201ea94 0x0000020c 0x408291f0 0x00000001 0x00000000      
0x4201ea94: ble_hs_hci_cmd_tx at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs_hci.c:361

408291d0: 0x0000020c 0x408293e8 0x40828378 0x4080ea26 0x00000000 0x40829244 0x408201e0 0x408036b4      
0x4080ea26: xQueueGiveMutexRecursive at F:/esp/v5.3.1/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:796
0x408036b4: npl_freertos_mutex_release at F:/esp/v5.3.1/esp-idf/components/bt/porting/npl/freertos/src/npl_os_freertos.c:470 (discriminator 1)

408291f0: 0x00000000 0x40829244 0x00000000 0x42012c3a 0x00000000 0x00000000 0x01020001 0x42012c56      
0x42012c3a: ble_hs_unlock_nested at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs.c:209
0x42012c56: ble_hs_unlock at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs.c:240

40829210: 0x00000000 0x00000000 0x00000000 0x42000000 0x00000012 0x00000000 0x00000000 0x00000000      
40829230: 0x00000012 0x408241a6 0x408292ec 0x4200e480 0x00000000 0x00000001 0x00000030 0x00000030      
0x4200e480: ext_bleprph_advertise at F:/Embedded/ESP32/power_save/main/main.c:135 (discriminator 1)

40829250: 0x00000000 0x00000000 0x02010000 0x00000100 0x4208376c 0x00000000 0x408292ec 0x4200e8e2      
0x4200e8e2: bleprph_gap_event at F:/Embedded/ESP32/power_save/main/main.c:345

40829270: 0x408292cc 0x00002016 0x00000000 0x00000000 0x408292e8 0x408293e8 0x40828378 0x4080ea26      
0x4080ea26: xQueueGiveMutexRecursive at F:/esp/v5.3.1/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:796

40829290: 0x408292e8 0x408292e4 0x408201e0 0x408036b4 0x40818931 0x408292e4 0x00000000 0x42012c3a      
0x408036b4: npl_freertos_mutex_release at F:/esp/v5.3.1/esp-idf/components/bt/porting/npl/freertos/src/npl_os_freertos.c:470 (discriminator 1)
0x42012c3a: ble_hs_unlock_nested at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs.c:209

408292b0: 0x40818931 0x40819a60 0x40818918 0x42012c56 0x00000000 0x00000000 0x00000000 0x42018446      
0x42012c56: ble_hs_unlock at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs.c:240
0x42018446: ble_gap_slave_extract_cb at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_gap.c:1013

408292d0: 0x00000012 0x408241a6 0x00000000 0x420187ba 0x00000000 0x00000000 0x4200e5d0 0x00000009      
0x420187ba: ble_gap_adv_finished at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_gap.c:1038
0x4200e5d0: bleprph_gap_event at F:/Embedded/ESP32/power_save/main/main.c:280

408292f0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000      
40829310: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x5c680101 0x408241a6 0x42019428      
0x42019428: ble_gap_rx_adv_set_terminated at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_gap.c:1829

40829330: 0x00000012 0x408241a6 0x408241a6 0x42013aee 0x40818000 0x00000000 0x00000006 0x42013460      
0x42013aee: ble_hs_hci_evt_le_adv_set_terminated at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs_hci_evt.c:956
0x42013460: ble_hs_hci_evt_le_meta at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs_hci_evt.c:440

40829350: 0x40818000 0x0000003e 0x408241a4 0x42013fbc 0x40818000 0x408241a4 0x40818864 0x42012b16      
0x42013fbc: ble_hs_hci_evt_process at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs_hci_evt.c:1124
0x42012b16: ble_hs_event_rx_hci_ev at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs.c:532

40829370: 0x00000000 0x00000000 0x40818864 0x40802d86 0x00000000 0x00000000 0x40818000 0x40802c6a      
0x40802d86: npl_freertos_event_run at F:/esp/v5.3.1/esp-idf/components/bt/porting/npl/freertos/src/npl_os_freertos.c:403
0x40802c6a: nimble_port_run at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/porting/nimble/src/nimble_port.c:307

40829390: 0x420837a8 0x000007f6 0x00000000 0x4200e276 0x00000000 0x00000000 0x00000000 0x40810ace      
0x4200e276: bleprph_host_task at F:/Embedded/ESP32/power_save/main/main.c:534
0x40810ace: vPortTaskWrapper at F:/esp/v5.3.1/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:258

408293b0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000      
408293d0: 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0x00000150 0x40829000 0x00000000      
408293f0: 0x408176f8 0x408176f8 0x408293e8 0x408176f0 0x00000004 0x40820218 0x40820218 0x408293e8      
40829410: 0x00000000 0x00000015 0x408283e4 0x626d696e 0x685f656c 0x0074736f 0x00000000 0x408293e0      
40829430: 0x00000015 0x00000000 0x00000000 0x00000000 0x00000000 0x4081aa68 0x4081aad0 0x4081ab38      
40829450: 0x00000000 0x00000000 0x00000001 0x00000000 0x00000000 0x00000000 0x420088d2 0x00000000      
0x420088d2: esp_cleanup_r at F:/esp/v5.3.1/esp-idf/components/newlib/newlib_init.c:43

40829470: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000      
40829490: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000      
408294b0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000      
408294d0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000      
408294f0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000      

ELF file SHA256: a608a03df

Rebooting...
ESP-ROM:esp32h2-20221101
Build:Nov  1 2022
rst:0xc (SW_CPU),boot:0xc (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x408460e0,len:0x17ac
load:0x4083cad0,len:0xefc
load:0x4083efd0,len:0x2ce4
entry 0x4083cada
I (25) boot: ESP-IDF v5.3.1-dirty 2nd stage bootloader
I (26) boot: compile time Nov 12 2024 21:19:21
I (27) boot: chip revision: v0.1
I (28) boot.esp32h2: SPI Speed      : 64MHz
I (33) boot.esp32h2: SPI Mode       : DIO
I (38) boot.esp32h2: SPI Flash Size : 2MB
I (43) boot: Enabling RNG early entropy source...
I (48) boot: Partition Table:
I (52) boot: ## Label            Usage          Type ST Offset   Length
I (59) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (66) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (74) boot:  2 factory          factory app      00 00 00010000 00100000
I (81) boot: End of partition table
I (86) esp_image: segment 0: paddr=00010020 vaddr=42080020 size=1b0c4h (110788) map
I (145) esp_image: segment 1: paddr=0002b0ec vaddr=40800000 size=04f2ch ( 20268) load
I (157) esp_image: segment 2: paddr=00030020 vaddr=42000020 size=7e4dch (517340) map
I (393) esp_image: segment 3: paddr=000ae504 vaddr=40804f2c size=0f5d8h ( 62936) load
I (428) esp_image: segment 4: paddr=000bdae4 vaddr=40814510 size=02cbch ( 11452) load
I (435) esp_image: segment 5: paddr=000c07a8 vaddr=50000000 size=00050h (    80) load
I (437) esp_image: segment 6: paddr=000c0800 vaddr=50000050 size=00008h (     8) load
I (455) boot: Loaded app from partition at offset 0x10000
I (456) boot: Disabling RNG early entropy source...
I (467) cpu_start: Unicore app
W (2004) clk: 32 kHz clock not found, switching to internal 150 kHz oscillator
I (2028) cpu_start: Pro cpu start user code
I (2028) cpu_start: cpu freq: 96000000 Hz
I (2029) app_init: Application information:
I (2031) app_init: Project name:     power_save
I (2036) app_init: App version:      1
I (2041) app_init: Compile time:     Nov 12 2024 21:19:11
I (2047) app_init: ELF file SHA256:  a608a03df...
I (2052) app_init: ESP-IDF:          v5.3.1-dirty
I (2058) efuse_init: Min chip rev:     v0.0
I (2062) efuse_init: Max chip rev:     v0.99
I (2068) efuse_init: Chip rev:         v0.1
I (2072) heap_init: Initializing. RAM available for dynamic allocation:
I (2080) heap_init: At 40819F90 len 000333F0 (204 KiB): RAM
I (2086) heap_init: At 4084D380 len 00002B60 (10 KiB): RAM
I (2093) spi_flash: detected chip: generic
I (2097) spi_flash: flash io: dio
W (2101) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (2115) sleep: Enable automatic switching of GPIO sleep configuration
I (2122) sleep_clock: System Power, Clock and Reset sleep retention initialization
I (2144) pm: Frequency switching config: CPU_MAX: 96, APB_MAX: 32, APB_MIN: 32, Light sleep: DISABLED
I (2145) coexist: coex firmware version: 4482466
I (2150) main_task: Started on CPU0
I (2153) main_task: Calling app_main()
I (2166) pm: Frequency switching config: CPU_MAX: 96, APB_MAX: 32, APB_MIN: 32, Light sleep: ENABLED   
W (2168) BLE_INIT: 32.768kHz XTAL not detected, fall back to main XTAL as Bluetooth sleep clock
I (2176) BLE_INIT: Using main XTAL as clock source
I (2188) BLE_INIT: ble controller commit:[a95ec45]
W (2188) BLE_INIT: BLE modem sleep is enabled
I (2193) BLE_INIT: Modem BLE MAC retention initialization
W (2198) BLE_INIT: Enable light sleep, the wake up source is BLE timer
I (2219) phy: phy_version: 310,2, 8fa9cb4, Jun  5 2024, 14:19:10
I (2236) phy: libbtbb version: a024da6, Jun  5 2024, 14:19:22
I (2237) sleep_clock: Modem Power, Clock and Reset sleep retention initialization
I (2242) NimBLE_BLE_PRPH: BLE Host Task Started
I (2250) NimBLE: Device Address: 
I (2251) NimBLE: 74:4d:bd:62:05:5f
I (2253) NimBLE:

I (2257) NimBLE: GAP procedure initiated: extended advertise; instance=0

I (2268) uart: queue free spaces: 8
I (2269) main_task: Returned from app_main()
I (2273) NimBLE: connection established; status=0 
I (2278) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr=
I (2285) NimBLE: 74:4d:bd:62:05:5f
I (2289) NimBLE:  our_id_addr_type=0 our_id_addr=
I (2294) NimBLE: 74:4d:bd:62:05:5f
I (2298) NimBLE:  peer_ota_addr_type=1 peer_ota_addr=
I (2304) NimBLE: 7c:f8:9a:ef:5c:68
I (2308) NimBLE:  peer_id_addr_type=1 peer_id_addr=
I (2314) NimBLE: 7c:f8:9a:ef:5c:68
I (2317) NimBLE:  conn_itvl=21 conn_latency=0 supervision_timeout=72 encrypted=0 authenticated=0 bonded=0

I (2328) NimBLE:

I (2331) NimBLE: advertise complete; reason=0
I (2337) NimBLE: GAP procedure initiated: extended advertise; instance=0

I (2443) NimBLE: Reattempt advertising; reason: 0x3e, status = 0
I (2494) NimBLE: GAP procedure initiated: stop extended advertising.

I (2498) NimBLE: GAP procedure initiated: extended advertise; instance=0

I (2506) NimBLE: connection established; status=0
I (2509) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr=
I (2511) NimBLE: 74:4d:bd:62:05:5f
I (2515) NimBLE:  our_id_addr_type=0 our_id_addr=
I (2520) NimBLE: 74:4d:bd:62:05:5f
I (2524) NimBLE:  peer_ota_addr_type=1 peer_ota_addr=
I (2530) NimBLE: 7c:f8:9a:ef:5c:68
I (2534) NimBLE:  peer_id_addr_type=1 peer_id_addr=
I (2540) NimBLE: 7c:f8:9a:ef:5c:68
I (2546) NimBLE:  conn_itvl=21 conn_latency=0 supervision_timeout=72 encrypted=0 authenticated=0 bonded=0

I (2554) NimBLE:

I (2558) NimBLE: advertise complete; reason=0

assert failed: ext_bleprph_advertise main.c:129 (rc == 0)
Core  0 register dump:
MEPC    : 0x40800808  RA      : 0x4080d7b4  SP      : 0x40829110  GP      : 0x40814d14  
0x40800808: panic_abort at F:/esp/v5.3.1/esp-idf/components/esp_system/panic.c:463
0x4080d7b4: assist_debug_hal_get_sp_bounds at F:/esp/v5.3.1/esp-idf/components/hal/include/hal/assist_debug_hal.h:54
 (inlined by) esp_hw_stack_guard_get_bounds at F:/esp/v5.3.1/esp-idf/components/esp_system/hw_stack_guard.c:76

TP      : 0x408293e0  T0      : 0x37363534  T1      : 0x7271706f  T2      : 0x33323130
S0/FP   : 0x0000008e  S1      : 0x00000001  A0      : 0x4082914c  A1      : 0x408164e5
A2      : 0x00000001  A3      : 0x00000029  A4      : 0x00000001  A5      : 0x40818000
A6      : 0x0000000c  A7      : 0x76757473  S2      : 0x00000009  S3      : 0x40829259
S4      : 0x408164e4  S5      : 0x00000000  S6      : 0x00000000  S7      : 0x00000000
S8      : 0x00000000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000  
T3      : 0x6e6d6c6b  T4      : 0x6a696867  T5      : 0x66656463  T6      : 0x62613938
MSTATUS : 0x00001881  MTVEC   : 0x40800001  MCAUSE  : 0x00000007  MTVAL   : 0x00000000  
0x40800001: _vector_table at F:/esp/v5.3.1/esp-idf/components/riscv/vectors_intc.S:54

MHARTID : 0x00000000

Stack memory:
40829110: 0x00000004 0x40826538 0x4208d250 0x4081347e 0x408164cc 0x4208d250 0x40815e40 0x42083970      
0x4081347e: newlib_include_assert_impl at F:/esp/v5.3.1/esp-idf/components/newlib/assert.c:92

40829130: 0x408164dc 0x40829144 0x408164e0 0x42083960 0x408164e4 0x00393231 0x408282c8 0x65737361      
40829150: 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:2470

40829190: 0x00000000 0x00000000 0x40828378 0x4080e864 0x408291f4 0x00002036 0x0000020c 0x00000000      
0x4080e864: xQueueGenericSend at F:/esp/v5.3.1/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:1057

408291b0: 0x00000019 0x00002036 0x00000000 0x4201ea94 0x0000020c 0x408291f0 0x00000001 0x00000000      
0x4201ea94: ble_hs_hci_cmd_tx at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs_hci.c:361

408291d0: 0x0000020c 0x408293e8 0x40828378 0x4080ea26 0x00000000 0x40829244 0x408201e0 0x408036b4      
0x4080ea26: xQueueGiveMutexRecursive at F:/esp/v5.3.1/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:796
0x408036b4: npl_freertos_mutex_release at F:/esp/v5.3.1/esp-idf/components/bt/porting/npl/freertos/src/npl_os_freertos.c:470 (discriminator 1)

408291f0: 0x00000000 0x40829244 0x00000000 0x42012c3a 0x00000000 0x00000000 0x01020001 0x42012c56      
0x42012c3a: ble_hs_unlock_nested at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs.c:209
0x42012c56: ble_hs_unlock at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs.c:240

40829210: 0x00000000 0x00000000 0x00000000 0x42000000 0x00000012 0x00000000 0x00000000 0x00000000      
40829230: 0x00000012 0x408241a6 0x408292ec 0x4200e480 0x00000000 0x00000001 0x00000030 0x00000030      
0x4200e480: ext_bleprph_advertise at F:/Embedded/ESP32/power_save/main/main.c:135 (discriminator 1)

40829250: 0x00000000 0x00000000 0x02010000 0x00000100 0x4208376c 0x00000000 0x408292ec 0x4200e8e2      
0x4200e8e2: bleprph_gap_event at F:/Embedded/ESP32/power_save/main/main.c:345

40829270: 0x408292cc 0x00002016 0x00000000 0x00000000 0x408292e8 0x408293e8 0x40828378 0x4080ea26      
0x4080ea26: xQueueGiveMutexRecursive at F:/esp/v5.3.1/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:796

40829290: 0x408292e8 0x408292e4 0x408201e0 0x408036b4 0x40818931 0x408292e4 0x00000000 0x42012c3a      
0x408036b4: npl_freertos_mutex_release at F:/esp/v5.3.1/esp-idf/components/bt/porting/npl/freertos/src/npl_os_freertos.c:470 (discriminator 1)
0x42012c3a: ble_hs_unlock_nested at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs.c:209

408292b0: 0x40818931 0x40819a60 0x40818918 0x42012c56 0x00000000 0x00000000 0x00000000 0x42018446      
0x42012c56: ble_hs_unlock at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs.c:240
0x42018446: ble_gap_slave_extract_cb at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_gap.c:1013

408292d0: 0x00000012 0x408241a6 0x00000000 0x420187ba 0x00000000 0x00000000 0x4200e5d0 0x00000009      
0x420187ba: ble_gap_adv_finished at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_gap.c:1038
0x4200e5d0: bleprph_gap_event at F:/Embedded/ESP32/power_save/main/main.c:280

408292f0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000      
40829310: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x5c680101 0x408241a6 0x42019428      
0x42019428: ble_gap_rx_adv_set_terminated at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_gap.c:1829

40829330: 0x00000012 0x408241a6 0x408241a6 0x42013aee 0x40818000 0x00000000 0x00000006 0x42013460      
0x42013aee: ble_hs_hci_evt_le_adv_set_terminated at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs_hci_evt.c:956
0x42013460: ble_hs_hci_evt_le_meta at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs_hci_evt.c:440

40829350: 0x40818000 0x0000003e 0x408241a4 0x42013fbc 0x40818000 0x408241a4 0x40818864 0x42012b16      
0x42013fbc: ble_hs_hci_evt_process at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs_hci_evt.c:1124
0x42012b16: ble_hs_event_rx_hci_ev at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs.c:532

40829370: 0x00000000 0x00000000 0x40818864 0x40802d86 0x00000000 0x00000000 0x40818000 0x40802c6a      
0x40802d86: npl_freertos_event_run at F:/esp/v5.3.1/esp-idf/components/bt/porting/npl/freertos/src/npl_os_freertos.c:403
0x40802c6a: nimble_port_run at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/porting/nimble/src/nimble_port.c:307

40829390: 0x420837a8 0x00000866 0x00000000 0x4200e276 0x00000000 0x00000000 0x00000000 0x40810ace      
0x4200e276: bleprph_host_task at F:/Embedded/ESP32/power_save/main/main.c:534
0x40810ace: vPortTaskWrapper at F:/esp/v5.3.1/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:258

408293b0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000      
408293d0: 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0x00000150 0x40829000 0x00000000      
408293f0: 0x408176f8 0x408176f8 0x408293e8 0x408176f0 0x00000004 0x40820218 0x40820218 0x408293e8      
40829410: 0x00000000 0x00000015 0x408283e4 0x626d696e 0x685f656c 0x0074736f 0x00000000 0x408293e0      
40829430: 0x00000015 0x00000000 0x00000000 0x00000000 0x00000000 0x4081aa68 0x4081aad0 0x4081ab38      
40829450: 0x00000000 0x00000000 0x00000001 0x00000000 0x00000000 0x00000000 0x420088d2 0x00000000      
0x420088d2: esp_cleanup_r at F:/esp/v5.3.1/esp-idf/components/newlib/newlib_init.c:43

40829470: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000      
40829490: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000      
408294b0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000      
408294d0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000      
408294f0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000      

ELF file SHA256: a608a03df

Rebooting...
ESP-ROM:esp32h2-20221101
Build:Nov  1 2022
rst:0xc (SW_CPU),boot:0xc (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x408460e0,len:0x17ac
load:0x4083cad0,len:0xefc
load:0x4083efd0,len:0x2ce4
entry 0x4083cada
I (25) boot: ESP-IDF v5.3.1-dirty 2nd stage bootloader
I (26) boot: compile time Nov 12 2024 21:19:21
I (27) boot: chip revision: v0.1
I (28) boot.esp32h2: SPI Speed      : 64MHz
I (33) boot.esp32h2: SPI Mode       : DIO
I (38) boot.esp32h2: SPI Flash Size : 2MB
I (43) boot: Enabling RNG early entropy source...
I (48) boot: Partition Table:
I (52) boot: ## Label            Usage          Type ST Offset   Length
I (59) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (66) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (74) boot:  2 factory          factory app      00 00 00010000 00100000
I (81) boot: End of partition table
I (86) esp_image: segment 0: paddr=00010020 vaddr=42080020 size=1b0c4h (110788) map
I (145) esp_image: segment 1: paddr=0002b0ec vaddr=40800000 size=04f2ch ( 20268) load
I (157) esp_image: segment 2: paddr=00030020 vaddr=42000020 size=7e4dch (517340) map
I (393) esp_image: segment 3: paddr=000ae504 vaddr=40804f2c size=0f5d8h ( 62936) load
I (428) esp_image: segment 4: paddr=000bdae4 vaddr=40814510 size=02cbch ( 11452) load
I (435) esp_image: segment 5: paddr=000c07a8 vaddr=50000000 size=00050h (    80) load
I (437) esp_image: segment 6: paddr=000c0800 vaddr=50000050 size=00008h (     8) load
I (455) boot: Loaded app from partition at offset 0x10000
I (456) boot: Disabling RNG early entropy source...
I (467) cpu_start: Unicore app
To exit from IDF monitor please use "Ctrl+]". Alternatively, you can use Ctrl+T Ctrl+X to exit.
W (1782) clk: 32 kHz clock not found, switching to internal 150 kHz oscillator
I (1806) cpu_start: Pro cpu start user code
I (1807) cpu_start: cpu freq: 96000000 Hz
I (1807) app_init: Application information:
I (1809) app_init: Project name:     power_save
I (1815) app_init: App version:      1
I (1819) app_init: Compile time:     Nov 12 2024 21:19:11
I (1825) app_init: ELF file SHA256:  a608a03df...
I (1831) app_init: ESP-IDF:          v5.3.1-dirty
I (1836) efuse_init: Min chip rev:     v0.0
I (1841) efuse_init: Max chip rev:     v0.99
I (1846) efuse_init: Chip rev:         v0.1
I (1851) heap_init: Initializing. RAM available for dynamic allocation:
I (1858) heap_init: At 40819F90 len 000333F0 (204 KiB): RAM
I (1864) heap_init: At 4084D380 len 00002B60 (10 KiB): RAM
I (1872) spi_flash: detected chip: generic
I (1875) spi_flash: flash io: dio
W (1879) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (1893) sleep: Enable automatic switching of GPIO sleep configuration
I (1900) sleep_clock: System Power, Clock and Reset sleep retention initialization
I (1922) pm: Frequency switching config: CPU_MAX: 96, APB_MAX: 32, APB_MIN: 32, Light sleep: DISABLED
I (1923) coexist: coex firmware version: 4482466
I (1928) main_task: Started on CPU0
I (1931) main_task: Calling app_main()
I (1944) pm: Frequency switching config: CPU_MAX: 96, APB_MAX: 32, APB_MIN: 32, Light sleep: ENABLED
W (1946) BLE_INIT: 32.768kHz XTAL not detected, fall back to main XTAL as Bluetooth sleep clock        
I (1954) BLE_INIT: Using main XTAL as clock source
I (1966) BLE_INIT: ble controller commit:[a95ec45]
W (1966) BLE_INIT: BLE modem sleep is enabled
I (1971) BLE_INIT: Modem BLE MAC retention initialization
W (1976) BLE_INIT: Enable light sleep, the wake up source is BLE timer
I (1997) phy: phy_version: 310,2, 8fa9cb4, Jun  5 2024, 14:19:10
I (2014) phy: libbtbb version: a024da6, Jun  5 2024, 14:19:22
I (2015) sleep_clock: Modem Power, Clock and Reset sleep retention initialization
I (2020) NimBLE_BLE_PRPH: BLE Host Task Started
I (2028) NimBLE: Device Address:
I (2029) NimBLE: 74:4d:bd:62:05:5f
I (2031) NimBLE:

I (2035) NimBLE: GAP procedure initiated: extended advertise; instance=0

I (2046) uart: queue free spaces: 8
I (2047) main_task: Returned from app_main()
I (2051) NimBLE: connection established; status=0
I (2056) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr=
I (2063) NimBLE: 74:4d:bd:62:05:5f
I (2067) NimBLE:  our_id_addr_type=0 our_id_addr=
I (2072) NimBLE: 74:4d:bd:62:05:5f
I (2076) NimBLE:  peer_ota_addr_type=1 peer_ota_addr=
I (2082) NimBLE: 7c:f8:9a:ef:5c:68
I (2086) NimBLE:  peer_id_addr_type=1 peer_id_addr=
I (2092) NimBLE: 7c:f8:9a:ef:5c:68
I (2096) NimBLE:  conn_itvl=21 conn_latency=0 supervision_timeout=72 encrypted=0 authenticated=0 bonded=0

I (2106) NimBLE:

I (2110) NimBLE: advertise complete; reason=0
I (2116) NimBLE: GAP procedure initiated: extended advertise; instance=0

I (2223) NimBLE: Reattempt advertising; reason: 0x3e, status = 0
I (2274) NimBLE: GAP procedure initiated: stop extended advertising.

I (2280) NimBLE: GAP procedure initiated: extended advertise; instance=0

I (2291) NimBLE: connection established; status=0
I (2294) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr=
I (2294) NimBLE: 74:4d:bd:62:05:5f
I (2298) NimBLE:  our_id_addr_type=0 our_id_addr=
I (2303) NimBLE: 74:4d:bd:62:05:5f
I (2309) NimBLE:  peer_ota_addr_type=1 peer_ota_addr=
I (2313) NimBLE: 7c:f8:9a:ef:5c:68
I (2317) NimBLE:  peer_id_addr_type=1 peer_id_addr=
I (2325) NimBLE: 7c:f8:9a:ef:5c:68
I (2328) NimBLE:  conn_itvl=21 conn_latency=0 supervision_timeout=72 encrypted=0 authenticated=0 bonded=0

I (2337) NimBLE:

I (2342) NimBLE: advertise complete; reason=0

assert failed: ext_bleprph_advertise main.c:129 (rc == 0)
Core  0 register dump:
MEPC    : 0x40800808  RA      : 0x4080d7b4  SP      : 0x40829110  GP      : 0x40814d14
0x40800808: panic_abort at F:/esp/v5.3.1/esp-idf/components/esp_system/panic.c:463
0x4080d7b4: assist_debug_hal_get_sp_bounds at F:/esp/v5.3.1/esp-idf/components/hal/include/hal/assist_debug_hal.h:54
 (inlined by) esp_hw_stack_guard_get_bounds at F:/esp/v5.3.1/esp-idf/components/esp_system/hw_stack_guard.c:76

TP      : 0x408293e0  T0      : 0x37363534  T1      : 0x7271706f  T2      : 0x33323130
S0/FP   : 0x0000008e  S1      : 0x00000001  A0      : 0x4082914c  A1      : 0x408164e5
A2      : 0x00000001  A3      : 0x00000029  A4      : 0x00000001  A5      : 0x40818000
A6      : 0x0000000c  A7      : 0x76757473  S2      : 0x00000009  S3      : 0x40829259
S4      : 0x408164e4  S5      : 0x00000000  S6      : 0x00000000  S7      : 0x00000000
S8      : 0x00000000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000
T3      : 0x6e6d6c6b  T4      : 0x6a696867  T5      : 0x66656463  T6      : 0x62613938  
MSTATUS : 0x00001881  MTVEC   : 0x40800001  MCAUSE  : 0x00000007  MTVAL   : 0x00000000
0x40800001: _vector_table at F:/esp/v5.3.1/esp-idf/components/riscv/vectors_intc.S:54

MHARTID : 0x00000000

Stack memory:
40829110: 0x00000004 0x40826538 0x4208d250 0x4081347e 0x408164cc 0x4208d250 0x40815e40 0x42083970      
0x4081347e: newlib_include_assert_impl at F:/esp/v5.3.1/esp-idf/components/newlib/assert.c:92

40829130: 0x408164dc 0x40829144 0x408164e0 0x42083960 0x408164e4 0x00393231 0x408282c8 0x65737361      
40829150: 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:2470

40829190: 0x00000000 0x00000000 0x40828378 0x4080e864 0x408291f4 0x00002036 0x0000020c 0x00000000      
0x4080e864: xQueueGenericSend at F:/esp/v5.3.1/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:1057

408291b0: 0x00000019 0x00002036 0x00000000 0x4201ea94 0x0000020c 0x408291f0 0x00000001 0x00000000      
0x4201ea94: ble_hs_hci_cmd_tx at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs_hci.c:361

408291d0: 0x0000020c 0x408293e8 0x40828378 0x4080ea26 0x00000000 0x40829244 0x408201e0 0x408036b4      
0x4080ea26: xQueueGiveMutexRecursive at F:/esp/v5.3.1/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:796
0x408036b4: npl_freertos_mutex_release at F:/esp/v5.3.1/esp-idf/components/bt/porting/npl/freertos/src/npl_os_freertos.c:470 (discriminator 1)

408291f0: 0x00000000 0x40829244 0x00000000 0x42012c3a 0x00000000 0x00000000 0x01020001 0x42012c56      
0x42012c3a: ble_hs_unlock_nested at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs.c:209
0x42012c56: ble_hs_unlock at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs.c:240

40829210: 0x00000000 0x00000000 0x00000000 0x42000000 0x00000012 0x00000000 0x00000000 0x00000000      
40829230: 0x00000012 0x408241a6 0x408292ec 0x4200e480 0x00000000 0x00000001 0x00000030 0x00000030      
0x4200e480: ext_bleprph_advertise at F:/Embedded/ESP32/power_save/main/main.c:135 (discriminator 1)

40829250: 0x00000000 0x00000000 0x02010000 0x00000100 0x4208376c 0x00000000 0x408292ec 0x4200e8e2      
0x4200e8e2: bleprph_gap_event at F:/Embedded/ESP32/power_save/main/main.c:345

40829270: 0x408292cc 0x00002016 0x00000000 0x00000000 0x408292e8 0x408293e8 0x40828378 0x4080ea26      
0x4080ea26: xQueueGiveMutexRecursive at F:/esp/v5.3.1/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:796

40829290: 0x408292e8 0x408292e4 0x408201e0 0x408036b4 0x40818931 0x408292e4 0x00000000 0x42012c3a      
0x408036b4: npl_freertos_mutex_release at F:/esp/v5.3.1/esp-idf/components/bt/porting/npl/freertos/src/npl_os_freertos.c:470 (discriminator 1)
0x42012c3a: ble_hs_unlock_nested at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs.c:209

408292b0: 0x40818931 0x40819a60 0x40818918 0x42012c56 0x00000000 0x00000000 0x00000000 0x42018446      
To exit from IDF monitor please use "Ctrl+]". Alternatively, you can use Ctrl+T Ctrl+X to exit.
408292d0: 0x00000012 0x408241a6 0x00000000 0x420187ba 0x00000000 0x00000000 0x4200e5d0 0x00000009      
0x420187ba: ble_gap_adv_finished at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_gap.c:1038
0x4200e5d0: bleprph_gap_event at F:/Embedded/ESP32/power_save/main/main.c:280

408292f0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000      
40829310: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x5c680101 0x408241a6 0x42019428      
0x42019428: ble_gap_rx_adv_set_terminated at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_gap.c:1829

40829330: 0x00000012 0x408241a6 0x408241a6 0x42013aee 0x40818000 0x00000000 0x00000006 0x42013460      
0x42013aee: ble_hs_hci_evt_le_adv_set_terminated at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs_hci_evt.c:956
0x42013460: ble_hs_hci_evt_le_meta at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs_hci_evt.c:440

40829350: 0x40818000 0x0000003e 0x408241a4 0x42013fbc 0x40818000 0x408241a4 0x40818864 0x42012b16      
0x42013fbc: ble_hs_hci_evt_process at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs_hci_evt.c:1124
0x42012b16: ble_hs_event_rx_hci_ev at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs.c:532

40829370: 0x00000000 0x00000000 0x40818864 0x40802d86 0x00000000 0x00000000 0x40818000 0x40802c6a      
0x40802d86: npl_freertos_event_run at F:/esp/v5.3.1/esp-idf/components/bt/porting/npl/freertos/src/npl_os_freertos.c:403
0x40802c6a: nimble_port_run at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/porting/nimble/src/nimble_port.c:307

40829390: 0x420837a8 0x00000788 0x00000000 0x4200e276 0x00000000 0x00000000 0x00000000 0x40810ace      
0x4200e276: bleprph_host_task at F:/Embedded/ESP32/power_save/main/main.c:534
0x40810ace: vPortTaskWrapper at F:/esp/v5.3.1/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:258

408293b0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000      
408293d0: 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0x00000150 0x40829000 0x00000000      
408293f0: 0x408176f8 0x408176f8 0x408293e8 0x408176f0 0x00000004 0x40820218 0x40820218 0x408293e8      
40829410: 0x00000000 0x00000015 0x408283e4 0x626d696e 0x685f656c 0x0074736f 0x00000000 0x408293e0      
40829430: 0x00000015 0x00000000 0x00000000 0x00000000 0x00000000 0x4081aa68 0x4081aad0 0x4081ab38      
40829450: 0x00000000 0x00000000 0x00000001 0x00000000 0x00000000 0x00000000 0x420088d2 0x00000000      
0x420088d2: esp_cleanup_r at F:/esp/v5.3.1/esp-idf/components/newlib/newlib_init.c:43

40829470: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000      
40829490: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000      
408294b0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000      
408294d0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000      
408294f0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000      

ELF file SHA256: a608a03df

Rebooting...
ESP-ROM:esp32h2-20221101
Build:Nov  1 2022
rst:0xc (SW_CPU),boot:0xc (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x408460e0,len:0x17ac
load:0x4083cad0,len:0xefc
load:0x4083efd0,len:0x2ce4
entry 0x4083cada
I (25) boot: ESP-IDF v5.3.1-dirty 2nd stage bootloader
I (26) boot: compile time Nov 12 2024 21:19:21
I (27) boot: chip revision: v0.1
I (28) boot.esp32h2: SPI Speed      : 64MHz
I (33) boot.esp32h2: SPI Mode       : DIO
I (38) boot.esp32h2: SPI Flash Size : 2MB
I (43) boot: Enabling RNG early entropy source...
I (48) boot: Partition Table:
I (52) boot: ## Label            Usage          Type ST Offset   Length
I (59) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (66) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (74) boot:  2 factory          factory app      00 00 00010000 00100000
I (81) boot: End of partition table
I (86) esp_image: segment 0: paddr=00010020 vaddr=42080020 size=1b0c4h (110788) map
I (145) esp_image: segment 1: paddr=0002b0ec vaddr=40800000 size=04f2ch ( 20268) load
I (157) esp_image: segment 2: paddr=00030020 vaddr=42000020 size=7e4dch (517340) map
I (393) esp_image: segment 3: paddr=000ae504 vaddr=40804f2c size=0f5d8h ( 62936) load
I (428) esp_image: segment 4: paddr=000bdae4 vaddr=40814510 size=02cbch ( 11452) load
I (435) esp_image: segment 5: paddr=000c07a8 vaddr=50000000 size=00050h (    80) load
I (437) esp_image: segment 6: paddr=000c0800 vaddr=50000050 size=00008h (     8) load
I (455) boot: Loaded app from partition at offset 0x10000
I (456) boot: Disabling RNG early entropy source...
I (467) cpu_start: Unicore app
W (1796) clk: 32 kHz clock not found, switching to internal 150 kHz oscillator
I (1820) cpu_start: Pro cpu start user code
I (1820) cpu_start: cpu freq: 96000000 Hz
I (1820) app_init: Application information:
I (1823) app_init: Project name:     power_save
I (1828) app_init: App version:      1
I (1832) app_init: Compile time:     Nov 12 2024 21:19:11
I (1838) app_init: ELF file SHA256:  a608a03df...
I (1844) app_init: ESP-IDF:          v5.3.1-dirty
I (1849) efuse_init: Min chip rev:     v0.0
I (1854) efuse_init: Max chip rev:     v0.99
I (1859) efuse_init: Chip rev:         v0.1
I (1864) heap_init: Initializing. RAM available for dynamic allocation:
I (1871) heap_init: At 40819F90 len 000333F0 (204 KiB): RAM
I (1878) heap_init: At 4084D380 len 00002B60 (10 KiB): RAM
I (1885) spi_flash: detected chip: generic
I (1888) spi_flash: flash io: dio
W (1892) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (1906) sleep: Enable automatic switching of GPIO sleep configuration
I (1913) sleep_clock: System Power, Clock and Reset sleep retention initialization
I (1936) pm: Frequency switching config: CPU_MAX: 96, APB_MAX: 32, APB_MIN: 32, Light sleep: DISABLED
I (1936) coexist: coex firmware version: 4482466
I (1941) main_task: Started on CPU0
I (1944) main_task: Calling app_main()
I (1957) pm: Frequency switching config: CPU_MAX: 96, APB_MAX: 32, APB_MIN: 32, Light sleep: ENABLED
W (1959) BLE_INIT: 32.768kHz XTAL not detected, fall back to main XTAL as Bluetooth sleep clock        
I (1967) BLE_INIT: Using main XTAL as clock source
I (1979) BLE_INIT: ble controller commit:[a95ec45]
W (1979) BLE_INIT: BLE modem sleep is enabled
I (1984) BLE_INIT: Modem BLE MAC retention initialization
W (1989) BLE_INIT: Enable light sleep, the wake up source is BLE timer
I (2010) phy: phy_version: 310,2, 8fa9cb4, Jun  5 2024, 14:19:10
I (2028) phy: libbtbb version: a024da6, Jun  5 2024, 14:19:22
I (2029) sleep_clock: Modem Power, Clock and Reset sleep retention initialization
I (2033) NimBLE_BLE_PRPH: BLE Host Task Started
I (2041) NimBLE: Device Address:
I (2042) NimBLE: 74:4d:bd:62:05:5f
I (2045) NimBLE:

I (2049) NimBLE: GAP procedure initiated: extended advertise; instance=0

I (2059) uart: queue free spaces: 8
I (2061) main_task: Returned from app_main()
I (2146) NimBLE: connection established; status=0 
I (2147) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr=
I (2197) NimBLE: 74:4d:bd:62:05:5f
I (2198) NimBLE:  our_id_addr_type=0 our_id_addr=
I (2198) NimBLE: 74:4d:bd:62:05:5f
I (2200) NimBLE:  peer_ota_addr_type=1 peer_ota_addr=
I (2206) NimBLE: 7c:f8:9a:ef:5c:68
I (2210) NimBLE:  peer_id_addr_type=1 peer_id_addr=
I (2217) NimBLE: 7c:f8:9a:ef:5c:68
I (2220) NimBLE:  conn_itvl=21 conn_latency=0 supervision_timeout=72 encrypted=0 authenticated=0 bonded=0

I (2230) NimBLE: 

I (2236) NimBLE: advertise complete; reason=0
I (2240) NimBLE: GAP procedure initiated: extended advertise; instance=0

I (2309) NimBLE: Reattempt advertising; reason: 0x3e, status = 0
I (2361) NimBLE: GAP procedure initiated: stop extended advertising.

I (2366) NimBLE: GAP procedure initiated: extended advertise; instance=0

I (2493) NimBLE: connection established; status=0 
I (2494) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr=
I (2544) NimBLE: 74:4d:bd:62:05:5f
I (2545) NimBLE:  our_id_addr_type=0 our_id_addr=
I (2546) NimBLE: 74:4d:bd:62:05:5f
I (2548) NimBLE:  peer_ota_addr_type=1 peer_ota_addr=
I (2553) NimBLE: 7c:f8:9a:ef:5c:68
I (2557) NimBLE:  peer_id_addr_type=1 peer_id_addr=
I (2563) NimBLE: 7c:f8:9a:ef:5c:68
I (2569) NimBLE:  conn_itvl=21 conn_latency=0 supervision_timeout=72 encrypted=0 authenticated=0 bonded=0

I (2577) NimBLE:

I (2582) NimBLE: advertise complete; reason=0
I (2589) NimBLE: GAP procedure initiated: extended advertise; instance=0

I (2656) NimBLE: Reattempt advertising; reason: 0x3e, status = 0
I (2708) NimBLE: GAP procedure initiated: stop extended advertising.

I (2715) NimBLE: GAP procedure initiated: extended advertise; instance=0

I (2765) NimBLE: connection established; status=0 
I (2766) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr=
I (2816) NimBLE: 74:4d:bd:62:05:5f
I (2817) NimBLE:  our_id_addr_type=0 our_id_addr=
I (2818) NimBLE: 74:4d:bd:62:05:5f
I (2820) NimBLE:  peer_ota_addr_type=1 peer_ota_addr=
I (2825) NimBLE: 7c:f8:9a:ef:5c:68
I (2830) NimBLE:  peer_id_addr_type=1 peer_id_addr=
I (2835) NimBLE: 7c:f8:9a:ef:5c:68
I (2839) NimBLE:  conn_itvl=21 conn_latency=0 supervision_timeout=72 encrypted=0 authenticated=0 bonded=0

I (2849) NimBLE:

I (2856) NimBLE: advertise complete; reason=0
I (2860) NimBLE: GAP procedure initiated: extended advertise; instance=0

I (2930) NimBLE: Reattempt advertising; reason: 0x3e, status = 0
I (2983) NimBLE: GAP procedure initiated: stop extended advertising.

I (2988) NimBLE: GAP procedure initiated: extended advertise; instance=0

I (3078) NimBLE: connection established; status=0 
I (3079) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr=
I (3130) NimBLE: 74:4d:bd:62:05:5f
I (3131) NimBLE:  our_id_addr_type=0 our_id_addr=
I (3131) NimBLE: 74:4d:bd:62:05:5f
I (3133) NimBLE:  peer_ota_addr_type=1 peer_ota_addr=
I (3139) NimBLE: 7c:f8:9a:ef:5c:68
I (3143) NimBLE:  peer_id_addr_type=1 peer_id_addr=
I (3148) NimBLE: 7c:f8:9a:ef:5c:68
I (3152) NimBLE:  conn_itvl=21 conn_latency=0 supervision_timeout=72 encrypted=0 authenticated=0 bonded=0

I (3164) NimBLE:

I (3167) NimBLE: advertise complete; reason=0
I (3173) NimBLE: GAP procedure initiated: extended advertise; instance=0

I (3240) NimBLE: Reattempt advertising; reason: 0x3e, status = 0
I (3291) NimBLE: GAP procedure initiated: stop extended advertising.

I (3297) NimBLE: GAP procedure initiated: extended advertise; instance=0

I (3415) NimBLE: connection established; status=0 
I (3416) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr=
I (3466) NimBLE: 74:4d:bd:62:05:5f
I (3467) NimBLE:  our_id_addr_type=0 our_id_addr=
I (3468) NimBLE: 74:4d:bd:62:05:5f
I (3470) NimBLE:  peer_ota_addr_type=1 peer_ota_addr=
I (3475) NimBLE: 7c:f8:9a:ef:5c:68
I (3479) NimBLE:  peer_id_addr_type=1 peer_id_addr=
I (3485) NimBLE: 7c:f8:9a:ef:5c:68
I (3489) NimBLE:  conn_itvl=21 conn_latency=0 supervision_timeout=72 encrypted=0 authenticated=0 bonded=0

I (3499) NimBLE:

I (3504) NimBLE: advertise complete; reason=0
I (3512) NimBLE: GAP procedure initiated: extended advertise; instance=0

I (4221) NimBLE: disconnect; reason=520 
I (4222) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr=
I (4272) NimBLE: 74:4d:bd:62:05:5f
I (4273) NimBLE:  our_id_addr_type=0 our_id_addr=
I (4273) NimBLE: 74:4d:bd:62:05:5f
I (4275) NimBLE:  peer_ota_addr_type=1 peer_ota_addr=
I (4281) NimBLE: 7c:f8:9a:ef:5c:68
I (4285) NimBLE:  peer_id_addr_type=1 peer_id_addr=
I (4291) NimBLE: 7c:f8:9a:ef:5c:68
I (4295) NimBLE:  conn_itvl=21 conn_latency=0 supervision_timeout=72 encrypted=0 authenticated=0 bonded=0

I (4305) NimBLE:

I (4668) NimBLE: connection established; status=0 
I (4670) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr=
I (4721) NimBLE: 74:4d:bd:62:05:5f
I (4722) NimBLE:  our_id_addr_type=0 our_id_addr=
I (4723) NimBLE: 74:4d:bd:62:05:5f
I (4725) NimBLE:  peer_ota_addr_type=1 peer_ota_addr=
I (4730) NimBLE: 7c:f8:9a:ef:5c:68
I (4734) NimBLE:  peer_id_addr_type=1 peer_id_addr=
I (4740) NimBLE: 7c:f8:9a:ef:5c:68
I (4744) NimBLE:  conn_itvl=21 conn_latency=0 supervision_timeout=72 encrypted=0 authenticated=0 bonded=0

I (4756) NimBLE:

I (4759) NimBLE: advertise complete; reason=0
I (4764) NimBLE: GAP procedure initiated: extended advertise; instance=0

I (4834) NimBLE: Reattempt advertising; reason: 0x3e, status = 0
I (4886) NimBLE: GAP procedure initiated: stop extended advertising.

I (4893) NimBLE: GAP procedure initiated: extended advertise; instance=0

I (5316) NimBLE: connection established; status=0
I (5317) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr=
I (5367) NimBLE: 74:4d:bd:62:05:5f
I (5368) NimBLE:  our_id_addr_type=0 our_id_addr=
I (5369) NimBLE: 74:4d:bd:62:05:5f
I (5371) NimBLE:  peer_ota_addr_type=1 peer_ota_addr=
I (5376) NimBLE: 7c:f8:9a:ef:5c:68
I (5380) NimBLE:  peer_id_addr_type=1 peer_id_addr=
I (5386) NimBLE: 7c:f8:9a:ef:5c:68
I (5390) NimBLE:  conn_itvl=21 conn_latency=0 supervision_timeout=72 encrypted=0 authenticated=0 bonded=0

I (5400) NimBLE:

I (5407) NimBLE: advertise complete; reason=0
I (5411) NimBLE: GAP procedure initiated: extended advertise; instance=0

I (5480) NimBLE: Reattempt advertising; reason: 0x3e, status = 0

More Information.

It's noticed that the rear part of the logs is quite similar to #12911

Shreeyash-17 commented 1 day ago

@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 (24) boot: compile time Nov 13 2024 12:50:40 I (25) boot: chip revision: v0.2 I (27) boot.esp32h2: SPI Speed : 64MHz I (31) boot.esp32h2: SPI Mode : DIO I (36) boot.esp32h2: SPI Flash Size : 2MB I (41) boot: Enabling RNG early entropy source... I (46) boot: Partition Table: I (50) boot: ## Label Usage Type ST Offset Length I (57) boot: 0 nvs WiFi data 01 02 00009000 00006000 I (64) boot: 1 phy_init RF data 01 01 0000f000 00001000 I (72) boot: 2 factory factory app 00 00 00010000 00100000 I (80) boot: End of partition table I (84) esp_image: segment 0: paddr=00010020 vaddr=42080020 size=1b0f4h (110836) map I (126) esp_image: segment 1: paddr=0002b11c vaddr=40800000 size=04efch ( 20220) load I (134) esp_image: segment 2: paddr=00030020 vaddr=42000020 size=7e4dch (517340) map I (295) esp_image: segment 3: paddr=000ae504 vaddr=40804efc size=0f608h ( 62984) load I (317) esp_image: segment 4: paddr=000bdb14 vaddr=40814510 size=02cbch ( 11452) load I (322) esp_image: segment 5: paddr=000c07d8 vaddr=50000000 size=00050h ( 80) load I (324) esp_image: segment 6: paddr=000c0830 vaddr=50000050 size=00008h ( 8) load I (338) boot: Loaded app from partition at offset 0x10000 I (339) boot: Disabling RNG early entropy source... I (355) cpu_start: Unicore app W (1892) clk: 32 kHz clock not found, switching to internal 150 kHz oscillator I (1915) cpu_start: Pro cpu start user code I (1916) cpu_start: cpu freq: 96000000 Hz I (1916) app_init: Application information: I (1919) app_init: Project name: power_save I (1924) app_init: App version: v5.3.1 I (1929) app_init: Compile time: Nov 13 2024 12:50:35 I (1935) app_init: ELF file SHA256: 5a25a9141... I (1940) app_init: ESP-IDF: v5.3.1 I (1945) efuse_init: Min chip rev: v0.0 I (1950) efuse_init: Max chip rev: v0.99 I (1955) efuse_init: Chip rev: v0.2 I (1960) heap_init: Initializing. RAM available for dynamic allocation: I (1967) heap_init: At 40819F90 len 000333F0 (204 KiB): RAM I (1973) heap_init: At 4084D380 len 00002B60 (10 KiB): RAM I (1981) spi_flash: detected chip: generic I (1984) spi_flash: flash io: dio W (1988) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header. I (2002) sleep: Enable automatic switching of GPIO sleep configuration I (2009) sleep_clock: System Power, Clock and Reset sleep retention initialization I (2031) pm: Frequency switching config: CPU_MAX: 96, APB_MAX: 32, APB_MIN: 32, Light sleep: DISABLED I (2032) coexist: coex firmware version: 4482466 I (2037) main_task: Started on CPU0 I (2040) main_task: Calling app_main() I (2054) pm: Frequency switching config: CPU_MAX: 96, APB_MAX: 32, APB_MIN: 32, Light sleep: ENABLED W (2055) BLE_INIT: 32.768kHz XTAL not detected, fall back to main XTAL as Bluetooth sleep clock I (2063) BLE_INIT: Using main XTAL as clock source I (2075) BLE_INIT: ble controller commit:[a95ec45] W (2075) BLE_INIT: BLE modem sleep is enabled I (2080) BLE_INIT: Modem BLE MAC retention initialization W (2085) BLE_INIT: Enable light sleep, the wake up source is BLE timer I (2104) phy: phy_version: 310,2, 8fa9cb4, Jun 5 2024, 14:19:10 I (2122) phy: libbtbb version: a024da6, Jun 5 2024, 14:19:22 I (2123) sleep_clock: Modem Power, Clock and Reset sleep retention initialization I (2128) NimBLE_BLE_PRPH: BLE Host Task Started I (2135) NimBLE: Device Address: I (2136) NimBLE: 60:55:f9:f7:39:cc I (2139) NimBLE:

I (2143) NimBLE: GAP procedure initiated: extended advertise; instance=0

I (2153) uart: queue free spaces: 8 I (2155) main_task: Returned from app_main() I (13449) NimBLE: connection established; status=0 I (13450) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr= I (13500) NimBLE: 60:55:f9:f7:39:cc I (13501) NimBLE: our_id_addr_type=0 our_id_addr= I (13502) NimBLE: 60:55:f9:f7:39:cc I (13504) NimBLE: peer_ota_addr_type=1 peer_ota_addr= I (13512) NimBLE: 50:6e:89:2d:aa:68 I (13514) NimBLE: peer_id_addr_type=1 peer_id_addr= I (13519) NimBLE: 50:6e:89:2d:aa:68 I (13524) NimBLE: conn_itvl=36 conn_latency=0 supervision_timeout=500 encrypted=0 authenticated=0 bonded=0

I (13534) NimBLE:

I (13538) NimBLE: advertise complete; reason=0 I (13544) NimBLE: GAP procedure initiated: extended advertise; instance=0

I (14137) NimBLE: connection updated; status=0 I (14138) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr= I (14188) NimBLE: 60:55:f9:f7:39:cc I (14189) NimBLE: our_id_addr_type=0 our_id_addr= I (14189) NimBLE: 60:55:f9:f7:39:cc I (14192) NimBLE: peer_ota_addr_type=1 peer_ota_addr= I (14198) NimBLE: 50:6e:89:2d:aa:68 I (14203) NimBLE: peer_id_addr_type=1 peer_id_addr= I (14207) NimBLE: 50:6e:89:2d:aa:68 I (14211) NimBLE: conn_itvl=6 conn_latency=0 supervision_timeout=500 encrypted=0 authenticated=0 bonded=0

I (14222) NimBLE:

I (14710) NimBLE: connection updated; status=0 I (14712) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr= I (14762) NimBLE: 60:55:f9:f7:39:cc I (14765) NimBLE: our_id_addr_type=0 our_id_addr= I (14765) NimBLE: 60:55:f9:f7:39:cc I (14768) NimBLE: peer_ota_addr_type=1 peer_ota_addr= I (14773) NimBLE: 50:6e:89:2d:aa:68 I (14778) NimBLE: peer_id_addr_type=1 peer_id_addr= I (14783) NimBLE: 50:6e:89:2d:aa:68 I (14787) NimBLE: conn_itvl=36 conn_latency=0 supervision_timeout=500 encrypted=0 authenticated=0 bonded=0

I (14800) NimBLE:

I (109905) NimBLE: disconnect; reason=531 I (109906) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr= I (109957) NimBLE: 60:55:f9:f7:39:cc I (109958) NimBLE: our_id_addr_type=0 our_id_addr= I (109958) NimBLE: 60:55:f9:f7:39:cc I (109960) NimBLE: peer_ota_addr_type=1 peer_ota_addr= I (109968) NimBLE: 50:6e:89:2d:aa:68 I (109971) NimBLE: peer_id_addr_type=1 peer_id_addr= I (109976) NimBLE: 50:6e:89:2d:aa:68 I (109981) NimBLE: conn_itvl=36 conn_latency=0 supervision_timeout=500 encrypted=0 authenticated=0 bonded=0

I (109991) NimBLE:

I (121245) NimBLE: connection established; status=0 I (121296) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr= I (121297) NimBLE: 60:55:f9:f7:39:cc I (121298) NimBLE: our_id_addr_type=0 our_id_addr= I (121302) NimBLE: 60:55:f9:f7:39:cc I (121306) NimBLE: peer_ota_addr_type=1 peer_ota_addr= I (121312) NimBLE: 50:6e:89:2d:aa:68 I (121317) NimBLE: peer_id_addr_type=1 peer_id_addr= I (121322) NimBLE: 50:6e:89:2d:aa:68 I (121327) NimBLE: conn_itvl=36 conn_latency=0 supervision_timeout=500 encrypted=0 authenticated=0 bonded=0

I (121337) NimBLE:

I (121342) NimBLE: advertise complete; reason=0 I (121348) NimBLE: GAP procedure initiated: extended advertise; instance=0

I (121526) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (121578) NimBLE: GAP procedure initiated: stop extended advertising.

I (121585) NimBLE: GAP procedure initiated: extended advertise; instance=0

I (121742) NimBLE: connection established; status=0 I (121794) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr= I (121795) NimBLE: 60:55:f9:f7:39:cc I (121796) NimBLE: our_id_addr_type=0 our_id_addr= I (121802) NimBLE: 60:55:f9:f7:39:cc I (121805) NimBLE: peer_ota_addr_type=1 peer_ota_addr= I (121810) NimBLE: 50:6e:89:2d:aa:68 I (121815) NimBLE: peer_id_addr_type=1 peer_id_addr= I (121820) NimBLE: 50:6e:89:2d:aa:68 I (121825) NimBLE: conn_itvl=36 conn_latency=0 supervision_timeout=500 encrypted=0 authenticated=0 bonded=0

I (121835) NimBLE:

I (121841) NimBLE: advertise complete; reason=0 I (121848) NimBLE: GAP procedure initiated: extended advertise; instance=0

I (122025) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (122077) NimBLE: GAP procedure initiated: stop extended advertising.

I (122082) NimBLE: GAP procedure initiated: extended advertise; instance=0

I (122201) NimBLE: connection established; status=0 I (122252) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr= I (122253) NimBLE: 60:55:f9:f7:39:cc I (122254) NimBLE: our_id_addr_type=0 our_id_addr= I (122258) NimBLE: 60:55:f9:f7:39:cc I (122263) NimBLE: peer_ota_addr_type=1 peer_ota_addr= I (122271) NimBLE: 50:6e:89:2d:aa:68 I (122273) NimBLE: peer_id_addr_type=1 peer_id_addr= I (122279) NimBLE: 50:6e:89:2d:aa:68 I (122283) NimBLE: conn_itvl=36 conn_latency=0 supervision_timeout=500 encrypted=0 authenticated=0 bonded=0

I (122293) NimBLE:

I (122297) NimBLE: advertise complete; reason=0 I (122304) NimBLE: GAP procedure initiated: extended advertise; instance=0

I (123193) NimBLE: connection updated; status=0 I (123195) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr= I (123245) NimBLE: 60:55:f9:f7:39:cc I (123246) NimBLE: our_id_addr_type=0 our_id_addr= I (123246) NimBLE: 60:55:f9:f7:39:cc I (123249) NimBLE: peer_ota_addr_type=1 peer_ota_addr= I (123256) NimBLE: 50:6e:89:2d:aa:68 I (123259) NimBLE: peer_id_addr_type=1 peer_id_addr= I (123266) NimBLE: 50:6e:89:2d:aa:68 I (123269) NimBLE: conn_itvl=6 conn_latency=0 supervision_timeout=500 encrypted=0 authenticated=0 bonded=0

I (123279) NimBLE:

I (123825) NimBLE: connection updated; status=0 I (123826) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr= I (123876) NimBLE: 60:55:f9:f7:39:cc I (123879) NimBLE: our_id_addr_type=0 our_id_addr= I (123880) NimBLE: 60:55:f9:f7:39:cc I (123882) NimBLE: peer_ota_addr_type=1 peer_ota_addr= I (123888) NimBLE: 50:6e:89:2d:aa:68 I (123892) NimBLE: peer_id_addr_type=1 peer_id_addr= I (123898) NimBLE: 50:6e:89:2d:aa:68 I (123902) NimBLE: conn_itvl=36 conn_latency=0 supervision_timeout=500 encrypted=0 authenticated=0 bonded=0

I (123914) NimBLE:

I (304007) NimBLE: disconnect; reason=531 I (304009) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr= I (304059) NimBLE: 60:55:f9:f7:39:cc I (304060) NimBLE: our_id_addr_type=0 our_id_addr= I (304061) NimBLE: 60:55:f9:f7:39:cc I (304063) NimBLE: peer_ota_addr_type=1 peer_ota_addr= I (304069) NimBLE: 50:6e:89:2d:aa:68 I (304073) NimBLE: peer_id_addr_type=1 peer_id_addr= I (304079) NimBLE: 50:6e:89:2d:aa:68 I (304083) NimBLE: conn_itvl=36 conn_latency=0 supervision_timeout=500 encrypted=0 authenticated=0 bonded=0

I (304093) NimBLE:

Tnze commented 1 day ago

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.

Tnze commented 15 hours ago

I cleanup my esp-idf and I can still reproduce this issue. And this is my project (with built artifacts). power_save.zip.001.zip power_save.zip.002.zip

Logs 40829150: 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:2470 40829190: 0x00000000 0x00000000 0x40828378 0x4080e864 0x408291f4 0x00002036 0x0000020c 0x00000000 0x4080e864: xQueueGenericSend at F:/esp/v5.3.1/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:1057 408291b0: 0x00000019 0x00002036 0x00000000 0x4201ea94 0x0000020c 0x408291f0 0x00000001 0x00000000 0x4201ea94: ble_hs_hci_cmd_tx at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs_hci.c:361 408291d0: 0x0000020c 0x408293e8 0x40828378 0x4080ea26 0x00000000 0x40829244 0x408201e0 0x408036b4 0x4080ea26: xQueueGiveMutexRecursive at F:/esp/v5.3.1/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:796 0x408036b4: npl_freertos_mutex_release at F:/esp/v5.3.1/esp-idf/components/bt/porting/npl/freertos/src/npl_os_freertos.c:470 (discriminator 1) 408291f0: 0x00000000 0x40829244 0x00000000 0x42012c3a 0x00000000 0x00000000 0x01020001 0x42012c56 0x42012c3a: ble_hs_unlock_nested at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs.c:209 0x42012c56: ble_hs_unlock at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs.c:240 40829210: 0x00000000 0x00000000 0x00000000 0x42000000 0x00000012 0x00000000 0x00000000 0x00000000 40829230: 0x00000012 0x408241a6 0x408292ec 0x4200e480 0x00000000 0x00000001 0x00000030 0x00000030 0x4200e480: ext_bleprph_advertise at F:/Embedded/ESP32/power_save/main/main.c:135 (discriminator 1) 40829250: 0x00000000 0x00000000 0x02010000 0x00000100 0x4208376c 0x00000000 0x408292ec 0x4200e8e2 0x4200e8e2: bleprph_gap_event at F:/Embedded/ESP32/power_save/main/main.c:345 40829270: 0x408292cc 0x00002016 0x00000000 0x00000000 0x408292e8 0x408293e8 0x40828378 0x4080ea26 0x4080ea26: xQueueGiveMutexRecursive at F:/esp/v5.3.1/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:796 40829290: 0x408292e8 0x408292e4 0x408201e0 0x408036b4 0x00000000 0x408292e4 0x00000000 0x42012c3a 0x408036b4: npl_freertos_mutex_release at F:/esp/v5.3.1/esp-idf/components/bt/porting/npl/freertos/src/npl_os_freertos.c:470 (discriminator 1) 0x42012c3a: ble_hs_unlock_nested at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs.c:209 408292b0: 0x40818931 0x40819a60 0x40818918 0x42012c56 0x00000000 0x000000fc 0x00000000 0x42018446 0x42012c56: ble_hs_unlock at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs.c:240 0x42018446: ble_gap_slave_extract_cb at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_gap.c:1013 408292d0: 0x00000012 0x408241a6 0x00000000 0x420187ba 0x408293e0 0x00000000 0x4200e5d0 0x00000009 0x420187ba: ble_gap_adv_finished at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_gap.c:1038 0x4200e5d0: bleprph_gap_event at F:/Embedded/ESP32/power_save/main/main.c:280 408292f0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 40829310: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0xb4970101 0x408241a6 0x42019428 0x42019428: ble_gap_rx_adv_set_terminated at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_gap.c:1829 40829330: 0x00000012 0x408241a6 0x408241a6 0x42013aee 0x00000000 0x00000000 0x00000006 0x42013460 0x42013aee: ble_hs_hci_evt_le_adv_set_terminated at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs_hci_evt.c:956 0x42013460: ble_hs_hci_evt_le_meta at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs_hci_evt.c:440 40829350: 0x40818000 0x0000003e 0x408241a4 0x42013fbc 0x40818000 0x408241a4 0x40818864 0x42012b16 0x42013fbc: ble_hs_hci_evt_process at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs_hci_evt.c:1124 0x42012b16: ble_hs_event_rx_hci_ev at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs.c:532 40829370: 0x00000000 0x00000000 0x40818864 0x40802d86 0x00000000 0x00000000 0x40818000 0x40802c6a 0x40802d86: npl_freertos_event_run at F:/esp/v5.3.1/esp-idf/components/bt/porting/npl/freertos/src/npl_os_freertos.c:403 0x40802c6a: nimble_port_run at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/porting/nimble/src/nimble_port.c:307 40829390: 0x420837a8 0x00000865 0x00000000 0x4200e276 0x00000000 0x00000000 0x00000000 0x40810ace 0x4200e276: bleprph_host_task at F:/Embedded/ESP32/power_save/main/main.c:534 0x40810ace: vPortTaskWrapper at F:/esp/v5.3.1/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:258 408293b0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 408293d0: 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0x00000150 0x40829000 0x00000000 408293f0: 0x408176f8 0x408176f8 0x408293e8 0x408176f0 0x00000004 0x40820218 0x40820218 0x408293e8 40829410: 0x00000000 0x00000015 0x408283e4 0x626d696e 0x685f656c 0x0074736f 0x00000000 0x408293e0 40829430: 0x00000015 0x00000000 0x00000000 0x00000000 0x00000000 0x4081aa68 0x4081aad0 0x4081ab38 40829450: 0x00000000 0x00000000 0x00000001 0x00000000 0x00000000 0x00000000 0x420088d2 0x00000000 0x420088d2: esp_cleanup_r at F:/esp/v5.3.1/esp-idf/components/newlib/newlib_init.c:43 40829470: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 40829490: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 408294b0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 408294d0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 408294f0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 ELF file SHA256: 441742955 Rebooting... ESP-ROM:esp32h2-20221101 Build:Nov 1 2022 rst:0xc (SW_CPU),boot:0xc (SPI_FAST_FLASH_BOOT) SPIWP:0xee mode:DIO, clock div:1 load:0x408460e0,len:0x17ac load:0x4083cad0,len:0xefc load:0x4083efd0,len:0x2ce4 entry 0x4083cada I (25) boot: ESP-IDF v5.3.1 2nd stage bootloader I (26) boot: compile time Nov 14 2024 01:59:05 I (27) boot: chip revision: v0.1 I (28) boot.esp32h2: SPI Speed : 64MHz I (33) boot.esp32h2: SPI Mode : DIO I (37) boot.esp32h2: SPI Flash Size : 2MB I (42) boot: Enabling RNG early entropy source... I (48) boot: Partition Table: I (51) boot: ## Label Usage Type ST Offset Length I (58) boot: 0 nvs WiFi data 01 02 00009000 00006000 I (66) boot: 1 phy_init RF data 01 01 0000f000 00001000 I (73) boot: 2 factory factory app 00 00 00010000 00100000 I (81) boot: End of partition table I (85) esp_image: segment 0: paddr=00010020 vaddr=42080020 size=1b0c4h (110788) map I (144) esp_image: segment 1: paddr=0002b0ec vaddr=40800000 size=04f2ch ( 20268) load I (156) esp_image: segment 2: paddr=00030020 vaddr=42000020 size=7e4dch (517340) map I (393) esp_image: segment 3: paddr=000ae504 vaddr=40804f2c size=0f5d8h ( 62936) load I (427) esp_image: segment 4: paddr=000bdae4 vaddr=40814510 size=02cbch ( 11452) load I (435) esp_image: segment 5: paddr=000c07a8 vaddr=50000000 size=00050h ( 80) load I (437) esp_image: segment 6: paddr=000c0800 vaddr=50000050 size=00008h ( 8) load I (454) boot: Loaded app from partition at offset 0x10000 I (455) boot: Disabling RNG early entropy source... I (466) cpu_start: Unicore app W (2003) clk: 32 kHz clock not found, switching to internal 150 kHz oscillator I (2027) cpu_start: Pro cpu start user code I (2028) cpu_start: cpu freq: 96000000 Hz I (2028) app_init: Application information: I (2031) app_init: Project name: power_save I (2036) app_init: App version: 1 I (2040) app_init: Compile time: Nov 14 2024 01:58:49 I (2046) app_init: ELF file SHA256: 441742955... I (2052) app_init: ESP-IDF: v5.3.1 I (2057) efuse_init: Min chip rev: v0.0 I (2061) efuse_init: Max chip rev: v0.99 I (2066) efuse_init: Chip rev: v0.1 I (2071) heap_init: Initializing. RAM available for dynamic allocation: I (2079) heap_init: At 40819F90 len 000333F0 (204 KiB): RAM I (2085) heap_init: At 4084D380 len 00002B60 (10 KiB): RAM I (2092) spi_flash: detected chip: generic I (2096) spi_flash: flash io: dio W (2100) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header. I (2114) sleep: Enable automatic switching of GPIO sleep configuration I (2121) sleep_clock: System Power, Clock and Reset sleep retention initialization I (2143) pm: Frequency switching config: CPU_MAX: 96, APB_MAX: 32, APB_MIN: 32, Light sleep: DISABLED I (2144) coexist: coex firmware version: 4482466 I (2149) main_task: Started on CPU0 I (2152) main_task: Calling app_main() I (2165) pm: Frequency switching config: CPU_MAX: 96, APB_MAX: 32, APB_MIN: 32, Light sleep: ENABLED W (2167) BLE_INIT: 32.768kHz XTAL not detected, fall back to main XTAL as Bluetooth sleep clock I (2175) BLE_INIT: Using main XTAL as clock source I (2187) BLE_INIT: ble controller commit:[a95ec45] W (2187) BLE_INIT: BLE modem sleep is enabled I (2192) BLE_INIT: Modem BLE MAC retention initialization W (2197) BLE_INIT: Enable light sleep, the wake up source is BLE timer I (2218) phy: phy_version: 310,2, 8fa9cb4, Jun 5 2024, 14:19:10 I (2235) phy: libbtbb version: a024da6, Jun 5 2024, 14:19:22 I (2236) sleep_clock: Modem Power, Clock and Reset sleep retention initialization I (2241) NimBLE_BLE_PRPH: BLE Host Task Started I (2249) NimBLE: Device Address: I (2250) NimBLE: 74:4d:bd:62:05:5f I (2252) NimBLE: I (2256) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (2267) uart: queue free spaces: 8 I (2269) main_task: Returned from app_main() I (2272) NimBLE: connection established; status=0 I (2277) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr= I (2284) NimBLE: 74:4d:bd:62:05:5f I (2288) NimBLE: our_id_addr_type=0 our_id_addr= I (2294) NimBLE: 74:4d:bd:62:05:5f I (2297) NimBLE: peer_ota_addr_type=1 peer_ota_addr= I (2303) NimBLE: 7c:9f:3e:33:b4:97 I (2307) NimBLE: peer_id_addr_type=1 peer_id_addr= I (2312) NimBLE: 7c:9f:3e:33:b4:97 I (2316) NimBLE: conn_itvl=24 conn_latency=0 supervision_timeout=72 encrypted=0 authenticated=0 bonded=0 I (2327) NimBLE: I (2330) NimBLE: advertise complete; reason=0 I (2336) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (2463) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (2516) NimBLE: GAP procedure initiated: stop extended advertising. I (2520) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (2527) NimBLE: connection established; status=0 I (2531) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr= I (2533) NimBLE: 74:4d:bd:62:05:5f I (2537) NimBLE: our_id_addr_type=0 our_id_addr= I (2542) NimBLE: 74:4d:bd:62:05:5f I (2546) NimBLE: peer_ota_addr_type=1 peer_ota_addr= I (2552) NimBLE: 7c:9f:3e:33:b4:97 I (2557) NimBLE: peer_id_addr_type=1 peer_id_addr= I (2563) NimBLE: 7c:9f:3e:33:b4:97 I (2565) NimBLE: conn_itvl=24 conn_latency=0 supervision_timeout=72 encrypted=0 authenticated=0 bonded=0 I (2576) NimBLE: I (2580) NimBLE: advertise complete; reason=0 assert failed: ext_bleprph_advertise main.c:129 (rc == 0) Core 0 register dump: MEPC : 0x40800808 RA : 0x4080d7b4 SP : 0x40829110 GP : 0x40814d14 0x40800808: panic_abort at F:/esp/v5.3.1/esp-idf/components/esp_system/panic.c:463 0x4080d7b4: assist_debug_hal_get_sp_bounds at F:/esp/v5.3.1/esp-idf/components/hal/include/hal/assist_debug_hal.h:54 (inlined by) esp_hw_stack_guard_get_bounds at F:/esp/v5.3.1/esp-idf/components/esp_system/hw_stack_guard.c:76 TP : 0x408293e0 T0 : 0x37363534 T1 : 0x7271706f T2 : 0x33323130 S0/FP : 0x0000008e S1 : 0x00000001 A0 : 0x4082914c A1 : 0x408164e5 A2 : 0x00000001 A3 : 0x00000029 A4 : 0x00000001 A5 : 0x40818000 A6 : 0x0000000c A7 : 0x76757473 S2 : 0x00000009 S3 : 0x40829259 S4 : 0x408164e4 S5 : 0x00000000 S6 : 0x00000000 S7 : 0x00000000 S8 : 0x00000000 S9 : 0x00000000 S10 : 0x00000000 S11 : 0x00000000 T3 : 0x6e6d6c6b T4 : 0x6a696867 T5 : 0x66656463 T6 : 0x62613938 MSTATUS : 0x00001881 MTVEC : 0x40800001 MCAUSE : 0x00000007 MTVAL : 0x00000000 0x40800001: _vector_table at F:/esp/v5.3.1/esp-idf/components/riscv/vectors_intc.S:54 MHARTID : 0x00000000 Stack memory: 40829110: 0x00000004 0x40826538 0x4208d250 0x4081347e 0x408164cc 0x4208d250 0x40815e40 0x42083970 0x4081347e: newlib_include_assert_impl at F:/esp/v5.3.1/esp-idf/components/newlib/assert.c:92 40829130: 0x408164dc 0x40829144 0x408164e0 0x42083960 0x408164e4 0x00393231 0x408282c8 0x65737361 40829150: 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:2470 40829190: 0x00000000 0x00000000 0x40828378 0x4080e864 0x408291f4 0x00002036 0x0000020c 0x00000000 0x4080e864: xQueueGenericSend at F:/esp/v5.3.1/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:1057 408291b0: 0x00000019 0x00002036 0x00000000 0x4201ea94 0x0000020c 0x408291f0 0x00000001 0x00000000 0x4201ea94: ble_hs_hci_cmd_tx at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs_hci.c:361 408291d0: 0x0000020c 0x408293e8 0x40828378 0x4080ea26 0x00000000 0x40829244 0x408201e0 0x408036b4 0x4080ea26: xQueueGiveMutexRecursive at F:/esp/v5.3.1/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:796 0x408036b4: npl_freertos_mutex_release at F:/esp/v5.3.1/esp-idf/components/bt/porting/npl/freertos/src/npl_os_freertos.c:470 (discriminator 1) 408291f0: 0x00000000 0x40829244 0x00000000 0x42012c3a 0x00000000 0x00000000 0x01020001 0x42012c56 0x42012c3a: ble_hs_unlock_nested at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs.c:209 0x42012c56: ble_hs_unlock at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs.c:240 40829210: 0x00000000 0x00000000 0x00000000 0x42000000 0x00000000 0x00000000 0x00000000 0x00000000 40829230: 0x00000012 0x408241a6 0x408292ec 0x4200e480 0x00000000 0x00000001 0x00000030 0x00000030 0x4200e480: ext_bleprph_advertise at F:/Embedded/ESP32/power_save/main/main.c:135 (discriminator 1) 40829250: 0x00000000 0x00000000 0x02010000 0x00000100 0x4208376c 0x00000000 0x408292ec 0x4200e8e2 0x4200e8e2: bleprph_gap_event at F:/Embedded/ESP32/power_save/main/main.c:345 40829270: 0x408292cc 0x00002016 0x00000000 0x00000000 0x408292e8 0x408293e8 0x40828378 0x4080ea26 0x4080ea26: xQueueGiveMutexRecursive at F:/esp/v5.3.1/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:796 40829290: 0x408292e8 0x408292e4 0x408201e0 0x408036b4 0x40818931 0x408292e4 0x00000000 0x42012c3a 0x408036b4: npl_freertos_mutex_release at F:/esp/v5.3.1/esp-idf/components/bt/porting/npl/freertos/src/npl_os_freertos.c:470 (discriminator 1) 0x42012c3a: ble_hs_unlock_nested at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs.c:209 408292b0: 0x40818931 0x40819a60 0x40818918 0x42012c56 0x00000000 0x00000000 0x00000000 0x42018446 0x42012c56: ble_hs_unlock at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs.c:240 0x42018446: ble_gap_slave_extract_cb at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_gap.c:1013 408292d0: 0x00000012 0x408241a6 0x00000000 0x420187ba 0x42013fbe 0x00000000 0x4200e5d0 0x00000009 0x420187ba: ble_gap_adv_finished at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_gap.c:1038 0x42013fbe: ble_hs_hci_evt_process at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs_hci_evt.c:1127 0x4200e5d0: bleprph_gap_event at F:/Embedded/ESP32/power_save/main/main.c:280 408292f0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 40829310: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000004 0x00000000 0x408241a6 0x42019428 0x42019428: ble_gap_rx_adv_set_terminated at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_gap.c:1829 40829330: 0x00000012 0x408241a6 0x408241a6 0x42013aee 0x00000000 0x00000000 0x00000006 0x42013460 0x42013aee: ble_hs_hci_evt_le_adv_set_terminated at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs_hci_evt.c:956 0x42013460: ble_hs_hci_evt_le_meta at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs_hci_evt.c:440 40829350: 0x40818000 0x0000003e 0x408241a4 0x42013fbc 0x40818000 0x408241a4 0x40818864 0x42012b16 0x42013fbc: ble_hs_hci_evt_process at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs_hci_evt.c:1124 0x42012b16: ble_hs_event_rx_hci_ev at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs.c:532 40829370: 0x00000000 0x00000000 0x40818864 0x40802d86 0x00000000 0x00000000 0x40818000 0x40802c6a 0x40802d86: npl_freertos_event_run at F:/esp/v5.3.1/esp-idf/components/bt/porting/npl/freertos/src/npl_os_freertos.c:403 0x40802c6a: nimble_port_run at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/porting/nimble/src/nimble_port.c:307 40829390: 0x420837a8 0x00000865 0x00000000 0x4200e276 0x00000000 0x00000000 0x00000000 0x40810ace 0x4200e276: bleprph_host_task at F:/Embedded/ESP32/power_save/main/main.c:534 0x40810ace: vPortTaskWrapper at F:/esp/v5.3.1/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:258 408293b0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 408293d0: 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0x00000150 0x40829000 0x00000000 408293f0: 0x408176f8 0x408176f8 0x408293e8 0x408176f0 0x00000004 0x40820218 0x40820218 0x408293e8 40829410: 0x00000000 0x00000015 0x408283e4 0x626d696e 0x685f656c 0x0074736f 0x00000000 0x408293e0 40829430: 0x00000015 0x00000000 0x00000000 0x00000000 0x00000000 0x4081aa68 0x4081aad0 0x4081ab38 40829450: 0x00000000 0x00000000 0x00000001 0x00000000 0x00000000 0x00000000 0x420088d2 0x00000000 0x420088d2: esp_cleanup_r at F:/esp/v5.3.1/esp-idf/components/newlib/newlib_init.c:43 40829470: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 40829490: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 408294b0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 408294d0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 408294f0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 ELF file SHA256: 441742955 Rebooting... ESP-ROM:esp32h2-20221101 Build:Nov 1 2022 rst:0xc (SW_CPU),boot:0xc (SPI_FAST_FLASH_BOOT) SPIWP:0xee mode:DIO, clock div:1 load:0x408460e0,len:0x17ac load:0x4083cad0,len:0xefc load:0x4083efd0,len:0x2ce4 entry 0x4083cada I (25) boot: ESP-IDF v5.3.1 2nd stage bootloader I (26) boot: compile time Nov 14 2024 01:59:05 I (27) boot: chip revision: v0.1 I (28) boot.esp32h2: SPI Speed : 64MHz I (33) boot.esp32h2: SPI Mode : DIO I (37) boot.esp32h2: SPI Flash Size : 2MB I (42) boot: Enabling RNG early entropy source... I (48) boot: Partition Table: I (51) boot: ## Label Usage Type ST Offset Length I (58) boot: 0 nvs WiFi data 01 02 00009000 00006000 I (66) boot: 1 phy_init RF data 01 01 0000f000 00001000 I (73) boot: 2 factory factory app 00 00 00010000 00100000 I (81) boot: End of partition table I (85) esp_image: segment 0: paddr=00010020 vaddr=42080020 size=1b0c4h (110788) map I (144) esp_image: segment 1: paddr=0002b0ec vaddr=40800000 size=04f2ch ( 20268) load I (156) esp_image: segment 2: paddr=00030020 vaddr=42000020 size=7e4dch (517340) map I (393) esp_image: segment 3: paddr=000ae504 vaddr=40804f2c size=0f5d8h ( 62936) load I (427) esp_image: segment 4: paddr=000bdae4 vaddr=40814510 size=02cbch ( 11452) load I (435) esp_image: segment 5: paddr=000c07a8 vaddr=50000000 size=00050h ( 80) load I (437) esp_image: segment 6: paddr=000c0800 vaddr=50000050 size=00008h ( 8) load I (454) boot: Loaded app from partition at offset 0x10000 I (455) boot: Disabling RNG early entropy source... I (466) cpu_start: Unicore app W (2003) clk: 32 kHz clock not found, switching to internal 150 kHz oscillator I (2027) cpu_start: Pro cpu start user code I (2028) cpu_start: cpu freq: 96000000 Hz I (2028) app_init: Application information: I (2031) app_init: Project name: power_save I (2036) app_init: App version: 1 I (2040) app_init: Compile time: Nov 14 2024 01:58:49 I (2046) app_init: ELF file SHA256: 441742955... I (2052) app_init: ESP-IDF: v5.3.1 I (2057) efuse_init: Min chip rev: v0.0 I (2061) efuse_init: Max chip rev: v0.99 I (2066) efuse_init: Chip rev: v0.1 I (2071) heap_init: Initializing. RAM available for dynamic allocation: I (2079) heap_init: At 40819F90 len 000333F0 (204 KiB): RAM I (2085) heap_init: At 4084D380 len 00002B60 (10 KiB): RAM I (2092) spi_flash: detected chip: generic I (2096) spi_flash: flash io: dio W (2100) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header. I (2114) sleep: Enable automatic switching of GPIO sleep configuration I (2121) sleep_clock: System Power, Clock and Reset sleep retention initialization I (2143) pm: Frequency switching config: CPU_MAX: 96, APB_MAX: 32, APB_MIN: 32, Light sleep: DISABLED I (2144) coexist: coex firmware version: 4482466 I (2149) main_task: Started on CPU0 I (2152) main_task: Calling app_main() I (2165) pm: Frequency switching config: CPU_MAX: 96, APB_MAX: 32, APB_MIN: 32, Light sleep: ENABLED W (2167) BLE_INIT: 32.768kHz XTAL not detected, fall back to main XTAL as Bluetooth sleep clock I (2175) BLE_INIT: Using main XTAL as clock source I (2187) BLE_INIT: ble controller commit:[a95ec45] W (2187) BLE_INIT: BLE modem sleep is enabled I (2192) BLE_INIT: Modem BLE MAC retention initialization W (2197) BLE_INIT: Enable light sleep, the wake up source is BLE timer I (2218) phy: phy_version: 310,2, 8fa9cb4, Jun 5 2024, 14:19:10 I (2236) phy: libbtbb version: a024da6, Jun 5 2024, 14:19:22 I (2237) sleep_clock: Modem Power, Clock and Reset sleep retention initialization I (2242) NimBLE_BLE_PRPH: BLE Host Task Started I (2250) NimBLE: Device Address: I (2250) NimBLE: 74:4d:bd:62:05:5f I (2253) NimBLE: I (2257) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (2267) uart: queue free spaces: 8 I (2269) main_task: Returned from app_main() I (2273) NimBLE: connection established; status=0 I (2279) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr= I (2284) NimBLE: 74:4d:bd:62:05:5f I (2288) NimBLE: our_id_addr_type=0 our_id_addr= I (2294) NimBLE: 74:4d:bd:62:05:5f I (2298) NimBLE: peer_ota_addr_type=1 peer_ota_addr= I (2303) NimBLE: 7c:9f:3e:33:b4:97 I (2308) NimBLE: peer_id_addr_type=1 peer_id_addr= I (2313) NimBLE: 7c:9f:3e:33:b4:97 I (2317) NimBLE: conn_itvl=24 conn_latency=0 supervision_timeout=72 encrypted=0 authenticated=0 bonded=0 I (2327) NimBLE: I (2331) NimBLE: advertise complete; reason=0 I (2338) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (2464) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (2516) NimBLE: GAP procedure initiated: stop extended advertising. I (2523) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (2735) NimBLE: connection established; status=0 I (2736) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr= I (2786) NimBLE: 74:4d:bd:62:05:5f I (2789) NimBLE: our_id_addr_type=0 our_id_addr= I (2789) NimBLE: 74:4d:bd:62:05:5f I (2791) NimBLE: peer_ota_addr_type=1 peer_ota_addr= I (2797) NimBLE: 7c:9f:3e:33:b4:97 I (2801) NimBLE: peer_id_addr_type=1 peer_id_addr= I (2806) NimBLE: 7c:9f:3e:33:b4:97 I (2810) NimBLE: conn_itvl=24 conn_latency=0 supervision_timeout=72 encrypted=0 authenticated=0 bonded=0 I (2821) NimBLE: I (2825) NimBLE: advertise complete; reason=0 I (2831) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (2921) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (2974) NimBLE: GAP procedure initiated: stop extended advertising. I (2977) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (2985) NimBLE: connection established; status=0 I (2989) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr= I (2990) NimBLE: 74:4d:bd:62:05:5f I (2995) NimBLE: our_id_addr_type=0 our_id_addr= I (2999) NimBLE: 74:4d:bd:62:05:5f I (3003) NimBLE: peer_ota_addr_type=1 peer_ota_addr= I (3009) NimBLE: 7c:9f:3e:33:b4:97 I (3013) NimBLE: peer_id_addr_type=1 peer_id_addr= I (3019) NimBLE: 7c:9f:3e:33:b4:97 I (3023) NimBLE: conn_itvl=24 conn_latency=0 supervision_timeout=72 encrypted=0 authenticated=0 bonded=0 I (3033) NimBLE: I (3037) NimBLE: advertise complete; reason=0 assert failed: ext_bleprph_advertise main.c:129 (rc == 0) Core 0 register dump: MEPC : 0x40800808 RA : 0x4080d7b4 SP : 0x40829110 GP : 0x40814d14 0x40800808: panic_abort at F:/esp/v5.3.1/esp-idf/components/esp_system/panic.c:463 0x4080d7b4: assist_debug_hal_get_sp_bounds at F:/esp/v5.3.1/esp-idf/components/hal/include/hal/assist_debug_hal.h:54 (inlined by) esp_hw_stack_guard_get_bounds at F:/esp/v5.3.1/esp-idf/components/esp_system/hw_stack_guard.c:76 TP : 0x408293e0 T0 : 0x37363534 T1 : 0x7271706f T2 : 0x33323130 S0/FP : 0x0000008e S1 : 0x00000001 A0 : 0x4082914c A1 : 0x408164e5 A2 : 0x00000001 A3 : 0x00000029 A4 : 0x00000001 A5 : 0x40818000 A6 : 0x0000000c A7 : 0x76757473 S2 : 0x00000009 S3 : 0x40829259 S4 : 0x408164e4 S5 : 0x00000000 S6 : 0x00000000 S7 : 0x00000000 S8 : 0x00000000 S9 : 0x00000000 S10 : 0x00000000 S11 : 0x00000000 T3 : 0x6e6d6c6b T4 : 0x6a696867 T5 : 0x66656463 T6 : 0x62613938 MSTATUS : 0x00001881 MTVEC : 0x40800001 MCAUSE : 0x00000007 MTVAL : 0x00000000 0x40800001: _vector_table at F:/esp/v5.3.1/esp-idf/components/riscv/vectors_intc.S:54 MHARTID : 0x00000000 Stack memory: 40829110: 0x408291f0 0x00000000 0x4208d250 0x4081347e 0x408164cc 0x4208d250 0x40815e40 0x42083970 0x4081347e: newlib_include_assert_impl at F:/esp/v5.3.1/esp-idf/components/newlib/assert.c:92 40829130: 0x408164dc 0x40829144 0x408164e0 0x42083960 0x408164e4 0x00393231 0x408282c8 0x65737361 40829150: 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:2470 40829190: 0x00000000 0x00000000 0x40828378 0x4080e864 0x408291f4 0x00002036 0x0000020c 0x00000000 0x4080e864: xQueueGenericSend at F:/esp/v5.3.1/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:1057 408291b0: 0x00000019 0x00002036 0x00000000 0x4201ea94 0x0000020c 0x408291f0 0x00000001 0x00000000 0x4201ea94: ble_hs_hci_cmd_tx at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs_hci.c:361 408291d0: 0x0000020c 0x408293e8 0x40828378 0x4080ea26 0x00000000 0x40829244 0x408201e0 0x408036b4 0x4080ea26: xQueueGiveMutexRecursive at F:/esp/v5.3.1/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:796 0x408036b4: npl_freertos_mutex_release at F:/esp/v5.3.1/esp-idf/components/bt/porting/npl/freertos/src/npl_os_freertos.c:470 (discriminator 1) 408291f0: 0x00000000 0x40829244 0x00000000 0x42012c3a 0x00000000 0x00000000 0x01020001 0x42012c56 0x42012c3a: ble_hs_unlock_nested at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs.c:209 0x42012c56: ble_hs_unlock at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs.c:240 40829210: 0x00000000 0x00000000 0x00000000 0x42000000 0x00000012 0x00000000 0x00000000 0x00000000 40829230: 0x00000012 0x408241a6 0x408292ec 0x4200e480 0x00000000 0x00000001 0x00000030 0x00000030 0x4200e480: ext_bleprph_advertise at F:/Embedded/ESP32/power_save/main/main.c:135 (discriminator 1) 40829250: 0x00000000 0x00000000 0x02010000 0x00000100 0x4208376c 0x00000000 0x408292ec 0x4200e8e2 0x4200e8e2: bleprph_gap_event at F:/Embedded/ESP32/power_save/main/main.c:345 40829270: 0x408292cc 0x00002016 0x00000000 0x00000000 0x408292e8 0x408293e8 0x40828378 0x4080ea26 0x4080ea26: xQueueGiveMutexRecursive at F:/esp/v5.3.1/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:796 40829290: 0x408292e8 0x408292e4 0x408201e0 0x408036b4 0x40818931 0x408292e4 0x00000000 0x42012c3a 0x408036b4: npl_freertos_mutex_release at F:/esp/v5.3.1/esp-idf/components/bt/porting/npl/freertos/src/npl_os_freertos.c:470 (discriminator 1) 0x42012c3a: ble_hs_unlock_nested at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs.c:209 408292b0: 0x40818931 0x40819a60 0x40818918 0x42012c56 0x00000000 0x00000000 0x00000000 0x42018446 0x42012c56: ble_hs_unlock at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs.c:240 0x42018446: ble_gap_slave_extract_cb at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_gap.c:1013 408292d0: 0x00000012 0x408241a6 0x00000000 0x420187ba 0x00000000 0x00000000 0x4200e5d0 0x00000009 0x420187ba: ble_gap_adv_finished at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_gap.c:1038 0x4200e5d0: bleprph_gap_event at F:/Embedded/ESP32/power_save/main/main.c:280 408292f0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 40829310: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0xb4970101 0x408241a6 0x42019428 0x42019428: ble_gap_rx_adv_set_terminated at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_gap.c:1829 40829330: 0x00000012 0x408241a6 0x408241a6 0x42013aee 0x40818000 0x00000000 0x00000006 0x42013460 0x42013aee: ble_hs_hci_evt_le_adv_set_terminated at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs_hci_evt.c:956 0x42013460: ble_hs_hci_evt_le_meta at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs_hci_evt.c:440 40829350: 0x40818000 0x0000003e 0x408241a4 0x42013fbc 0x40818000 0x408241a4 0x40818868 0x42012b16 0x42013fbc: ble_hs_hci_evt_process at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs_hci_evt.c:1124 0x42012b16: ble_hs_event_rx_hci_ev at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs.c:532 40829370: 0x00000000 0x00000000 0x40818868 0x40802d86 0x00000000 0x00000000 0x40818000 0x40802c6a 0x40802d86: npl_freertos_event_run at F:/esp/v5.3.1/esp-idf/components/bt/porting/npl/freertos/src/npl_os_freertos.c:403 0x40802c6a: nimble_port_run at F:/esp/v5.3.1/esp-idf/components/bt/host/nimble/nimble/porting/nimble/src/nimble_port.c:307 40829390: 0x420837a8 0x00000865 0x00000000 0x4200e276 0x00000000 0x00000000 0x00000000 0x40810ace 0x4200e276: bleprph_host_task at F:/Embedded/ESP32/power_save/main/main.c:534 0x40810ace: vPortTaskWrapper at F:/esp/v5.3.1/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:258 408293b0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 408293d0: 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0x00000150 0x408290c0 0x00000000 408293f0: 0x408176f8 0x408176f8 0x408293e8 0x408176f0 0x00000004 0x40820218 0x40820218 0x408293e8 40829410: 0x00000000 0x00000015 0x408283e4 0x626d696e 0x685f656c 0x0074736f 0x00000000 0x408293e0 40829430: 0x00000015 0x00000000 0x00000000 0x00000000 0x00000000 0x4081aa68 0x4081aad0 0x4081ab38 40829450: 0x00000000 0x00000000 0x00000001 0x00000000 0x00000000 0x00000000 0x420088d2 0x00000000 0x420088d2: esp_cleanup_r at F:/esp/v5.3.1/esp-idf/components/newlib/newlib_init.c:43 40829470: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 40829490: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 408294b0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 408294d0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 408294f0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 ELF file SHA256: 441742955 Rebooting... ESP-ROM:esp32h2-20221101 Build:Nov 1 2022 rst:0xc (SW_CPU),boot:0xc (SPI_FAST_FLASH_BOOT) SPIWP:0xee mode:DIO, clock div:1 load:0x408460e0,len:0x17ac load:0x4083cad0,len:0xefc load:0x4083efd0,len:0x2ce4 entry 0x4083cada I (25) boot: ESP-IDF v5.3.1 2nd stage bootloader I (26) boot: compile time Nov 14 2024 01:59:05 I (27) boot: chip revision: v0.1 I (28) boot.esp32h2: SPI Speed : 64MHz I (33) boot.esp32h2: SPI Mode : DIO I (37) boot.esp32h2: SPI Flash Size : 2MB I (42) boot: Enabling RNG early entropy source... I (48) boot: Partition Table: I (51) boot: ## Label Usage Type ST Offset Length I (58) boot: 0 nvs WiFi data 01 02 00009000 00006000 I (66) boot: 1 phy_init RF data 01 01 0000f000 00001000 I (73) boot: 2 factory factory app 00 00 00010000 00100000 I (81) boot: End of partition table I (85) esp_image: segment 0: paddr=00010020 vaddr=42080020 size=1b0c4h (110788) map I (144) esp_image: segment 1: paddr=0002b0ec vaddr=40800000 size=04f2ch ( 20268) load I (156) esp_image: segment 2: paddr=00030020 vaddr=42000020 size=7e4dch (517340) map I (393) esp_image: segment 3: paddr=000ae504 vaddr=40804f2c size=0f5d8h ( 62936) load I (427) esp_image: segment 4: paddr=000bdae4 vaddr=40814510 size=02cbch ( 11452) load I (435) esp_image: segment 5: paddr=000c07a8 vaddr=50000000 size=00050h ( 80) load I (437) esp_image: segment 6: paddr=000c0800 vaddr=50000050 size=00008h ( 8) load I (454) boot: Loaded app from partition at offset 0x10000 I (455) boot: Disabling RNG early entropy source... I (466) cpu_start: Unicore app W (2003) clk: 32 kHz clock not found, switching to internal 150 kHz oscillator I (2027) cpu_start: Pro cpu start user code I (2028) cpu_start: cpu freq: 96000000 Hz I (2028) app_init: Application information: I (2031) app_init: Project name: power_save I (2036) app_init: App version: 1 I (2040) app_init: Compile time: Nov 14 2024 01:58:49 I (2046) app_init: ELF file SHA256: 441742955... I (2052) app_init: ESP-IDF: v5.3.1 I (2057) efuse_init: Min chip rev: v0.0 I (2061) efuse_init: Max chip rev: v0.99 I (2066) efuse_init: Chip rev: v0.1 I (2071) heap_init: Initializing. RAM available for dynamic allocation: I (2079) heap_init: At 40819F90 len 000333F0 (204 KiB): RAM I (2085) heap_init: At 4084D380 len 00002B60 (10 KiB): RAM I (2092) spi_flash: detected chip: generic I (2096) spi_flash: flash io: dio W (2100) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header. I (2114) sleep: Enable automatic switching of GPIO sleep configuration I (2121) sleep_clock: System Power, Clock and Reset sleep retention initialization I (2143) pm: Frequency switching config: CPU_MAX: 96, APB_MAX: 32, APB_MIN: 32, Light sleep: DISABLED I (2144) coexist: coex firmware version: 4482466 I (2149) main_task: Started on CPU0 I (2152) main_task: Calling app_main() I (2165) pm: Frequency switching config: CPU_MAX: 96, APB_MAX: 32, APB_MIN: 32, Light sleep: ENABLED W (2167) BLE_INIT: 32.768kHz XTAL not detected, fall back to main XTAL as Bluetooth sleep clock I (2175) BLE_INIT: Using main XTAL as clock source I (2187) BLE_INIT: ble controller commit:[a95ec45] W (2187) BLE_INIT: BLE modem sleep is enabled I (2192) BLE_INIT: Modem BLE MAC retention initialization W (2197) BLE_INIT: Enable light sleep, the wake up source is BLE timer I (2216) phy: phy_version: 310,2, 8fa9cb4, Jun 5 2024, 14:19:10 I (2234) phy: libbtbb version: a024da6, Jun 5 2024, 14:19:22 I (2234) sleep_clock: Modem Power, Clock and Reset sleep retention initialization I (2239) NimBLE_BLE_PRPH: BLE Host Task Started I (2247) NimBLE: Device Address: I (2248) NimBLE: 74:4d:bd:62:05:5f I (2251) NimBLE: I (2255) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (2265) uart: queue free spaces: 8 I (2266) main_task: Returned from app_main() I (2314) NimBLE: connection established; status=0 I (2315) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr= I (2365) NimBLE: 74:4d:bd:62:05:5f I (2366) NimBLE: our_id_addr_type=0 our_id_addr= I (2367) NimBLE: 74:4d:bd:62:05:5f I (2369) NimBLE: peer_ota_addr_type=1 peer_ota_addr= I (2374) NimBLE: 7c:9f:3e:33:b4:97 I (2378) NimBLE: peer_id_addr_type=1 peer_id_addr= I (2384) NimBLE: 7c:9f:3e:33:b4:97 I (2388) NimBLE: conn_itvl=24 conn_latency=0 supervision_timeout=72 encrypted=0 authenticated=0 bonded=0 I (2398) NimBLE: I (2405) NimBLE: advertise complete; reason=0 I (2409) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (2503) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (2555) NimBLE: GAP procedure initiated: stop extended advertising. I (2560) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (2614) NimBLE: connection established; status=0 I (2615) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr= I (2665) NimBLE: 74:4d:bd:62:05:5f I (2666) NimBLE: our_id_addr_type=0 our_id_addr= I (2667) NimBLE: 74:4d:bd:62:05:5f I (2669) NimBLE: peer_ota_addr_type=1 peer_ota_addr= I (2674) NimBLE: 7c:9f:3e:33:b4:97 I (2678) NimBLE: peer_id_addr_type=1 peer_id_addr= I (2684) NimBLE: 7c:9f:3e:33:b4:97 I (2690) NimBLE: conn_itvl=24 conn_latency=0 supervision_timeout=72 encrypted=0 authenticated=0 bonded=0 I (2698) NimBLE: I (2703) NimBLE: advertise complete; reason=0 I (2711) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (2802) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (2854) NimBLE: GAP procedure initiated: stop extended advertising. I (2859) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (2911) NimBLE: connection established; status=0 I (2912) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr= I (2962) NimBLE: 74:4d:bd:62:05:5f I (2963) NimBLE: our_id_addr_type=0 our_id_addr= I (2963) NimBLE: 74:4d:bd:62:05:5f I (2965) NimBLE: peer_ota_addr_type=1 peer_ota_addr= I (2971) NimBLE: 7c:9f:3e:33:b4:97 I (2975) NimBLE: peer_id_addr_type=1 peer_id_addr= I (2981) NimBLE: 7c:9f:3e:33:b4:97 I (2985) NimBLE: conn_itvl=24 conn_latency=0 supervision_timeout=72 encrypted=0 authenticated=0 bonded=0 I (2995) NimBLE: I (3001) NimBLE: advertise complete; reason=0 I (3005) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (3097) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (3149) NimBLE: GAP procedure initiated: stop extended advertising. I (3156) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (3245) NimBLE: connection established; status=0 I (3246) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr= I (3296) NimBLE: 74:4d:bd:62:05:5f I (3299) NimBLE: our_id_addr_type=0 our_id_addr= I (3300) NimBLE: 74:4d:bd:62:05:5f I (3301) NimBLE: peer_ota_addr_type=1 peer_ota_addr= I (3307) NimBLE: 7c:9f:3e:33:b4:97 I (3311) NimBLE: peer_id_addr_type=1 peer_id_addr= I (3317) NimBLE: 7c:9f:3e:33:b4:97 I (3321) NimBLE: conn_itvl=24 conn_latency=0 supervision_timeout=72 encrypted=0 authenticated=0 bonded=0 I (3331) NimBLE: I (3338) NimBLE: advertise complete; reason=0 I (3342) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (3431) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (3483) NimBLE: GAP procedure initiated: stop extended advertising. I (3487) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (3542) NimBLE: connection established; status=0 I (3543) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr= I (3593) NimBLE: 74:4d:bd:62:05:5f I (3594) NimBLE: our_id_addr_type=0 our_id_addr= I (3595) NimBLE: 74:4d:bd:62:05:5f I (3597) NimBLE: peer_ota_addr_type=1 peer_ota_addr= I (3602) NimBLE: 7c:9f:3e:33:b4:97 I (3607) NimBLE: peer_id_addr_type=1 peer_id_addr= I (3612) NimBLE: 7c:9f:3e:33:b4:97 I (3616) NimBLE: conn_itvl=24 conn_latency=0 supervision_timeout=72 encrypted=0 authenticated=0 bonded=0 I (3626) NimBLE: I (3631) NimBLE: advertise complete; reason=0 I (3639) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (3733) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (3785) NimBLE: GAP procedure initiated: stop extended advertising. I (3790) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (3841) NimBLE: connection established; status=0 I (3842) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr= I (3892) NimBLE: 74:4d:bd:62:05:5f I (3893) NimBLE: our_id_addr_type=0 our_id_addr= I (3893) NimBLE: 74:4d:bd:62:05:5f I (3895) NimBLE: peer_ota_addr_type=1 peer_ota_addr= I (3901) NimBLE: 7c:9f:3e:33:b4:97 I (3905) NimBLE: peer_id_addr_type=1 peer_id_addr= I (3911) NimBLE: 7c:9f:3e:33:b4:97 I (3915) NimBLE: conn_itvl=24 conn_latency=0 supervision_timeout=72 encrypted=0 authenticated=0 bonded=0 I (3925) NimBLE: I (3931) NimBLE: advertise complete; reason=0 I (3935) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (4024) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (4076) NimBLE: GAP procedure initiated: stop extended advertising. I (4081) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (4170) NimBLE: connection established; status=0 I (4172) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr= I (4222) NimBLE: 74:4d:bd:62:05:5f I (4223) NimBLE: our_id_addr_type=0 our_id_addr= I (4223) NimBLE: 74:4d:bd:62:05:5f I (4225) NimBLE: peer_ota_addr_type=1 peer_ota_addr= I (4231) NimBLE: 7c:9f:3e:33:b4:97 I (4235) NimBLE: peer_id_addr_type=1 peer_id_addr= I (4240) NimBLE: 7c:9f:3e:33:b4:97 I (4244) NimBLE: conn_itvl=24 conn_latency=0 supervision_timeout=72 encrypted=0 authenticated=0 bonded=0 I (4255) NimBLE: I (4260) NimBLE: advertise complete; reason=0 I (4267) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (4363) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (4415) NimBLE: GAP procedure initiated: stop extended advertising. I (4420) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (4473) NimBLE: connection established; status=0 I (4474) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr= I (4524) NimBLE: 74:4d:bd:62:05:5f I (4525) NimBLE: our_id_addr_type=0 our_id_addr= I (4526) NimBLE: 74:4d:bd:62:05:5f I (4528) NimBLE: peer_ota_addr_type=1 peer_ota_addr= I (4533) NimBLE: 7c:9f:3e:33:b4:97 I (4537) NimBLE: peer_id_addr_type=1 peer_id_addr= I (4543) NimBLE: 7c:9f:3e:33:b4:97 I (4549) NimBLE: conn_itvl=24 conn_latency=0 supervision_timeout=72 encrypted=0 authenticated=0 bonded=0 I (4557) NimBLE: I (4562) NimBLE: advertise complete; reason=0 I (4567) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (4662) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (4714) NimBLE: GAP procedure initiated: stop extended advertising. I (4720) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (4773) NimBLE: connection established; status=0 I (4774) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr= I (4824) NimBLE: 74:4d:bd:62:05:5f I (4825) NimBLE: our_id_addr_type=0 our_id_addr= I (4825) NimBLE: 74:4d:bd:62:05:5f I (4827) NimBLE: peer_ota_addr_type=1 peer_ota_addr= I (4833) NimBLE: 7c:9f:3e:33:b4:97 I (4837) NimBLE: peer_id_addr_type=1 peer_id_addr= I (4843) NimBLE: 7c:9f:3e:33:b4:97 I (4847) NimBLE: conn_itvl=24 conn_latency=0 supervision_timeout=72 encrypted=0 authenticated=0 bonded=0 I (4857) NimBLE: I (4863) NimBLE: advertise complete; reason=0 I (4867) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (4955) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (5007) NimBLE: GAP procedure initiated: stop extended advertising. I (5012) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (5099) NimBLE: connection established; status=0 I (5101) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr= I (5151) NimBLE: 74:4d:bd:62:05:5f I (5152) NimBLE: our_id_addr_type=0 our_id_addr= I (5152) NimBLE: 74:4d:bd:62:05:5f I (5154) NimBLE: peer_ota_addr_type=1 peer_ota_addr= I (5160) NimBLE: 7c:9f:3e:33:b4:97 I (5164) NimBLE: peer_id_addr_type=1 peer_id_addr= I (5169) NimBLE: 7c:9f:3e:33:b4:97 I (5173) NimBLE: conn_itvl=24 conn_latency=0 supervision_timeout=72 encrypted=0 authenticated=0 bonded=0 I (5184) NimBLE: I (5190) NimBLE: advertise complete; reason=0 I (5194) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (5289) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (5342) NimBLE: GAP procedure initiated: stop extended advertising. I (5347) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (5396) NimBLE: connection established; status=0 I (5397) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr= I (5447) NimBLE: 74:4d:bd:62:05:5f I (5448) NimBLE: our_id_addr_type=0 our_id_addr= I (5449) NimBLE: 74:4d:bd:62:05:5f I (5451) NimBLE: peer_ota_addr_type=1 peer_ota_addr= I (5456) NimBLE: 7c:9f:3e:33:b4:97 I (5460) NimBLE: peer_id_addr_type=1 peer_id_addr= I (5466) NimBLE: 7c:9f:3e:33:b4:97 I (5470) NimBLE: conn_itvl=24 conn_latency=0 supervision_timeout=72 encrypted=0 authenticated=0 bonded=0 I (5480) NimBLE: I (5485) NimBLE: advertise complete; reason=0 I (5490) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (5586) NimBLE: Reattempt advertising; reason: 0x3e, status = 0 I (5638) NimBLE: GAP procedure initiated: stop extended advertising. I (5643) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (5970) NimBLE: connection established; status=0 I (5973) NimBLE: handle=0 our_ota_addr_type=0 our_ota_addr= I (6023) NimBLE: 74:4d:bd:62:05:5f I (6024) NimBLE: our_id_addr_type=0 our_id_addr= I (6024) NimBLE: 74:4d:bd:62:05:5f I (6026) NimBLE: peer_ota_addr_type=1 peer_ota_addr= I (6033) NimBLE: 7c:9f:3e:33:b4:97 I (6040) NimBLE: peer_id_addr_type=1 peer_id_addr= I (6042) NimBLE: 7c:9f:3e:33:b4:97 I (6046) NimBLE: conn_itvl=24 conn_latency=0 supervision_timeout=72 encrypted=0 authenticated=0 bonded=0 I (6056) NimBLE: I (6062) NimBLE: advertise complete; reason=0 I (6067) NimBLE: GAP procedure initiated: extended advertise; instance=0 I (6106) NimBLE: mtu update event; conn_handle=0 cid=4 mtu=256