Target in environment

Jorgen
Posts: 51
Joined: Fri Dec 09, 2022 11:39 am

Target in environment

Postby Jorgen » Mon Nov 04, 2024 6:03 pm

I use the VS-code (latest version) on a Windows 11 PC with the framework 5.3.1.

When I start a new project and set the target to ESP32-S3, I get a message saying the environment variable is set to ESP32. The message is:

Target 'esp32s3' specified on command line is not consistent with target 'esp32' in the environment.

I have set the target by the command idf.py set-target esp32s3

How do I change the environment setting from esp32 to esp32s3?

There are various suggestions coming up, when I search for a solution. I have tried several of them, but the error message is still there.

Regards,
Jorgen

MicroController
Posts: 1724
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Target in environment

Postby MicroController » Mon Nov 04, 2024 8:32 pm

The "other" target to set is the environment variable IDF_TARGET.
Not sure how to make VScode set this variable for the build process inside the IDE though.

Jorgen
Posts: 51
Joined: Fri Dec 09, 2022 11:39 am

Re: Target in environment

Postby Jorgen » Wed Nov 06, 2024 6:40 pm

Thanks MicroController.

The problem has been reported before and workarounds have been suggested. I have found one and it works for me, provided, I do the three steps right after creating a new project. I have not made any exhaustive investigation trying out several combinations.

I hope this is read by someone involved in the development/coding of the ESP-IDF. To that person, please change the ESP-IDF such that the command:

idf.py set-target esp32s3

really sets the target everywhere necessary including the environment variable ESP_TARGET and also on the bottom line in VS code.

Regards,
Jorgen

Who is online

Users browsing this forum: No registered users and 129 guests