How to Flash BackUp after using Read. BackUp BIN doesn't fit.
Posted: Tue Apr 30, 2024 10:33 am
Hello All
Please assist.
Interestingly My esptool used to use esptool.py but after I did an Erase it now only works with esptool (NO .py) see below
My main problem is after I load a bin file (update1 = 376kB) to ESP32-EVB board using write_flash and then I back up using read_flash. I then try rewriting the backup. I get a fatal error?
C:\>esptool --port COM6 write_flash 0x1000 C:\ESPTOOL\Programs\Axpert\update1.bin
esptool.py v4.7.0
Serial port COM6
Connecting.....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting....
Detecting chip type... ESP32
Chip is ESP32-D0WD-V3 (revision v3.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 08:3a:f2:3b:0f:7c
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Flash will be erased from 0x00001000 to 0x0005efff...
Compressed 384368 bytes to 172635...
Wrote 384368 bytes (172635 compressed) at 0x00001000 in 15.4 seconds (effective 200.3 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
I then read and save it to C:\ESPTOOL\Programs\RoyTestUpdate1.bin and it's size is 4096kB
C:\>esptool -p COM6 -b 115200 read_flash 0 ALL C:\ESPTOOL\Programs\Uploads\RoyTestUpdate1.bin
esptool.py v4.7.0
Serial port COM6
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting....
Detecting chip type... ESP32
Chip is ESP32-D0WD-V3 (revision v3.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 08:3a:f2:3b:0f:7c
Uploading stub...
Running stub...
Stub running...
Detected flash size: 4MB
4194304 (100 %)
4194304 (100 %)
Read 4194304 bytes at 0x00000000 in 378.1 seconds (88.8 kbit/s)...
Hard resetting via RTS pin...
Now I try to back up this bin back to the ESP32 and I get this message?
C:\>esptool --port COM6 write_flash 0x1000 C:\ESPTOOL\Programs\Uploads\RoyTestUpdate1.bin
esptool.py v4.7.0
Serial port COM6
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting....
Detecting chip type... ESP32
Chip is ESP32-D0WD-V3 (revision v3.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 08:3a:f2:3b:0f:7c
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
A fatal error occurred: File C:\ESPTOOL\Programs\Uploads\RoyTestUpdate1.bin (length 4194304) at offset 4096 will not fit in 4194304 bytes of flash. Use --flash_size argument, or change flashing address.
Please assist.
Interestingly My esptool used to use esptool.py but after I did an Erase it now only works with esptool (NO .py) see below
My main problem is after I load a bin file (update1 = 376kB) to ESP32-EVB board using write_flash and then I back up using read_flash. I then try rewriting the backup. I get a fatal error?
C:\>esptool --port COM6 write_flash 0x1000 C:\ESPTOOL\Programs\Axpert\update1.bin
esptool.py v4.7.0
Serial port COM6
Connecting.....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting....
Detecting chip type... ESP32
Chip is ESP32-D0WD-V3 (revision v3.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 08:3a:f2:3b:0f:7c
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Flash will be erased from 0x00001000 to 0x0005efff...
Compressed 384368 bytes to 172635...
Wrote 384368 bytes (172635 compressed) at 0x00001000 in 15.4 seconds (effective 200.3 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
I then read and save it to C:\ESPTOOL\Programs\RoyTestUpdate1.bin and it's size is 4096kB
C:\>esptool -p COM6 -b 115200 read_flash 0 ALL C:\ESPTOOL\Programs\Uploads\RoyTestUpdate1.bin
esptool.py v4.7.0
Serial port COM6
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting....
Detecting chip type... ESP32
Chip is ESP32-D0WD-V3 (revision v3.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 08:3a:f2:3b:0f:7c
Uploading stub...
Running stub...
Stub running...
Detected flash size: 4MB
4194304 (100 %)
4194304 (100 %)
Read 4194304 bytes at 0x00000000 in 378.1 seconds (88.8 kbit/s)...
Hard resetting via RTS pin...
Now I try to back up this bin back to the ESP32 and I get this message?
C:\>esptool --port COM6 write_flash 0x1000 C:\ESPTOOL\Programs\Uploads\RoyTestUpdate1.bin
esptool.py v4.7.0
Serial port COM6
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting....
Detecting chip type... ESP32
Chip is ESP32-D0WD-V3 (revision v3.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 08:3a:f2:3b:0f:7c
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
A fatal error occurred: File C:\ESPTOOL\Programs\Uploads\RoyTestUpdate1.bin (length 4194304) at offset 4096 will not fit in 4194304 bytes of flash. Use --flash_size argument, or change flashing address.