I have a “working” device. I suppose if I’m afraid of losing it I should not overwrite it. But is it possible to read an existing firmware and write it to a .bin file?
Do you have the yaml file used to build the device?
1 Like
You can use esphome compile [filename.yaml]
to output the compiled firmware files. Then just save those files for whatever future disaster you are worried about.
3 Likes
True - which is why I asked if they had the yaml. If you don’t have it, you can use esptool to download the firmware off the device.
1 Like
Connecting device to PC with Python+esptool installed - by using smth like this:
esptool --baud 115200 --port COM<X> read_flash 0x00000 0x100000 1Mb.bin
esptool --baud 115200 --port COM<X> read_flash 0x00000 0x400000 4Mb.bin