Page 1 of 1

ESP32 C3 VSCODE编译错误

Posted: Wed May 19, 2021 6:59 am
by xiayang
  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)
这个是什么问题呢

Re: ESP32 C3 VSCODE编译错误

Posted: Wed May 19, 2021 9:27 am
by ESP_Gargamel
你用的哪个版本的 idf,esp32c3 的支持需要从 release/v4.3 开始。

Re: ESP32 C3 VSCODE编译错误

Posted: Thu May 20, 2021 8:05 am
by xiayang
vsodede的ESP32只能安装到4.2.1 没办法安装4.3

Re: ESP32 C3 VSCODE编译错误

Posted: Thu May 20, 2021 9:35 am
by ESP_Gargamel
你直接拉 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 路径。