-->
Page 1 of 1

possible to copy 8266 flash to PC's disk?

PostPosted: Thu May 25, 2017 6:22 pm
by uncle4
(I'm loathe to use the words 'upload' or 'download' as they
seem to mean different things to different people here)

I'd like to do inverse of "esptool.py write_flash" to get
the working code OUT of a 8266 and save it to a .BIN
file on a host computer so that I could later write the BIN
file to (other) 8266s.

I fiddled with "esptool.py read_flash....." but couldn't find the
magical incantation that works.

Has anyone done this? Or is there a link/doc you can point me
to to accomplish this?

THANKS!

Re: possible to copy 8266 flash to PC's disk?

PostPosted: Fri May 26, 2017 8:57 am
by martinayotte
Code: Select allesptool.py --port /dev/ttyUSB0 read_flash 0 4194304 filename.bin

Where 0 is the start address and 4194304 is the size of the flash, here for a 4MB.

Re: possible to copy 8266 flash to PC's disk?

PostPosted: Tue Nov 07, 2017 12:47 am
by RonEskinder
If you copy the .bin file to a pc, is there a way to get the code that is inside the esp8266? I need to get the whole script uploaded to a esp8266, i lost the original file.