Page 1 of 1

运行idf.py -p COM4 flash monitor 出错?这是什么原因导致的????

Posted: Mon Nov 01, 2021 6:57 am
by fst202130609
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

Re: 运行idf.py -p COM4 flash monitor 出错?这是什么原因导致的????

Posted: Tue Nov 02, 2021 8:48 am
by ESP_ICY
这边使用的是哪个版本的idf?另外检查下供电是否正常

Re: 运行idf.py -p COM4 flash monitor 出错?这是什么原因导致的????

Posted: Thu Nov 04, 2021 1:15 am
by fst202130609
idf版本是release V4.3的,还是说没配置完环境变量?

Re: 运行idf.py -p COM4 flash monitor 出错?这是什么原因导致的????

Posted: Fri Nov 05, 2021 7:50 am
by ESP_ICY
你这边使用的是什么硬件?开发板还是自己设计的硬件,确保开发板和电脑间的连接正常,同时参照c3的datasheet检查下flash 管脚和strpping管脚的状态