Change IDF_TARGET in VSCode

import11
Posts: 2
Joined: Tue Sep 13, 2022 9:05 pm

Change IDF_TARGET in VSCode

Postby import11 » Tue Sep 13, 2022 10:00 pm

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.

sukeshak
Posts: 50
Joined: Sat Aug 19, 2017 10:20 am
Contact:

Re: Change IDF_TARGET in VSCode

Postby sukeshak » Thu Sep 22, 2022 10:44 am

Try installing the correct support package of ESP-IDF from here. In your case esp32-s3
https://idf.espressif.com/

Who is online

Users browsing this forum: Majestic-12 [Bot] and 402 guests