idf.py set-target esp32c3 无法生效

lxdemon
Posts: 2
Joined: Wed Jan 15, 2020 7:10 am

idf.py set-target esp32c3 无法生效

Postby lxdemon » Mon Jan 15, 2024 3:21 am

idf version: v5.1.2
之前使用的环境是esp32,然后安装了esp32c3,现在编译完下载会出错,具体操作如下:

xin_li@DESKTOP-SH0LJ3H:~/workspace/esp32/projects/hello_world$ idf.py set-target esp32c3
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Executing action: set-target
Set Target to: esp32c3, new sdkconfig will be created.
Target 'esp32c3' specified on command line is not consistent with target 'esp32' in the environment.

idf.py flash 报错如下
A fatal error occurred: This chip is ESP32-C3 not ESP32. Wrong --chip argument?
CMake Error at run_serial_tool.cmake:66 (message):

/home/xin_li/.espressif/python_env/idf5.1_py3.8_env/bin/python;;/home/xin_li/workspace/esp32/esp-idf/components/esptool_py/esptool/esptool.py;--chip;esp32
failed.

麻烦帮忙看看怎么解决

Who is online

Users browsing this forum: No registered users and 106 guests