Page 1 of 1

Custom build configurations in Espressif IDE 2.6.0

Posted: Wed Mar 26, 2025 8:29 am
by tasesa
Hi everybody,

I have a code for ESP32-C3 and I would like to generate two build configurations to obtain two binary files (a defined constant enable a part of the code or not).
I would like the build folders of the configurations are "build_bc" and "build_gtc".

I'm using Espressif-IDE 2.6.0 (buildid 20220811-0838); I followed the instruction reported here:
https://docs.espressif.com/projects/esp ... oject.html

I created two "Launch Configuration" in "Run" launch mode and I added the absolute path of the "build" folders.
However, even if I use "Build All" command, it always use the default one (i.e. "build"). Moreover, I expected two compilation processes should be performed but in reality I see just one.

How can I solve (or where am I wrong)?

Thanks in advance.

Re: Custom build configurations in Espressif IDE 2.6.0

Posted: Tue Apr 01, 2025 2:54 pm
by kondalkolipaka
Hello,

Here is what you can do:

1. Create a project.
2. Open the Launch Configuration dialog.
3. Navigate to the Build Settings tab and enter -B build_bc in the Additional CMake Arguments section.
4. Click OK.
5. Reopen the Launch Configuration dialog.
6. Click the Duplicate button (located at the bottom left corner).
7. Navigate to the Build Settings tab and update the Additional CMake Arguments section to -B build_gtc.
8. Click OK.
9. Click the Build icon from the toolbar (the leftmost icon) for the selected configuration. This should build the project and create a build folder for that configuration. Repeat the same process for the other configuration by selecting it from the dropdown.

I hope that helps.

Re: Custom build configurations in Espressif IDE 2.6.0

Posted: Wed Apr 02, 2025 1:50 pm
by tasesa
Hello,

Here is what you can do:

1. Create a project.
2. Open the Launch Configuration dialog.
3. Navigate to the Build Settings tab and enter -B build_bc in the Additional CMake Arguments section.
4. Click OK.
5. Reopen the Launch Configuration dialog.
6. Click the Duplicate button (located at the bottom left corner).
7. Navigate to the Build Settings tab and update the Additional CMake Arguments section to -B build_gtc.
8. Click OK.
9. Click the Build icon from the toolbar (the leftmost icon) for the selected configuration. This should build the project and create a build folder for that configuration. Repeat the same process for the other configuration by selecting it from the dropdown.

I hope that helps.
Dear @ESP_kondalkolipaka,

Thank you for your reply. This is the procedure I use but when I select one of the Launch configuration, the "Additional CMake Arguments" are overwritten according to the previous one.

I report some screenshot. I created a project using "hello world" template

1. I open Launch config and I added "-B build_bc"
Image

2. I duplicated the config which has been called "hello world (1)"
Image

3. I edit the config "hello world (1)" addding "-B build_gtc" argument
Image

4. I open "hello world" config (the original one) and the argument has been overwritten to "build_gtc" (it should be "build_bc")
Image


I don't know if it is a bug of the IDE.
Is there any other method to create different Launch Configuration, maybe modifiying some files of the project?

Thank you

Re: Custom build configurations in Espressif IDE 2.6.0

Posted: Thu Apr 03, 2025 4:39 am
by kondalkolipaka
Hello,

This was fixed in one of our past releases—I can’t recall the exact version. But at least I can say that this issue doesn’t exist in our recent release.
https://github.com/espressif/idf-eclips ... tag/v3.3.0

Please upgrade to the lastest and see if that helps.

Thanks

[SOLVED] Re: Custom build configurations in Espressif IDE 2.6.0

Posted: Thu Apr 03, 2025 1:00 pm
by tasesa
Hello @kondalkolipaka,

I solved updating espressif-ide to version 3.3.0

Thanks and regards