ESP32 C3 VSCODE编译错误

xiayang
Posts: 9
Joined: Tue May 11, 2021 1:33 am

ESP32 C3 VSCODE编译错误

Postby xiayang » Wed May 19, 2021 6:59 am

  1. > Executing task: cmake -G Ninja .. <
  2.  
  3. CMake Error at C:/Users/JYD/esp/esp-idf/tools/cmake/targets.cmake:57 (message):
  4.   Unable to resolve 'esp32c3' for setting toolchain file.
  5. Call Stack (most recent call first):
  6.   C:/Users/JYD/esp/esp-idf/tools/cmake/project.cmake:294 (__target_set_toolchain)
  7.   CMakeLists.txt:6 (project)
这个是什么问题呢

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: ESP32 C3 VSCODE编译错误

Postby ESP_Gargamel » Wed May 19, 2021 9:27 am

你用的哪个版本的 idf,esp32c3 的支持需要从 release/v4.3 开始。

xiayang
Posts: 9
Joined: Tue May 11, 2021 1:33 am

Re: ESP32 C3 VSCODE编译错误

Postby xiayang » Thu May 20, 2021 8:05 am

vsodede的ESP32只能安装到4.2.1 没办法安装4.3

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: ESP32 C3 VSCODE编译错误

Postby ESP_Gargamel » Thu May 20, 2021 9:35 am

你直接拉 release/v4.3 分支。

Ctrl + Shift + P,选择 ESP-IDF: Configure ESP-IDF extension,然后在 Select ESP-IDF version: 选择 Find ESP-IDF in your system,直接输入你 v4.3 的 IDF 路径。

Who is online

Users browsing this forum: No registered users and 33 guests