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.