The old devices runs firmware built in 2019 and using SDK pre v3.1, v3.0.1 I think.
I have successfully read the full 4MB flash from an existing working device using latest esptool.py from master (v5.4).
I am trying to flash the complete 4MB image, as read from an old device, to an exact equivalent new device.
The image as read flashes successfully to the new device but does not boot.
esptool.py image_info reports:ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_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:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:5200
ho 0 tail 12 room 4
load:0x40078000,len:13412
load:0x40080400,len:3996
entry 0x40080648
)E\,GDDzi
I would have thought that reading 100% of the flash of a working device and rewriting that to a brand new device should absolutely work. I know the new device works, have tested it with newly build firmware.esptool.py v4.8.dev4
File size: 4194304 (bytes)
A fatal error occurred: This is not a valid image (invalid magic number: 0xff)
Any suggestions appreciated