ESP-32 keeps resetting

stnmane
Posts: 6
Joined: Sun Jan 22, 2023 3:51 am

ESP-32 keeps resetting

Postby stnmane » Sun Jan 22, 2023 4:05 am

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).

User avatar
mbratch
Posts: 303
Joined: Fri Jun 11, 2021 1:51 pm

Re: ESP-32 keeps resetting

Postby mbratch » Mon Jan 23, 2023 3:49 pm

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?

stnmane
Posts: 6
Joined: Sun Jan 22, 2023 3:51 am

Re: ESP-32 keeps resetting

Postby stnmane » Mon Jan 23, 2023 7:24 pm

Hello.

Yes the code was working.

stnmane
Posts: 6
Joined: Sun Jan 22, 2023 3:51 am

Re: ESP-32 keeps resetting

Postby stnmane » Tue Jan 24, 2023 12:35 am

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.

User avatar
mbratch
Posts: 303
Joined: Fri Jun 11, 2021 1:51 pm

Re: ESP-32 keeps resetting

Postby mbratch » Thu Jan 26, 2023 12:19 pm

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?

filo_gr
Posts: 110
Joined: Wed Jul 28, 2021 12:25 pm
Location: Italy

Re: ESP-32 keeps resetting

Postby filo_gr » Thu Jan 26, 2023 12:53 pm

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.
Filippo

Seeker
Posts: 7
Joined: Fri Nov 12, 2021 5:32 pm

Re: ESP-32 keeps resetting

Postby Seeker » Thu Jan 26, 2023 2:09 pm

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.

bidrohini
Posts: 202
Joined: Thu Oct 27, 2022 12:55 pm

Re: ESP-32 keeps resetting

Postby bidrohini » Thu Jan 26, 2023 3:36 pm


stnmane
Posts: 6
Joined: Sun Jan 22, 2023 3:51 am

Re: ESP-32 keeps resetting

Postby stnmane » Thu Jan 26, 2023 7:26 pm

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

mgsecord62
Posts: 20
Joined: Thu Nov 02, 2017 12:40 am

Re: ESP-32 keeps resetting

Postby mgsecord62 » Thu Jan 26, 2023 8:24 pm

Have you tried a different esp32-wroom-32d module?

Who is online

Users browsing this forum: No registered users and 259 guests