Page 1 of 2

Is flash read err, 1000 normal behavior?

Posted: Fri Oct 25, 2019 5:06 pm
by jsam589
I have two different products and both show the following messages when I reset them using a reset button that pulls EN low. I am sure bootloader is programmed (programming step showed success on that). My application seems to run okay, but I would like to understand if this RTC WDT is normal.

Code: Select all

ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371 
ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
If the reset is caused by RTS/DTR via the programming cable (e.g. idf.py monitor), the RTC WDT message does not occur. I get this:

Code: Select all

ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
I would expect both methods to be equivalent.
Can someone explain why the difference?

One of the boards is Sparkfun Thing Plus ESP32 with a reset circuit involving RTS/DTR, schematic here:
https://cdn.sparkfun.com/assets/learn_t ... ematic.pdf

Re: Is flash read err, 1000 normal behavior?

Posted: Sat Oct 26, 2019 2:53 am
by WiFive
The duration EN is held low with button vs reset circuit will determine how long the flash power supply is turned off. If the flash has a long startup time it could cause the error. As long as it boots on the second try it shouldn't cause a problem. It is interesting that official espressif modules would use flash that doesn't meet the default startup times.

Re: Is flash read err, 1000 normal behavior?

Posted: Sun Oct 27, 2019 11:31 am
by Ritesh
jsam589 wrote:
Fri Oct 25, 2019 5:06 pm
I have two different products and both show the following messages when I reset them using a reset button that pulls EN low. I am sure bootloader is programmed (programming step showed success on that). My application seems to run okay, but I would like to understand if this RTC WDT is normal.

Code: Select all

ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371 
ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
If the reset is caused by RTS/DTR via the programming cable (e.g. idf.py monitor), the RTC WDT message does not occur. I get this:

Code: Select all

ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
I would expect both methods to be equivalent.
Can someone explain why the difference?

One of the boards is Sparkfun Thing Plus ESP32 with a reset circuit involving RTS/DTR, schematic here:
https://cdn.sparkfun.com/assets/learn_t ... ematic.pdf

Hello,

Which ESP32 module you are using? Default 4 MB Flash Memory module or extended 16 MB Flash Memory Module?

Because we have also faced same type of issue and also checked with Espressif Team so they agreed to have some issues into 16 MB Flash Memory which has been attached to expand flash memory.

If possible then check directly with Espressif Sales Team as well to get clarification and confirmation for same.

Re: Is flash read err, 1000 normal behavior?

Posted: Thu Dec 03, 2020 1:44 pm
by Kashyapkoshti
rst:0x10 (RTCWDT_RTC_RESET),boot:0x1f (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371

I am getting this error whenever I boot my devkitv1 board. I am getting this error in the serial terminal of Arduino IDE.
Help me.

Re: Is flash read err, 1000 normal behavior?

Posted: Thu Dec 03, 2020 2:01 pm
by chegewara

Re: Is flash read err, 1000 normal behavior?

Posted: Thu Dec 03, 2020 2:04 pm
by Kashyapkoshti
but the reset error code of 0x1f does not match with any pins

Re: Is flash read err, 1000 normal behavior?

Posted: Thu Dec 03, 2020 2:15 pm
by chegewara
https://github.com/espressif/esptool/wi ... de-message
rst:0xNN (REASON)
rst:0x10 (RTCWDT_RTC_RESET)
There isn't actually a bootloader at offset 0x1000 (maybe the bootloader was flashed to the wrong offset by mistake, or the flash has been erased and no bootloader has been flashed yet.)

Re: Is flash read err, 1000 normal behavior?

Posted: Thu Dec 03, 2020 2:24 pm
by Kashyapkoshti
i have tried several things.
first i put 4.7uf capacitor to the en pin of the board. then i pull down the gpio2 pin of the board. but nothing seems to work

Re: Is flash read err, 1000 normal behavior?

Posted: Thu Dec 03, 2020 2:26 pm
by Kashyapkoshti
i read about error code reference on some website but err:0x10 and wdt reset does not match, and none of the other google searches have 0x1f in boot mode

Re: Is flash read err, 1000 normal behavior?

Posted: Thu Dec 03, 2020 2:43 pm
by chegewara
Did you try to flash simplest code, just empty arduino sketch or with serial print in loop?