flash read err, 1000

imtiaz
Posts: 106
Joined: Wed Oct 26, 2016 1:34 am

flash read err, 1000

Postby imtiaz » Sun Feb 26, 2017 10:09 pm

Hi ,

My esp32 module has started throwing this error :

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)<\r><\n>
flash read err, 1000<\r><\n>
Falling back to built-in command interpreter.<\r><\n>
OK<\r><\n>
>ets Jun 8 2016 00:22:57<\r><\n>

Nothing connected to any of the special pins - the unit is just powered via the usb connector.

It just so happened that it only happened after I erased the whole flash using the "make erase_flash" and loaded the default no ota partition table. Before that it was working fine.

Is this h/w failure ? Ive tried various things like "make clean" "make erase_flash flash" etc

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: flash read err, 1000

Postby WiFive » Sun Feb 26, 2017 11:05 pm

Not set to QIO mode by mistake? Didn't enable flash encryption by mistake? Nothing connected to gpio 6-12?

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: flash read err, 1000

Postby ESP_Angus » Sun Feb 26, 2017 11:37 pm

To add to WiFive's comment, this error implies that the ROM bootloader can't find the software bootloader at offset 0x1000.

This should be fixed via "make flash". The only time it won't is if flash encryption is accidentally enabled, or if secure boot is enabled (because this option means "make flash" won't flash the bootloader).

What's the full output of "make flash" when you run this? Do you see the bootloader being flashed at offset 0x1000?

It could also imply a power problem, if the SPI flash chip is browning out (either because MTDI pin has selected 1.8V mode, or because the 3.3V rail is drooping.)


Angus

imtiaz
Posts: 106
Joined: Wed Oct 26, 2016 1:34 am

Re: flash read err, 1000

Postby imtiaz » Mon Feb 27, 2017 1:55 am

Thanks,

Attached is the make output - dont see anything going in at 0x1000 , but I have changed anything in my menuconfig ... what should I be looking for - How is the encryption enabled?
Flashing binaries to serial port COM3 (app at offset 0x10000)...
esptool.py v2.0-beta1
Connecting....
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Attaching SPI flash...
Configuring flash size...
Auto-detected Flash size: 4MB
Wrote 524288 bytes at 0x00010000 in 8.3 seconds (505.4 kbit/s)...
Hash of data verified.
Wrote 16384 bytes at 0x00008000 in 0.2 seconds (548.4 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting...

imtiaz
Posts: 106
Joined: Wed Oct 26, 2016 1:34 am

Re: flash read err, 1000

Postby imtiaz » Mon Feb 27, 2017 2:00 am

Im really sorry to waste your time , I know whats happening. I deleted the bootloader component from IDF and had it in my own project. But not in a different project .....

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: flash read err, 1000

Postby ESP_Angus » Mon Feb 27, 2017 4:27 am

imtiaz wrote:Im really sorry to waste your time , I know whats happening. I deleted the bootloader component from IDF and had it in my own project. But not in a different project .....
OK, glad you figured that out!

For the record, you shouldn't need to delete the bootloader component inside IDF. If a component of the same name exists in the components directory of the project, it will override the one in IDF. (At least, this is the design - if you're finding that you have to delete the old component then this is a bug.)

Angus

imtiaz
Posts: 106
Joined: Wed Oct 26, 2016 1:34 am

Re: flash read err, 1000

Postby imtiaz » Mon Feb 27, 2017 7:00 pm

Hi Angus ,

No the component override works perfectly - I just deleted it to test .

Thanks
Imtiaz

etrousset
Posts: 1
Joined: Tue Apr 18, 2017 3:03 pm

Re: flash read err, 1000

Postby etrousset » Tue Apr 18, 2017 3:07 pm

Hi,

I experiment the same issue.Using idf v2.0 with a WROOM-32 module.

Here are the logs when waking up from deep sleep:

Code: Select all

Going to DEEP_SLEEP, good night
D (10746) deepsleep: RTC_PERIPH: ON, RTC_SLOW_MEM: ON, RTC_FAST_MEM: ON
ets Jun  8 2016 00:22:57

rst:0x5 (DEEPSLEEP_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
Falling back to built-in command interpreter.
OK
>ets Jun  8 2016 00:22:57

rst:0x7 (TG0WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0x00
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0008,len:8
load:0x3fff0010,len:4836
load:0x40078000,len:8648
load:0x40080000,len:252
entry 0x40080034
I (44) boot: ESP-IDF v2.0 2nd stage bootloader
I (45) boot: compile time 16:51:38
I (45) boot: Enabling RNG early entropy source...
D (61) esp_image: reading image header @ 0x1000
D (75) bootloader_flash: mmu set block paddr=0x00000000 (was 0xffffffff)
D (96) boot: magic e9
D (103) boot: segments 04
D (111) boot: spi_mode 02
D (119) boot: spi_speed 00
D (128) boot: spi_size 02
I (136) boot: SPI Speed      : 40MHz
I (149) boot: SPI Mode       : DIO
I (162) boot: SPI Flash Size : 4MB
D (174) bootloader_flash: mmu set paddr=00000000 count=1
D (191) boot: mapped partition table 0x8000 at 0x3f408000
D (208) flash_parts: partition table verified, 3 entries
I (224) boot: Partition Table:
I have a data set to RTC memory, and it gets reinit each time the device is woke up...

I checked, and I don't have encryption activated...

Any idea on how to fix this issue?

Cheers,
Eric T.

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: flash read err, 1000

Postby ESP_igrr » Wed Apr 19, 2017 1:22 am

Try setting "Extra delay in deep sleep wake stub" option in menuconfig (under Component config > ESP32 specific) to some higher value, like 500us.

Who is online

Users browsing this forum: No registered users and 107 guests