运行idf.py -p COM4 flash monitor 出错?这是什么原因导致的????
Posted: Mon Nov 01, 2021 6:57 am
A fatal error occurred: Failed to connect to ESP32-C3: Invalid head of packet (0x6C)
CMake Error at run_serial_tool.cmake:50 (message):
E:/esp/.espressif/python_env/idf4.3_py3.8_env/Scripts/python.exe
E:/esp/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32c3
failed
FAILED: CMakeFiles/flash
cmd.exe /C "cd /D E:\esp\esp-idf\components\esptool_py && E:\esp\.espressif\tools\cmake\3.16.4\bin\cmake.exe -D IDF_PATH="E:/esp/esp-idf" -D SERIAL_TOOL="E:/esp/.espressif/python_env/idf4.3_py3.8_env/Scripts/python.exe E:/esp/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32c3" -D SERIAL_TOOL_ARGS="--before=default_reset --after=hard_reset write_flash @flash_args" -D WORKING_DIRECTORY="E:/esp/esp-idf/esp-aws-iot/examples/motor_smart_config_aws/build" -P E:/esp/esp-idf/components/esptool_py/run_serial_tool.cmake"
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
CMake Error at run_serial_tool.cmake:50 (message):
E:/esp/.espressif/python_env/idf4.3_py3.8_env/Scripts/python.exe
E:/esp/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32c3
failed
FAILED: CMakeFiles/flash
cmd.exe /C "cd /D E:\esp\esp-idf\components\esptool_py && E:\esp\.espressif\tools\cmake\3.16.4\bin\cmake.exe -D IDF_PATH="E:/esp/esp-idf" -D SERIAL_TOOL="E:/esp/.espressif/python_env/idf4.3_py3.8_env/Scripts/python.exe E:/esp/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32c3" -D SERIAL_TOOL_ARGS="--before=default_reset --after=hard_reset write_flash @flash_args" -D WORKING_DIRECTORY="E:/esp/esp-idf/esp-aws-iot/examples/motor_smart_config_aws/build" -P E:/esp/esp-idf/components/esptool_py/run_serial_tool.cmake"
ninja: build stopped: subcommand failed.
ninja failed with exit code 1