Page 1 of 2

ESP-32 keeps resetting

Posted: Sun Jan 22, 2023 4:05 am
by stnmane
Hello everyone

I have a esp32-wroom-32d module that ive been using and programming using ESP-IDF.
Today during a power up, the device stopped working and kept resetting. The error code is the following:
  1. rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
  2. configsip: 0, SPIWP:0xee
  3. clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
  4. mode:DIO, clock div:2
  5. load:0x3fff0030,len:6992
  6. load:0x40078000,len:15452
  7. load:0x40080400,len:3840
  8. 0x40080400: _init at ??:?
  9.  
  10. entry 0x4008064c
  11. ets Jun  8 2016 00:22:57
Things ive tryed during troubleshooting:
- 3v3 source check using an oscilloscope
- WDT disable during boot
- Flash frequency change
- Flash erase and reflash using the esp tool, writing the app, partition table and bootloader to the appropriate places
- App and bootloader flash using arduino IDE

There were certanly other tests but i cant even remember now.

The error that i posted before happened once or twice during the throubleshooting. The most common thing was even worse because the terminal data was unreadable (like when the uart baud is missconfigured. That behaviour was the most common).

Re: ESP-32 keeps resetting

Posted: Mon Jan 23, 2023 3:49 pm
by mbratch
stnmane wrote:
Sun Jan 22, 2023 4:05 am
I have a esp32-wroom-32d module that ive been using and programming using ESP-IDF.
Today during a power up, the device stopped working and kept resetting. The error code is the following:
Was the identical code working previously? Or was anything changed prior to this error appearing?

Re: ESP-32 keeps resetting

Posted: Mon Jan 23, 2023 7:24 pm
by stnmane
Hello.

Yes the code was working.

Re: ESP-32 keeps resetting

Posted: Tue Jan 24, 2023 12:35 am
by stnmane
Just to add some more information there were a few reflashes of the ESP32 but no changes in functionality. The things that were altered was data inside a buffer that was transmitted through SPI.

Im using HSPI with MISO on 33, MOSI on 13 and CLK on 14. To select the devices im using the ios 12, 25, 26 and 27. I took care to place a pulldown on IO12 as is a strapping pin.

Re: ESP-32 keeps resetting

Posted: Thu Jan 26, 2023 12:19 pm
by mbratch
stnmane wrote:
Tue Jan 24, 2023 12:35 am
The things that were altered was data inside a buffer that was transmitted through SPI.
Is that static data in a fixed buffer, or do you mean the code is writing different data (or a different amount of data) to a buffer?

Re: ESP-32 keeps resetting

Posted: Thu Jan 26, 2023 12:53 pm
by filo_gr
I don't know if I can be helpful, however I had similar problems in a project when I switched from a Flash frequency of 40MHz to 80MHz. ESP32 started resetting randomly even with simple code.
Try to remember if you changed something when you flash the chip.

Re: ESP-32 keeps resetting

Posted: Thu Jan 26, 2023 2:09 pm
by Seeker
When I've seen this issue it has always been caused by 'code run amuck', ie bad pointer, array out of bounds, trying to serial print a float as a char etc etc. Go back to KNOWN good code with KNOWN good data and troubleshoot forward.

Re: ESP-32 keeps resetting

Posted: Thu Jan 26, 2023 3:36 pm
by bidrohini

Re: ESP-32 keeps resetting

Posted: Thu Jan 26, 2023 7:26 pm
by stnmane
mbratch wrote:
Thu Jan 26, 2023 12:19 pm

Is that static data in a fixed buffer, or do you mean the code is writing different data (or a different amount of data) to a buffer?

Yes it is static data in a buffer that is read by the program and written in the spi bus.
filo_gr wrote: I don't know if I can be helpful, however I had similar problems in a project when I switched from a Flash frequency of 40MHz to 80MHz. ESP32 started resetting randomly even with simple code.
Try to remember if you changed something when you flash the chip.
There was no change in those settings previous to the error.
Seeker wrote: Go back to KNOWN good code with KNOWN good data and troubleshoot forward.
Yes, that was my 1st approach, i've uploaded a blink example and the problem continued

Re: ESP-32 keeps resetting

Posted: Thu Jan 26, 2023 8:24 pm
by mgsecord62
Have you tried a different esp32-wroom-32d module?