nodemcu-pyflasher
nodemcu-pyflasher copied to clipboard
Add backup option
hi.. there is a way to add a backup option ?
According to these instructions esptool
has a read_flash instruction that could be used for a backup option
# back up 1MB image
esptool.py --port COM5 read_flash 0x00000 0x100000 image1M.bin
# back up 4MB image
esptool.py --port COM5 read_flash 0x00000 0x400000 image4M.bin
so it should be possible, in main.py
to add a second click button called backup First
and get this to run one or both of the commands above. You might presume the location to save to from the location of the firmware file chosen with the Browse
button.
This was designed as a single-purpuse app (kind of) - simplicity is key. There has to be a lot of convincing demand from the community until I consider adding more options and features. I'll keep this open for now, though.
Hi all. Yes, this will be a great feature for this tool. It is a question of security first. Backup the actual firmware before flashing a new one seems to be a necessary option.
Yes please, backup would be a safer way forward in case of issues with an unproven device.
Note to self: if we'll add this then it has to be done in a way that does not clutter the GUI even more; at most a simple "Backup yes/no" switch like with the erase flash option. Backup destination will be the OS/profile temp dir.