Page 1 of 2

ESP32 unable to execute uploaded program

Posted: Mon Jun 01, 2020 2:44 am
by Kevintan1998
Hello,

I have been working on a project using the ESP32 module for a while, but recently I discover my module is behaving abnormally. Whenever I upload codes to the module, it would not execute the program but only display the below message in the serial monitor:

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:DOUT, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5816
entry 0x400806ac
ets Jun  8 2016 00:22:57
Can I know the meaning of this message and if possible, the method the fix it. By the way, I am programming the module using the Arduino IDE software. The model I am using is ESP32 Node32S.

Re: ESP32 unable to execute uploaded program

Posted: Mon Jun 01, 2020 7:16 am
by Agree007
Please share you code and name/model of you esp32 module ?

It looks like a memory or watchdog issue.

Re: ESP32 unable to execute uploaded program

Posted: Tue Jun 02, 2020 2:14 am
by Kevintan1998
The model that I use is ESP32 Node32S and this is the code I am currently using it to test my module:

Code: Select all

#define ONBOARD_LED 2 
//const int led2Pin = 19;

void setup() {
  Serial.begin(115200);
  pinMode(ONBOARD_LED,OUTPUT);
}

void loop() {
  digitalWrite(ONBOARD_LED,HIGH);
 
}
It is a simple code used to blink the onboard LED, although it is not working right now. For additional information, previously the module can run longer programs. The problem I mentioned at first appeared after the module suddenly heat up for a while. Programs can be uploaded but cannot successfully execute.

Re: ESP32 unable to execute uploaded program

Posted: Tue Jun 02, 2020 11:25 am
by pipi61
This not a blink.
try, and check serial console:
void loop() {
Serial.print(".");
digitalWrite(ONBOARD_LED,HIGH);
delay (1000);
digitalWrite(ONBOARD_LED,LOW);
delay (1000);


}

Re: ESP32 unable to execute uploaded program

Posted: Tue Jun 02, 2020 11:34 am
by chegewara

Re: ESP32 unable to execute uploaded program

Posted: Wed Jun 03, 2020 2:10 am
by Kevintan1998
I tried both pipi61 and chegewara recommendation, but it seems the device is still in the same condition. I even try to erase the flash memory but the method is not working. Since the module is returning responses, I assume it can still be fixed?

Re: ESP32 unable to execute uploaded program

Posted: Wed Jun 03, 2020 3:40 pm
by lbernstone
Hold down gpio0, then press the reset button. This will put it into download mode.
Now you can flash or erase.

Re: ESP32 unable to execute uploaded program

Posted: Thu Jun 04, 2020 2:09 am
by Kevintan1998
I tried lbernstone method. By forcing it into the download mode, I proceed to erase the flash. Now I am getting a new error response:

Code: Select all

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371 
ets Jun  8 2016 00:22:57
Just what is the meaning of this new error message?

Re: ESP32 unable to execute uploaded program

Posted: Thu Jun 04, 2020 6:51 am
by chegewara
It means that flash memory is erased, nothing to run.

Re: ESP32 unable to execute uploaded program

Posted: Mon Jun 08, 2020 2:37 am
by Kevintan1998
I try to upload any program to the board, but it still produces the same response. I assume to damage of the board is beyond repair?