All unlisted idf.py options

derricksenva
Posts: 21
Joined: Tue Aug 02, 2022 8:19 pm

All unlisted idf.py options

Postby derricksenva » Mon Feb 27, 2023 7:25 pm

Is there documentation for all possible commands and options passable to idf.py (and any other tools as well: esptool.py, espefuse.py, espsecure.py, etc.)?

For example,

Code: Select all

idf.py -DSDKCONFIG=<filename> bootloader/partition-table/app
allows us to specify a specific sdkconfig when we have multiple build configurations.

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: All unlisted idf.py options

Postby ESP_igrr » Mon Feb 27, 2023 11:09 pm

Hi derricksenva,

Indeed we don't have the -D option documented now in idf.py docs (https://docs.espressif.com/projects/esp ... al-options), i think it was forgotten about because it has the same meaning as -D option of CMake.

CMake variables such as SDKCONFIG, SDKCONFIG_DEFAULTS are mentioned in the build system docs: https://docs.espressif.com/projects/esp ... ystem.html

derricksenva
Posts: 21
Joined: Tue Aug 02, 2022 8:19 pm

Re: All unlisted idf.py options

Postby derricksenva » Mon Mar 13, 2023 4:08 pm

Is it possible to define different build/launch configurations in Eclipse to use different sdkconfig files? I tried adding those options as additional CMake arguments as seen below, but it didn't work and does the default behavior of building in the build/ directory and using the plain sdkconfig file.

2023-02-28 11_30_23-Edit Configuration.png
2023-02-28 11_30_23-Edit Configuration.png (22.57 KiB) Viewed 1662 times


Last bumped by derricksenva on Mon Mar 13, 2023 4:08 pm.

Who is online

Users browsing this forum: MicroController, ok-home and 73 guests