ESP32 unable to execute uploaded program

Kevintan1998
Posts: 6
Joined: Mon Jun 01, 2020 2:37 am

ESP32 unable to execute uploaded program

Postby Kevintan1998 » Mon Jun 01, 2020 2:44 am

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.

Agree007
Posts: 103
Joined: Mon Sep 18, 2017 7:11 pm
Location: Copenhagen

Re: ESP32 unable to execute uploaded program

Postby Agree007 » Mon Jun 01, 2020 7:16 am

Please share you code and name/model of you esp32 module ?

It looks like a memory or watchdog issue.

Kevintan1998
Posts: 6
Joined: Mon Jun 01, 2020 2:37 am

Re: ESP32 unable to execute uploaded program

Postby Kevintan1998 » Tue Jun 02, 2020 2:14 am

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.

pipi61
Posts: 60
Joined: Fri Dec 23, 2016 10:58 pm

Re: ESP32 unable to execute uploaded program

Postby pipi61 » Tue Jun 02, 2020 11:25 am

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


}


Kevintan1998
Posts: 6
Joined: Mon Jun 01, 2020 2:37 am

Re: ESP32 unable to execute uploaded program

Postby Kevintan1998 » Wed Jun 03, 2020 2:10 am

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?

lbernstone
Posts: 827
Joined: Mon Jul 22, 2019 3:20 pm

Re: ESP32 unable to execute uploaded program

Postby lbernstone » Wed Jun 03, 2020 3:40 pm

Hold down gpio0, then press the reset button. This will put it into download mode.
Now you can flash or erase.

Kevintan1998
Posts: 6
Joined: Mon Jun 01, 2020 2:37 am

Re: ESP32 unable to execute uploaded program

Postby Kevintan1998 » Thu Jun 04, 2020 2:09 am

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?

chegewara
Posts: 2364
Joined: Wed Jun 14, 2017 9:00 pm

Re: ESP32 unable to execute uploaded program

Postby chegewara » Thu Jun 04, 2020 6:51 am

It means that flash memory is erased, nothing to run.

Kevintan1998
Posts: 6
Joined: Mon Jun 01, 2020 2:37 am

Re: ESP32 unable to execute uploaded program

Postby Kevintan1998 » Mon Jun 08, 2020 2:37 am

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?

Who is online

Users browsing this forum: No registered users and 99 guests