Encountering error: rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)

declanshanaghy
Posts: 3
Joined: Tue Mar 24, 2020 3:02 pm

Encountering error: rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)

Postby declanshanaghy » Tue Mar 24, 2020 3:32 pm

I compiled an ESPHome binary and uploaded to this device using esptool.py:
https://www.banggood.com/LILYGO-TTGO-T- ... rehouse=CN

The command I used was:

Code: Select all

esptool.py -p /dev/cu.SLAB_USBtoUART write_flash -z 0x1000 ttgocam.bin
It uploaded without error

Code: Select all

esptool.py v2.8
Serial port /dev/cu.SLAB_USBtoUART
Connecting......
Detecting chip type... ESP32
Chip is ESP32D0WDQ5 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 30:ae:a4:dc:c9:c0
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 1092848 bytes to 592236...
Wrote 1092848 bytes (592236 compressed) at 0x00001000 in 52.1 seconds (effective 167.8 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
It didn't start up and after quite a while trying to figure out what might have gone wrong I realized I probably shouldn't have loaded the binary at 0x1000 so i repeated the procedure using 0x0000. Still it didn't boot up.

Upon examining the serial output I see this...

Code: Select all

rst:0x10 (RTCWDT_RTC_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:0x3f400020,len:277444
ets Jun  8 2016 00:22:57

REPEATS...
When searching for this error, most solutions suggest erasing the flash and re-flashing. I did that multiple times, to no avail.
Any suggestions on how to proceed?

warren
Posts: 15
Joined: Thu May 02, 2019 3:16 pm

Re: Encountering error: rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)

Postby warren » Tue Mar 24, 2020 7:08 pm

Well, it looks like you need to perform some debugging to narrow down the cause of the problem. The source code seems to be available here https://github.com/Xinyuan-LilyGO/esp32 ... series.ino, so download it and load it up into your Arduino IDE.

Start adding Serial.print* statements starting with the setup() routine. Basic troubleshooting-- narrow down which portion that the code falls apart in. Does it even get started, is a good place to begin.

Code: Select all

void setup()
{

    Serial.begin(115200);
    Serial.setDebugOutput(true);
    Serial.println();
    Serial.println("Program begun!");
Keep adding prints where you need to confirm it has run (or not). Not all published code is guaranteed to work or handle all configurations. Good luck.

declanshanaghy
Posts: 3
Joined: Tue Mar 24, 2020 3:02 pm

Re: Encountering error: rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)

Postby declanshanaghy » Tue Mar 24, 2020 10:20 pm

Hey, nice find. I hadn't thought to look for the original source.

The bin file i uploaded is a binary I compiled with ESPHome.
Will give your suggestion a try and see how it goes though

Come to think of it, i should try reverting to the firmware backup I made and see if that works now.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Encountering error: rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)

Postby WiFive » Wed Mar 25, 2020 5:32 am

You need bootloader, partition table, and firmware

declanshanaghy
Posts: 3
Joined: Tue Mar 24, 2020 3:02 pm

Re: Encountering error: rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)

Postby declanshanaghy » Wed Mar 25, 2020 2:11 pm

I reverted to the original firmware using NodeMCUPyFlasher and it worked just fine.
Then just for shits 'n' giggles I decided to try out ESPHomeFlasher to upload my ESPHome binary and it worked!

I had originally uploaded with Tasmotizer and esptool.py to no avail. Tasmotizer has worked for me in the past to upload ESPHome binaries to ESP8266 devices. Something different with the ESP32, I suspect.

Seems like ESPHomeFlasher provides it's own bootloader and partition table maybe?

I realize this isn't the exact right forum, but if anyone can shed some light on the subtle differences for me it would be really helpful.

Thanks for the help.
Dek

marcelstoer
Posts: 11
Joined: Sun Aug 23, 2020 8:09 pm

Re: Encountering error: rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)

Postby marcelstoer » Sun Aug 23, 2020 8:17 pm

NodeMCU PyFlasher here.

The NodeMCU PyFlasher expects a combined/aggregated binary that it flashes at 0x0. Hence, that binary must contain bootloader, partition table, and firmware all in one at the correct addresses. It was originally created to conveniently flash NodeMCU firmware binaries that usually come in aggregated form.

Lots of projects forked the PyFlasher project and tweaked it for their needs. Please make sure the binary that you upload is an aggregated all-in-one binary.

Super_TOB
Posts: 1
Joined: Fri Aug 04, 2023 10:28 pm

Re: Encountering error: rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)

Postby Super_TOB » Fri Aug 04, 2023 10:41 pm

try: idf.py build and run 'idf.py -p (PORT) flash'

This "rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)" problem usually occurs when you use "idf.py -p (PORT) erase-flash" and then try to burn using " idf.py -p (PORT) app-flash" . To fix this problem use "idf.py build" to build the bootloader.

Who is online

Users browsing this forum: ESP_Sissi, Google [Bot] and 101 guests