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

fst202130609
Posts: 171
Joined: Thu Sep 23, 2021 10:03 am

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

Postby fst202130609 » 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

ESP_ICY
Posts: 404
Joined: Mon Aug 23, 2021 11:10 am

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

Postby ESP_ICY » Tue Nov 02, 2021 8:48 am

这边使用的是哪个版本的idf?另外检查下供电是否正常

fst202130609
Posts: 171
Joined: Thu Sep 23, 2021 10:03 am

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

Postby fst202130609 » Thu Nov 04, 2021 1:15 am

idf版本是release V4.3的,还是说没配置完环境变量?

ESP_ICY
Posts: 404
Joined: Mon Aug 23, 2021 11:10 am

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

Postby ESP_ICY » Fri Nov 05, 2021 7:50 am

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

Who is online

Users browsing this forum: No registered users and 69 guests