Page 1 of 1

backup / restore some time KO [updated]

Posted: Sun Oct 17, 2021 6:38 am
by picpic020961
Bonjour ,
I use in test of micropython , lvgl and firmware

Code: Select all

esptool.py --chip esp32 --port /dev/ttyUSB0 read_flash 0 0x400000 orig_image.bin

for backup esp32 firmware , then erase_flash , then

Code: Select all

esptool.py --chip esp32 --port /dev/ttyUSB0 write_flash 0 other_image.bin

for restrore other_image.bin, works fine.

then return to orig_image.bin : erase_flash and

Code: Select all

esptool.py --chip esp32 --port /dev/ttyUSB0 write_flash 0 orig_image.bin
At restart ESP32 some time it's OK some time KO : memory corrupted.

one trick i am missing ? Am I missing something?
Thanks for help