Chat freely about anything...

User avatar
By amadeus84
#34002
Mario Mikočević wrote:I've dumped my NodeMCU hw modules with -

# esptool.py --port /dev/ttyUSB0 --baud 115200 read_flash 0x00000 0x400000 nodemcu-1.0.bin

--
Mozz


Thanks for the reply?

Does the size have to be in hex? Can I say 4194304? Based on your example I recon your module has 4Mb. If mine has 1Mb, I would use size = 0x100000, correct?

Can I fry the module if I try to read more than max size?
User avatar
By martinayotte
#34004 esptool.py support both hex/decimal.
Yes, 0x100000 is the value for 1MB.
Reading past the end of Flash won't fry anything, but I'm not sure how it will react since I've never tried, it will either freeze, or return a duplicate of the first half, or return random or 0x00 or 0xFF.
But if you do so, beware that your backup will be useless since you won't be able to upload back a file bigger than expected since it won't be able to write the upper values.