Postby Baotong » Mon Apr 19, 2021 12:15 pm
不知问题解决了没有?
我遇到了类似的问题:
我用的是ESP-WROVER-KIT V4.1板, ESP-IDF v4.2里的examples\get-started\blink.
在Device managermanager里显示COM3和COM4, 用idf.py -p COM3 -b 115200 flash 和idf.py -p COM4 -b 115200 flash命令烧录都失败。
--------------------------------------------------------------------------------------------------------------------------------------------------
C:\Users\x'xxx\Desktop\esp-idf\examples\get-started\blink>idf.py -p COM3 -b 115200 flash
Executing action: flash
Running ninja in directory c:\users\tong.bao\desktop\esp-idf\examples\get-started\blink\build
Executing "ninja flash"...
[1/4] Performing build step for 'bootloader'
ninja: no work to do.
[1/2] cmd.exe /C "cd /D C:\Users\Tong.Bao\Desktop\esp-idf\...o/Desktop/esp-idf/components/esptool_py/run_esptool.cmake"
esptool.py --chip esp32 -p COM3 -b 115200 --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 blink.bin
esptool.py v3.0
Serial port COM3
Connecting........_____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
CMake Error at run_cmd.cmake:14 (message):
esptool.py failed
Call Stack (most recent call first):
run_esptool.cmake:21 (include)
FAILED: CMakeFiles/flash
cmd.exe /C "cd /D C:\Users\Tong.Bao\Desktop\esp-idf\components\esptool_py && C:\Users\Tong.Bao\.espressif\tools\cmake\3.16.4\bin\cmake.exe -D IDF_PATH="C:/Users/Tong.Bao/Desktop/esp-idf" -D ESPTOOLPY="C:\Users\Tong.Bao\.espressif\python_env\idf4.2_py3.8_env\Scripts\python.exe C:/Users/Tong.Bao/Desktop/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32" -D ESPTOOL_ARGS="--before=default_reset --after=hard_reset write_flash @flash_args" -D WORKING_DIRECTORY="C:/Users/Tong.Bao/Desktop/esp-idf/examples/get-started/blink/build" -P C:/Users/Tong.Bao/Desktop/esp-idf/components/esptool_py/run_esptool.cmake"
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
----------------------------------------------------------------------------------------------------------------------------------------------------