Page 1 of 1

How can I switch IDF targets easily and often?

Posted: Thu Jul 22, 2021 2:55 pm
by MichaelGK
Hello everybody!

I am working on a network system that uses the ESP32-C3-MINI-1 modules as nodes and the ESP32-WROVER module as the base-station.

I need to work in parallel with both modules on the same PC. Unfortunately that means to have to constantly call idf.py set-target esp32 versus idf.py set-target esp32s2 to switch the target, which everytime overwrites the respective sdkconfig.

Since I use as well an own partition file on both modules, I also have to use everytime idf.py menuconfig to manually (re-)set the partition file again.

Having to do this everytime is extremly annoying!
Does anybody know about a trick or workaround that I am missing? Any help is highly appreciated!

Thanks!

Re: How can I switch IDF targets easily and often?

Posted: Fri Jul 23, 2021 2:49 am
by ESP_Sprite
I think you should be able to move all your project components, including the main project components, into a third directory. Then start a separate project both for the C3 and the S2, and add the path to the common components in the CMakefiles.txt file.