Skip to content

Instantly share code, notes, and snippets.

@GluTbl
Created March 2, 2021 05:06
Show Gist options
  • Save GluTbl/831e37d1f2d6c0e9ef127eb6fc8c551a to your computer and use it in GitHub Desktop.
Save GluTbl/831e37d1f2d6c0e9ef127eb6fc8c551a to your computer and use it in GitHub Desktop.
[Esptool]

Source : https://cyberblogspot.com/how-to-save-and-restore-esp8266-and-esp32-firmware/

  1. Gathering the Board’s Info esptool.py flash_id

  2. Save 1MByte or 8Mbit Flash esptool.py --baud 115200 --port COM8 read_flash 0x0 0x100000 fw-backup-1M.bin

  3. Save 4MByte or 32Mbit Flash esptool.py --baud 115200 --port COM8 read_flash 0x0 0x400000 fw-backup-4M.bin

  4. Restore 1MByte or 8Mbit Flash esptool.py --baud 115200 --port COM8 write_flash 0x0 fw-backup-1M.bin

  5. Restore 4MByte or 32Mbit Flash esptool.py --baud 115200 --port COM8 write_flash 0x0 fw-backup-4M.bin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment