How can I switch IDF targets easily and often?

MichaelGK
Posts: 1
Joined: Thu Jul 15, 2021 4:09 pm

How can I switch IDF targets easily and often?

Postby MichaelGK » Thu Jul 22, 2021 2:55 pm

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!

ESP_Sprite
Posts: 8926
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Fri Jul 23, 2021 2:49 am

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.

Who is online

Users browsing this forum: Baidu [Spider] and 112 guests