ESP32 auto reset unexpectedly

cyborglol0110
Posts: 2
Joined: Tue Feb 25, 2025 10:10 am

ESP32 auto reset unexpectedly

Postby cyborglol0110 » Fri May 16, 2025 10:14 am

Hello. I am currently working with BLE-MESH on ESP32-WROOM-32. However, sometimes it auto resets unexpectedly even I don't reset it. I tried to find out the reason by esp_reset_reason() and it returned:

Code: Select all

ESP_RST_PANIC
Why it this happened and how to fix it? Thank you.

This is the console output when the ESP32 initialize and get auto reset.

Code: Select all

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:6276
load:0x40078000,len:15748
load:0x40080400,len:4
--- 0x40080400: _init at ??:?

ho 8 tail 4 room 4
load:0x40080404,len:3860
entry 0x4008063c
I (31) boot: ESP-IDF v5.4.1-dirty 2nd stage bootloader
I (31) boot: compile time May 16 2025 16:31:05
I (31) boot: Multicore bootloader
I (33) boot: chip revision: v3.1
I (36) boot.esp32: SPI Speed      : 40MHz
I (40) boot.esp32: SPI Mode       : DIO
I (43) boot.esp32: SPI Flash Size : 2MB
I (47) boot: Enabling RNG early entropy source...
I (51) boot: Partition Table:
I (54) boot: ## Label            Usage          Type ST Offset   Length
I (60) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (67) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (73) boot:  2 factory          factory app      00 00 00010000 00177000
I (80) boot: End of partition table
I (83) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=1fbd4h (130004) map
I (135) esp_image: segment 1: paddr=0002fbfc vaddr=3ff80000 size=0001ch (    28) load
I (135) esp_image: segment 2: paddr=0002fc20 vaddr=3ffbdb60 size=003f8h (  1016) load
I (139) esp_image: segment 3: paddr=00030020 vaddr=400d0020 size=97b50h (621392) map
I (358) esp_image: segment 4: paddr=000c7b78 vaddr=3ffbdf58 size=050a0h ( 20640) load
I (366) esp_image: segment 5: paddr=000ccc20 vaddr=40080000 size=189f0h (100848) load
I (418) boot: Loaded app from partition at offset 0x10000
I (418) boot: Disabling RNG early entropy source...
I (428) cpu_start: Multicore app
I (437) cpu_start: Pro cpu start user code
I (437) cpu_start: cpu freq: 160000000 Hz
I (437) app_init: Application information:
I (437) app_init: Project name:     mesh-gateway
I (441) app_init: App version:      b3e342f-dirty
I (446) app_init: Compile time:     May 16 2025 16:31:00
I (451) app_init: ELF file SHA256:  b31126932...
I (455) app_init: ESP-IDF:          v5.4.1-dirty
I (459) efuse_init: Min chip rev:     v0.0
I (463) efuse_init: Max chip rev:     v3.99 
I (467) efuse_init: Chip rev:         v3.1
I (471) heap_init: Initializing. RAM available for dynamic allocation:
I (477) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM
I (482) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM
I (488) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM
I (493) heap_init: At 3FFCC180 len 00013E80 (79 KiB): DRAM
I (498) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (503) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (509) heap_init: At 400989F0 len 00007610 (29 KiB): IRAM
I (516) spi_flash: detected chip: generic
I (518) spi_flash: flash io: dio
W (521) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (534) coexist: coex firmware version: e727207
I (538) main_task: Started on CPU0
I (548) main_task: Calling app_main()
I (558) gpio: GPIO[2]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (1758) BTDM_INIT: BT controller compile version [dc1cd58]
I (1758) BTDM_INIT: Bluetooth MAC: 08:a6:f7:a0:8e:42
I (1758) phy_init: phy_version 4860,6b7a6e5,Feb  6 2025,14:47:07
I (2098) BLE_MESH(lib): Bluetooth Mesh v1.1 commit: [meshlib:8a5446cb8d]
I (2098) BLE_MESH: Relay not supported
I (2098) BLE_MESH: GATT Proxy not supported
I (2098) BLE_MESH: Friend not supported
I (2188) BLE_MESH: NetKeyIndex 0x000, NID 0x49
I (2188) BLE_MESH: NetKey 43505f66524a8fd8d9687e855c25542b
I (2188) BLE_MESH: Primary address 0x0001, element�ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:6276
load:0x40078000,len:15748
load:0x40080400,len:4
--- 0x40080400: _init at ??:?

ho 8 tail 4 room 4
load:0x40080404,len:3860
entry 0x4008063c
...

ahsrabrifat
Posts: 201
Joined: Sat Jan 18, 2025 2:31 pm

Re: ESP32 auto reset unexpectedly

Postby ahsrabrifat » Fri May 16, 2025 3:04 pm

Since Mesh logs say:

Code: Select all

Relay not supported
GATT Proxy not supported
Friend not supported
Try disabling features you’re not using from sdkconfig or code to reduce memory usage.

Who is online

Users browsing this forum: Applebot, meta-externalagent, PetalBot and 3 guests