ESP32-s3-wroom random reboot: rst:0xc (RTC_SW_CPU_RST)

mitchjs
Posts: 9
Joined: Fri Jun 01, 2018 3:02 pm

ESP32-s3-wroom random reboot: rst:0xc (RTC_SW_CPU_RST)

Postby mitchjs » Wed Jul 27, 2022 4:44 am

code that was working just fine in ESP32-WROOM
is not working 100% correctly in ESP32-S3-WROOM

IDF 4.4
logging via USB/JTAG

randomly get a restart:

ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0xa (SPI_FAST_FLASH_BOOT)
Saved PC:0x40375b28
0x40375b28: esp_restart_noos at C:/Users/mitchjs/esp-v44x/esp-idf/components/esp_system/port/soc/esp32s3/system_internal.c:143 (discriminator 1)

area of code works most of the time, then sometimes the restart
(it happens way too much)

any ideas?

mitch

ESP_Sprite
Posts: 9757
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32-s3-wroom random reboot: rst:0xc (RTC_SW_CPU_RST)

Postby ESP_Sprite » Wed Jul 27, 2022 6:50 am

The fact that the last PC is at a reboot routine indicates that this is likely a crash rather than a sudden restart. The only advise I have is to select USB-JTAG as the *primary* console in menuconfig if you haven't yet (by default it's the secondary console); that should give you a proper crash dump.

mitchjs
Posts: 9
Joined: Fri Jun 01, 2018 3:02 pm

Re: ESP32-s3-wroom random reboot: rst:0xc (RTC_SW_CPU_RST)

Postby mitchjs » Wed Jul 27, 2022 7:27 am

bingo.. console setting... made usb/jtag the primary
now i got useful message, the usual stack overflow in a task :)

thanks for your help!

ESP_Sprite
Posts: 9757
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32-s3-wroom random reboot: rst:0xc (RTC_SW_CPU_RST)

Postby ESP_Sprite » Wed Jul 27, 2022 9:29 am

Glad you found the cause!

Who is online

Users browsing this forum: No registered users and 282 guests