Sao lưu & Khôi phục firmware ESP8266/ESP32

Anhdt
Download Esptool: https://github.com/espressif/esptool/releases

1. Xác định kích thước bộ nhớ flash:

# thay COM5 bằng port thiết bị của bạn.
esptool -p COM5 flash-id
2. Sao lưu Firmware:

esptool -p COM5 read-flash 0x0 0x400000 backup_4MB.bin

# 0x0 → địa chỉ bắt đầu từ 0
# 0x400000 → số byte cần đọc (4MB = 4 × 1024 × 1024 = 0x400000)
# Nếu là 8MB thì thay 0x800000, nếu 16MB thì 0x1000000
3. Xóa chip:

esptool -p COM5 erase-flash
3. Khôi phục firmware:

esptool -p COM5 write-flash 0x0 backup_4MB.bin

Ngoài ra còn một số lệnh cơ bản khác, hãy dùng lệnh sau để xem chi tiết:

esptool
# hoặc
esptool -h

Post a Comment

Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.