Page 1 of 1

Change IDF_TARGET in VSCode

Posted: Tue Sep 13, 2022 10:00 pm
by import11
I'm trying to setup an example project in VSCode using the ESP-IDF Extension and am having issues with the target chip

When I run:

Code: Select all

idf.py set-target esp32s3
I get this error:

Code: Select all

IDF_TARGET in CMake cache does not match IDF_TARGET environment variable. 
To change the target, clear the build directory and sdkconfig file,
and build the project again
I tried the deleting the build folder and sdkconfig file, but it always builds as ESP32.

When I run:

Code: Select all

echo $IDF_TARGET
I get back:

Code: Select all

esp32
The bottom banner of VSCode shows ESP32 as the target and if I click that it just sets to the directory, but I don't have an option to change it.
Image

Where can I actually modify the IDF_TARGET? Please help me get this project up and running.

Re: Change IDF_TARGET in VSCode

Posted: Thu Sep 22, 2022 10:44 am
by sukeshak
Try installing the correct support package of ESP-IDF from here. In your case esp32-s3
https://idf.espressif.com/