Updating ESP-IDF to newest version using VSCode

enthusiastSR
Posts: 11
Joined: Thu Oct 14, 2021 2:56 pm

Updating ESP-IDF to newest version using VSCode

Postby enthusiastSR » Mon Mar 14, 2022 2:27 pm

Hello,

I had previously installed esp-idf version 3.4 on linux using Get started menu from Espressif website
https://docs.espressif.com/projects/esp ... requisites

Now I upgraded to the newest version of esp-idf: version 4.4. But when I tried to build using new version I had errors, which were because of "settings" of the old esp-idf installation.

So I uninstalled and deleted both vscode and esp-idf installation. I used the purge command to delete vscode completely. I also deleted .vscode and .config/code to remove the old settings completely. I also deleted .espressif and esp folders. I tried to delete everything concerning esp-idf and vscode.

Now, after reinstalling version 4.4, I again get the following error message:

Code: Untitled.c Select all

[code]
-- Found Git: /usr/bin/git (found version "2.35.1")
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Found assembler: xtensa-esp32s2-elf-gcc
CMake Error at /home/user/esp/esp-idf/tools/cmake/project.cmake:334 (__project):
The CMAKE_C_COMPILER:

xtensa-esp32s2-elf-gcc

is not a full path and was not found in the PATH.

Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
CMakeLists.txt:4 (project)


CMake Error at /home/user/esp/esp-idf/tools/cmake/project.cmake:334 (__project):
The CMAKE_CXX_COMPILER:

xtensa-esp32s2-elf-g++

is not a full path and was not found in the PATH.

Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
CMakeLists.txt:4 (project)


CMake Error at /home/user/esp/esp-idf/tools/cmake/project.cmake:334 (__project):
The CMAKE_ASM_COMPILER:

xtensa-esp32s2-elf-gcc

is not a full path and was not found in the PATH.

Tell CMake where to find the compiler by setting either the environment
variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
CMakeLists.txt:4 (project)[/code]
I don't understand where else is this software and esp-idf extension hiding its settings? Please help.

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 3 guests