首先清除主板数据,这里我以 COM3 为例,后续的所有 COM 口请自行修改为你系统中实际的 COM 口:
esptool.py --port COM3 erase_flash
输出如下所示,就是清除完毕了。
esptool.py v4.5.1
Serial port COM3
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: e8:db:84:94:ef:e9
Uploading stub...
Running stub...
Stub running...
Erasing flash (this may take a while)...
Chip erase completed successfully in 12.1s
Hard resetting via RTS pin...
esptool.py v4.5.1
Serial port COM3
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: e8:db:84:94:ef:e9
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00000fff...
Flash will be erased from 0x00001000 to 0x00001fff...
Flash will be erased from 0x00002000 to 0x0006dfff...
Flash params set to 0x0320
Compressed 3104 bytes to 2169...
Wrote 3104 bytes (2169 compressed) at 0x00000000 in 0.2 seconds (effective 103.5 kbit/s)...
Hash of data verified.
Compressed 2048 bytes to 23...
Wrote 2048 bytes (23 compressed) at 0x00001000 in 0.0 seconds (effective 327.7 kbit/s)...
Hash of data verified.
Compressed 438528 bytes to 316404...
Wrote 438528 bytes (316404 compressed) at 0x00002000 in 28.1 seconds (effective 124.9 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...