idp.py: Changing the target programmatically
Posted: Thu Apr 11, 2024 8:36 pm
I am using Windows, VSCode and the ESP-IDF extention. I need to compile a project for several targets, for example ESP32, ESP32-C3 and ESP32-S3. I can do this manually by clicking the "ESP-IDF: Set Espressif Device Target" command, then "ESP-IDF: Build Project", then copying the binaries, and so on.
I need to do this programmatically, using a batch file.
I can compile by executing
If I enter this:
I need to do this programmatically, using a batch file.
I can compile by executing
in the terminal. But how can I change the target?idf.py app
If I enter this:
the terminal displays this:idf.py set-target esp32c3
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Executing action: set-target
Set Target to: esp32c3, new sdkconfig will be created.
Target 'esp32c3' specified on command line is not consistent with target 'esp32' in the environment.