[ESP32-S2] Out of control rebotting issue
Posted: Sat Sep 25, 2021 10:44 am
Please read this serial output:
This is an infinite loop rebooting with no way to restore the product to a working state.
For sure it can be related to a bug in the firmware, but I worked with other MCUs and I in every cases can restore the product to a working state (like reading reset register at very first time) and at least signaling the problem.
As you can see my code is not loaded but the MCU is crazy rebooting.
How can I handle this to be sure to trhow in the market a good quality and stable product based on ESP32-S2?
Code: Select all
ELF file SHA256: a760eaa80003108b
Rebooting...
ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0xc (RTC_SW_CPU_RST),boot:0xa (SPI_FAST_FLASH_BOOT)
Saved PC:0x40028f28
SPIWP:0xee
mode:DIO, clock div:1
load:0x3ffe6100,len:0x1900
load:0x4004c000,len:0x9e8
load:0x40050000,len:0x2b70
entry 0x4004c1ec
␛[0;32mI (24) boot: ESP-IDF 4.3.0 2nd stage bootloader␛[0m
␛[0;32mI (24) boot: compile time 22:38:02␛[0m
␛[0;32mI (24) boot: chip revision: 0␛[0m
␛[0;32mI (26) boot.esp32s2: SPI Speed : 80MHz␛[0m
␛[0;32mI (31) boot.esp32s2: SPI Mode : DIO␛[0m
␛[0;32mI (35) boot.esp32s2: SPI Flash Size : 4MB␛[0m
␛[0;32mI (40) boot: Enabling RNG early entropy source...␛[0m
␛[0;32mI (46) boot: Partition Table:␛[0m
␛[0;32mI (49) boot: ## Label Usage Type ST Offset Length␛[0m
␛[0;32mI (57) boot: 0 nvs WiFi data 01 02 00009000 00008000␛[0m
␛[0;32mI (64) boot: 1 otadata OTA data 01 00 00011000 00002000␛[0m
␛[0;32mI (71) boot: 2 phy_init RF data 01 01 00013000 00000800␛[0m
␛[0;32mI (79) boot: 3 factory factory app 00 00 00020000 00100000␛[0m
␛[0;32mI (86) boot: 4 ota_0 OTA app 00 10 00120000 00100000␛[0m
␛[0;32mI (94) boot: 5 ota_1 OTA app 00 11 00220000 00100000␛[0m
␛[0;32mI (101) boot: 6 octagon Unknown data 01 87 00320000 000c0000␛[0m
␛[0;32mI (109) boot: End of partition table␛[0m
␛[0;32mI (113) boot: Defaulting to factory image␛[0m
␛[0;32mI (118) esp_image: segment 0: paddr=00020020 vaddr=3f000020 size=29568h (169320) map␛[0m
␛[0;32mI (163) esp_image: segment 1: paddr=00049590 vaddr=3ffc7df0 size=061b0h ( 25008) load␛[0m
␛[0;32mI (169) esp_image: segment 2: paddr=0004f748 vaddr=40022000 size=008d0h ( 2256) load␛[0m
␛[0;32mI (170) esp_image: segment 3: paddr=00050020 vaddr=40080020 size=b669ch (747164) map␛[0m
␛[0;32mI (338) esp_image: segment 4: paddr=001066c4 vaddr=400228d0 size=15520h ( 87328) load␛[0m
␛[0;32mI (361) esp_image: segment 5: paddr=0011bbec vaddr=50000000 size=00010h ( 16) load␛[0m
␛[0;32mI (374) boot: Loaded app from partition at offset 0x20000␛[0m
␛[0;32mI (374) boot: Disabling RNG early entropy source...␛[0m
␛[0;32mI (386) cache: Instruction cache : size 8KB, 4Ways, cache line size 32Byte␛[0m
␛[0;32mI (386) cpu_start: Pro cpu up.␛[0m
Guru Meditation Error: Core 0 panic'ed (Cache error).
Core 0 register dump:
PC : 0x40037dbd PS : 0x00060d34 A0 : 0x8009f3ad A1 : 0x3fffe280
A2 : 0x02000000 A3 : 0x00000000 A4 : 0x02000000 A5 : 0x00000004
A6 : 0x000000c0 A7 : 0x00000000 A8 : 0x3ffffd70 A9 : 0x3fffe240
A10 : 0x00fdffff A11 : 0x00000030 A12 : 0x00000000 A13 : 0x50000008
A14 : 0x00000000 A15 : 0x00000000 SAR : 0x00000007 EXCCAUSE: 0x00000007
EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x50000008 LCOUNT : 0x40023f78
Backtrace:0x40037dba:0x3fffe280 0x4009f3aa:0x3fffe290 0x4012f883:0x3fffe2b0 0x4013001e:0x3fffe2d0 0x40023f41:0x3fffe310 0x40050df1:0x3fffe330 0x4005124d:0x3fffe370 0x4004c23d:0x3fffe4a0 0x40011371:0x3fffe560 0x4000f788:0x3fffe6f0 0x400072a5:0x3fffe710
ELF file SHA256: a760eaa80003108b
Rebooting...
ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0xc (RTC_SW_CPU_RST),boot:0xa (SPI_FAST_FLASH_BOOT)
Saved PC:0x40028f28
SPIWP:0xee
mode:DIO, clock div:1
load:0x3ffe6100,len:0x1900
load:0x4004c000,len:0x9e8
load:0x40050000,len:0x2b70
entry 0x4004c1ec
␛[0;32mI (24) boot: ESP-IDF 4.3.0 2nd stage bootloader␛[0m
␛[0;32mI (24) boot: compile time 22:38:02␛[0m
␛[0;32mI (24) boot: chip revision: 0␛[0m
␛[0;32mI (26) boot.esp32s2: SPI Speed : 80MHz␛[0m
␛[0;32mI (31) boot.esp32s2: SPI Mode : DIO␛[0m
␛[0;32mI (35) boot.esp32s2: SPI Flash Size : 4MB␛[0m
␛[0;32mI (40) boot: Enabling RNG early entropy source...␛[0m
␛[0;32mI (46) boot: Partition Table:␛[0m
␛[0;32mI (49) boot: ## Label Usage Type ST Offset Length␛[0m
␛[0;32mI (57) boot: 0 nvs WiFi data 01 02 00009000 00008000␛[0m
␛[0;32mI (64) boot: 1 otadata OTA data 01 00 00011000 00002000␛[0m
␛[0;32mI (71) boot: 2 phy_init RF data 01 01 00013000 00000800␛[0m
␛[0;32mI (79) boot: 3 factory factory app 00 00 00020000 00100000␛[0m
␛[0;32mI (86) boot: 4 ota_0 OTA app 00 10 00120000 00100000␛[0m
␛[0;32mI (94) boot: 5 ota_1 OTA app 00 11 00220000 00100000␛[0m
␛[0;32mI (101) boot: 6 octagon Unknown data 01 87 00320000 000c0000␛[0m
␛[0;32mI (109) boot: End of partition table␛[0m
␛[0;32mI (113) boot: Defaulting to factory image␛[0m
␛[0;32mI (118) esp_image: segment 0: paddr=00020020 vaddr=3f000020 size=29568h (169320) map␛[0m
␛[0;32mI (163) esp_image: segment 1: paddr=00049590 vaddr=3ffc7df0 size=061b0h ( 25008) load␛[0m
␛[0;32mI (169) esp_image: segment 2: paddr=0004f748 vaddr=40022000 size=008d0h ( 2256) load␛[0m
␛[0;32mI (170) esp_image: segment 3: paddr=00050020 vaddr=40080020 size=b669ch (747164) map␛[0m
␛[0;32mI (338) esp_image: segment 4: paddr=001066c4 vaddr=400228d0 size=15520h ( 87328) load␛[0m
␛[0;32mI (361) esp_image: segment 5: paddr=0011bbec vaddr=50000000 size=00010h ( 16) load␛[0m
␛[0;32mI (374) boot: Loaded app from partition at offset 0x20000␛[0m
␛[0;32mI (374) boot: Disabling RNG early entropy source...␛[0m
␛[0;32mI (386) cache: Instruction cache : size 8KB, 4Ways, cache line size 32Byte␛[0m
␛[0;32mI (386) cpu_start: Pro cpu up.␛[0m
Guru Meditation Error: Core 0 panic'ed (Cache error).
Core 0 register dump:
PC : 0x40037dbd PS : 0x00060d34 A0 : 0x8009f3ad A1 : 0x3fffe280
A2 : 0x02000000 A3 : 0x00000000 A4 : 0x02000000 A5 : 0x00000004
A6 : 0x000000c0 A7 : 0x00000000 A8 : 0x3ffffd70 A9 : 0x3fffe240
A10 : 0x00fdffff A11 : 0x00000030 A12 : 0x00000000 A13 : 0x50000008
A14 : 0x00000000 A15 : 0x00000000 SAR : 0x00000007 EXCCAUSE: 0x00000007
EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x50000008 LCOUNT : 0x40023f78
Backtrace:0x40037dba:0x3fffe280 0x4009f3aa:0x3fffe290 0x4012f883:0x3fffe2b0 0x4013001e:0x3fffe2d0 0x40023f41:0x3fffe310 0x40050df1:0x3fffe330 0x4005124d:0x3fffe370 0x4004c23d:0x3fffe4a0 0x40011371:0x3fffe560 0x4000f788:0x3fffe6f0 0x400072a5:0x3fffe710
ELF file SHA256: a760eaa80003108b
Rebooting...
ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0xc (RTC_SW_CPU_RST),boot:0xa (SPI_FAST_FLASH_BOOT)
Saved PC:0x40028f28
SPIWP:0xee
mode:DIO, clock div:1
load:0x3ffe6100,len:0x1900
load:0x4004c000,len:0x9e8
load:0x40050000,len:0x2b70
entry 0x4004c1ec
␛[0;32mI (24) boot: ESP-IDF 4.3.0 2nd stage bootloader␛[0m
␛[0;32mI (24) boot: compile time 22:38:02␛[0m
␛[0;32mI (24) boot: chip revision: 0␛[0m
␛[0;32mI (26) boot.esp32s2: SPI Speed : 80MHz␛[0m
␛[0;32mI (31) boot.esp32s2: SPI Mode : DIO␛[0m
␛[0;32mI (35) boot.esp32s2: SPI Flash Size : 4MB␛[0m
␛[0;32mI (40) boot: Enabling RNG early entropy source...␛[0m
␛[0;32mI (46) boot: Partition Table:␛[0m
␛[0;32mI (49) boot: ## Label Usage Type ST Offset Length␛[0m
␛[0;32mI (57) boot: 0 nvs WiFi data 01 02 00009000 00008000␛[0m
␛[0;32mI (64) boot: 1 otadata OTA data 01 00 00011000 00002000␛[0m
␛[0;32mI (71) boot: 2 phy_init RF data 01 01 00013000 00000800␛[0m
␛[0;32mI (79) boot: 3 factory factory app 00 00 00020000 00100000␛[0m
␛[0;32mI (86) boot: 4 ota_0 OTA app 00 10 00120000 00100000␛[0m
␛[0;32mI (94) boot: 5 ota_1 OTA app 00 11 00220000 00100000␛[0m
␛[0;32mI (101) boot: 6 octagon Unknown data 01 87 00320000 000c0000␛[0m
␛[0;32mI (109) boot: End of partition table␛[0m
␛[0;32mI (113) boot: Defaulting to factory image␛[0m
␛[0;32mI (118) esp_image: segment 0: paddr=00020020 vaddr=3f000020 size=29568h (169320) map␛[0m
␛[0;32mI (163) esp_image: segment 1: paddr=00049590 vaddr=3ffc7df0 size=061b0h ( 25008) load␛[0m
␛[0;32mI (169) esp_image: segment 2: paddr=0004f748 vaddr=40022000 size=008d0h ( 2256) load␛[0m
␛[0;32mI (170) esp_image: segment 3: paddr=00050020 vaddr=40080020 size=b669ch (747164) map␛[0m
␛[0;32mI (338) esp_image: segment 4: paddr=001066c4 vaddr=400228d0 size=15520h ( 87328) load␛[0m
␛[0;32mI (361) esp_image: segment 5: paddr=0011bbec vaddr=50000000 size=00010h ( 16) load␛[0m
␛[0;32mI (374) boot: Loaded app from partition at offset 0x20000␛[0m
␛[0;32mI (374) boot: Disabling RNG early entropy source...␛[0m
␛[0;32mI (386) cache: Instruction cache : size 8KB, 4Ways, cache line size 32Byte␛[0m
␛[0;32mI (386) cpu_start: Pro cpu up.␛[0m
Guru Meditation Error: Core 0 panic'ed (Cache error).
Core 0 register dump:
PC : 0x40037dbd PS : 0x00060d34 A0 : 0x8009f3ad A1 : 0x3fffe280
A2 : 0x02000000 A3 : 0x00000000 A4 : 0x02000000 A5 : 0x00000004
A6 : 0x000000c0 A7 : 0x00000000 A8 : 0x3ffffd70 A9 : 0x3fffe240
A10 : 0x00fdffff A11 : 0x00000030 A12 : 0x00000000 A13 : 0x50000008
A14 : 0x00000000 A15 : 0x00000000 SAR : 0x00000007 EXCCAUSE: 0x00000007
EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x50000008 LCOUNT : 0x40023f78
Backtrace:0x40037dba:0x3fffe280 0x4009f3aa:0x3fffe290 0x4012f883:0x3fffe2b0 0x4013001e:0x3fffe2d0 0x40023f41:0x3fffe310 0x40050df1:0x3fffe330 0x4005124d:0x3fffe370 0x4004c23d:0x3fffe4a0 0x40011371:0x3fffe560 0x4000f788:0x3fffe6f0 0x400072a5:0x3fffe710
ELF file SHA256: a760eaa80003108b
Rebooting...
ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0xc (RTC_SW_CPU_RST),boot:0xa (SPI_FAST_FLASH_BOOT)
Saved PC:0x40028f28
SPIWP:0xee
mode:DIO, clock div:1
load:0x3ffe6100,len:0x1900
load:0x4004c000,len:0x9e8
load:0x40050000,len:0x2b70
entry 0x4004c1ec
␛[0;32mI (24) boot: ESP-IDF 4.3.0 2nd stage bootloader␛[0m
␛[0;32mI (24) boot: compile time 22:38:02␛[0m
␛[0;32mI (24) boot: chip revision: 0␛[0m
␛[0;32mI (26) boot.esp32s2: SPI Speed : 80MHz␛[0m
␛[0;32mI (31) boot.esp32s2: SPI Mode : DIO␛[0m
␛[0;32mI (35) boot.esp32s2: SPI Flash Size : 4MB␛[0m
␛[0;32mI (40) boot: Enabling RNG early entropy source...␛[0m
␛[0;32mI (46) boot: Partition Table:␛[0m
␛[0;32mI (49) boot: ## Label Usage Type ST Offset Length␛[0m
␛[0;32mI (57) boot: 0 nvs WiFi data 01 02 00009000 00008000␛[0m
␛[0;32mI (64) boot: 1 otadata OTA data 01 00 00011000 00002000␛[0m
␛[0;32mI (71) boot: 2 phy_init RF data 01 01 00013000 00000800␛[0m
␛[0;32mI (79) boot: 3 factory factory app 00 00 00020000 00100000␛[0m
␛[0;32mI (86) boot: 4 ota_0 OTA app 00 10 00120000 00100000␛[0m
␛[0;32mI (94) boot: 5 ota_1 OTA app 00 11 00220000 00100000␛[0m
␛[0;32mI (101) boot: 6 octagon Unknown data 01 87 00320000 000c0000␛[0m
␛[0;32mI (109) boot: End of partition table␛[0m
␛[0;32mI (113) boot: Defaulting to factory image␛[0m
␛[0;32mI (118) esp_image: segment 0: paddr=00020020 vaddr=3f000020 size=29568h (169320) map␛[0m
␛[0;32mI (163) esp_image: segment 1: paddr=00049590 vaddr=3ffc7df0 size=061b0h ( 25008) load␛[0m
␛[0;32mI (169) esp_image: segment 2: paddr=0004f748 vaddr=40022000 size=008d0h ( 2256) load␛[0m
␛[0;32mI (170) esp_image: segment 3: paddr=00050020 vaddr=40080020 size=b669ch (747164) map␛[0m
␛[0;32mI (338) esp_image: segment 4: paddr=001066c4 vaddr=400228d0 size=15520h ( 87328) load␛[0m
␛[0;32mI (361) esp_image: segment 5: paddr=0011bbec vaddr=50000000 size=00010h ( 16) load␛[0m
␛[0;32mI (374) boot: Loaded app from partition at offset 0x20000␛[0m
␛[0;32mI (374) boot: Disabling RNG early entropy source...␛[0m
␛[0;32mI (386) cache: Instruction cache : size 8KB, 4Ways, cache line size 32Byte␛[0m
␛[0;32mI (386) cpu_start: Pro cpu up.␛[0m
Guru Meditation Error: Core 0 panic'ed (Cache error).
Core 0 register dump:
PC : 0x40037dbd PS : 0x00060d34 A0 : 0x8009f3ad A1 : 0x3fffe280
A2 : 0x02000000 A3 : 0x00000000 A4 : 0x02000000 A5 : 0x00000004
A6 : 0x000000c0 A7 : 0x00000000 A8 : 0x3ffffd70 A9 : 0x3fffe240
A10 : 0x00fdffff A11 : 0x00000030 A12 : 0x00000000 A13 : 0x50000008
A14 : 0x00000000 A15 : 0x00000000 SAR : 0x00000007 EXCCAUSE: 0x00000007
EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x50000008 LCOUNT : 0x40023f78
Backtrace:0x40037dba:0x3fffe280 0x4009f3aa:0x3fffe290 0x4012f883:0x3fffe2b0 0x4013001e:0x3fffe2d0 0x40023f41:0x3fffe310 0x40050df1:0x3fffe330 0x4005124d:0x3fffe370 0x4004c23d:0x3fffe4a0 0x40011371:0x3fffe560 0x4000f788:0x3fffe6f0 0x400072a5:0x3fffe710
ELF file SHA256: a760eaa80003108b
Rebooting...
ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0xc (RTC_SW_CPU_RST),boot:0xa (SPI_FAST_FLASH_BOOT)
Saved PC:0x40028f28
SPIWP:0xee
mode:DIO, clock div:1
load:0x3ffe6100,len:0x1900
load:0x4004c000,len:0x9e8
load:0x40050000,len:0x2b70
entry 0x4004c1ec
␛[0;32mI (24) boot: ESP-IDF 4.3.0 2nd stage bootloader␛[0m
␛[0;32mI (24) boot: compile time 22:38:02␛[0m
␛[0;32mI (24) boot: chip revision: 0␛[0m
␛[0;32mI (26) boot.esp32s2: SPI Speed : 80MHz␛[0m
␛[0;32mI (31) boot.esp32s2: SPI Mode : DIO␛[0m
␛[0;32mI (35) boot.esp32s2: SPI Flash Size : 4MB␛[0m
␛[0;32mI (40) boot: Enabling RNG early entropy source...␛[0m
␛[0;32mI (46) boot: Partition Table:␛[0m
␛[0;32mI (49) boot: ## Label Usage Type ST Offset Length␛[0m
␛[0;32mI (57) boot: 0 nvs WiFi data 01 02 00009000 00008000␛[0m
␛[0;32mI (64) boot: 1 otadata OTA data 01 00 00011000 00002000␛[0m
␛[0;32mI (71) boot: 2 phy_init RF data 01 01 00013000 00000800␛[0m
␛[0;32mI (79) boot: 3 factory factory app 00 00 00020000 00100000␛[0m
␛[0;32mI (86) boot: 4 ota_0 OTA app 00 10 00120000 00100000␛[0m
␛[0;32mI (94) boot: 5 ota_1 OTA app 00 11 00220000 00100000␛[0m
␛[0;32mI (101) boot: 6 octagon Unknown data 01 87 00320000 000c0000␛[0m
␛[0;32mI (109) boot: End of partition table␛[0m
␛[0;32mI (113) boot: Defaulting to factory image␛[0m
␛[0;32mI (118) esp_image: segment 0: paddr=00020020 vaddr=3f000020 size=29568h (169320) map␛[0m
␛[0;32mI (163) esp_image: segment 1: paddr=00049590 vaddr=3ffc7df0 size=061b0h ( 25008) load␛[0m
␛[0;32mI (169) esp_image: segment 2: paddr=0004f748 vaddr=40022000 size=008d0h ( 2256) load␛[0m
␛[0;32mI (170) esp_image: segment 3: paddr=00050020 vaddr=40080020 size=b669ch (747164) map␛[0m
␛[0;32mI (338) esp_image: segment 4: paddr=001066c4 vaddr=400228d0 size=15520h ( 87328) load␛[0m
␛[0;32mI (361) esp_image: segment 5: paddr=0011bbec vaddr=50000000 size=00010h ( 16) load␛[0m
␛[0;32mI (374) boot: Loaded app from partition at offset 0x20000␛[0m
␛[0;32mI (374) boot: Disabling RNG early entropy source...␛[0m
␛[0;32mI (386) cache: Instruction cache : size 8KB, 4Ways, cache line size 32Byte␛[0m
␛[0;32mI (386) cpu_start: Pro cpu up.␛[0m
Guru Meditation Error: Core 0 panic'ed (Cache error).
Core 0 register dump:
PC : 0x40037dbd PS : 0x00060d34 A0 : 0x8009f3ad A1 : 0x3fffe280
A2 : 0x02000000 A3 : 0x00000000 A4 : 0x02000000 A5 : 0x00000004
A6 : 0x000000c0 A7 : 0x00000000 A8 : 0x3ffffd70 A9 : 0x3fffe240
A10 : 0x00fdffff A11 : 0x00000030 A12 : 0x00000000 A13 : 0x50000008
A14 : 0x00000000 A15 : 0x00000000 SAR : 0x00000007 EXCCAUSE: 0x00000007
EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x50000008 LCOUNT : 0x40023f78
Backtrace:0x40037dba:0x3fffe280 0x4009f3aa:0x3fffe290 0x4012f883:0x3fffe2b0 0x4013001e:0x3fffe2d0 0x40023f41:0x3fffe310 0x40050df1:0x3fffe330 0x4005124d:0x3fffe370 0x4004c23d:0x3fffe4a0 0x40011371:0x3fffe560 0x4000f788:0x3fffe6f0 0x400072a5:0x3fffe710
This is an infinite loop rebooting with no way to restore the product to a working state.
For sure it can be related to a bug in the firmware, but I worked with other MCUs and I in every cases can restore the product to a working state (like reading reset register at very first time) and at least signaling the problem.
As you can see my code is not loaded but the MCU is crazy rebooting.
How can I handle this to be sure to trhow in the market a good quality and stable product based on ESP32-S2?