idf.py 下载程序,MD5不匹配导致下载失败
Posted: Mon Mar 16, 2020 5:21 pm
sqw@ubuntu:~/esp/hello_world$ idf.py flash
Checking Python dependencies...
Python requirements from /home/sqw/esp/esp-idf-v4.0/requirements.txt are satisfied.
Adding flash's dependency "all" to list of actions
Executing action: all (aliases: build)
Running ninja in directory /home/sqw/esp/hello_world/build
Executing "ninja all"...
[1/3] Performing build step for 'bootloader'
ninja: no work to do.
Executing action: flash
Choosing default port b'/dev/ttyUSB0' (use '-p PORT' option to set a specific serial port)
Running esptool.py in directory /home/sqw/esp/hello_world/build
Executing "/usr/bin/python /home/sqw/esp/esp-idf-v4.0/components/esptool_py/esptool/esptool.py -p /dev/ttyUSB0 -b 460800 --before default_reset --after hard_reset write_flash @flash_project_args"...
esptool.py -p /dev/ttyUSB0 -b 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x10000 hello-world.bin
esptool.py v2.8
Serial port /dev/ttyUSB0
Connecting........__
Detecting chip type... ESP32
Chip is ESP32D0WDQ6 (revision 0)
Features: WiFi, BT, Dual Core, Coding Scheme None
Crystal is 40MHz
MAC: 30:ae:a4:00:1c:ac
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Compressed 3072 bytes to 103...
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.0 seconds (effective 4491.3 kbit/s)...
File md5: 5d61d196adc3dba01928f264eb169be7
Flash md5: 1cbd8b1afbfa4df8a7b1e1800ea4c8c5
MD5 of 0xFF is 988a096f6bee866b744ec2be0247ba9e
A fatal error occurred: MD5 of file does not match data in flash!
esptool.py failed with exit code 2
idf输出如上所示,我用的是ESP32比较早的开发板,是ESP32-S,最开始能够下载运行,后来运行spi receiver 历程并修改代码后出现此情况。
Checking Python dependencies...
Python requirements from /home/sqw/esp/esp-idf-v4.0/requirements.txt are satisfied.
Adding flash's dependency "all" to list of actions
Executing action: all (aliases: build)
Running ninja in directory /home/sqw/esp/hello_world/build
Executing "ninja all"...
[1/3] Performing build step for 'bootloader'
ninja: no work to do.
Executing action: flash
Choosing default port b'/dev/ttyUSB0' (use '-p PORT' option to set a specific serial port)
Running esptool.py in directory /home/sqw/esp/hello_world/build
Executing "/usr/bin/python /home/sqw/esp/esp-idf-v4.0/components/esptool_py/esptool/esptool.py -p /dev/ttyUSB0 -b 460800 --before default_reset --after hard_reset write_flash @flash_project_args"...
esptool.py -p /dev/ttyUSB0 -b 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x10000 hello-world.bin
esptool.py v2.8
Serial port /dev/ttyUSB0
Connecting........__
Detecting chip type... ESP32
Chip is ESP32D0WDQ6 (revision 0)
Features: WiFi, BT, Dual Core, Coding Scheme None
Crystal is 40MHz
MAC: 30:ae:a4:00:1c:ac
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Compressed 3072 bytes to 103...
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.0 seconds (effective 4491.3 kbit/s)...
File md5: 5d61d196adc3dba01928f264eb169be7
Flash md5: 1cbd8b1afbfa4df8a7b1e1800ea4c8c5
MD5 of 0xFF is 988a096f6bee866b744ec2be0247ba9e
A fatal error occurred: MD5 of file does not match data in flash!
esptool.py failed with exit code 2
idf输出如上所示,我用的是ESP32比较早的开发板,是ESP32-S,最开始能够下载运行,后来运行spi receiver 历程并修改代码后出现此情况。