sdkconfig file updated on build

jakobj
Posts: 5
Joined: Fri Jul 15, 2022 4:57 am

sdkconfig file updated on build

Postby jakobj » Wed Nov 29, 2023 8:53 am

Hi,

I have created a sdkconfig.defaults file with my required configuration.
My project builds fine on my old laptop with the same version of esp-idf (5.0.4), but when I try to build on my new laptop with same version of esp-idf, something weird happens.

The sdkconfig file is not updated correctly with all my CONFIG's, as an example we use nimble, but these CONFIG's are not copied to the sdkconfig file.
CONFIG_BT_NIMBLE_50_FEATURE_SUPPORT=y
CONFIG_BT_NIMBLE_LL_CFG_FEAT_LE_2M_PHY=y
CONFIG_BT_NIMBLE_LL_CFG_FEAT_LE_CODED_PHY=y
CONFIG_BT_NIMBLE_MAX_PERIODIC_SYNCS=0

Other CONFIG's are just set to "y", example:
sdkconfig.defaults: # CONFIG_ESP_WIFI_STA_DISCONNECTED_PM_ENABLE is not set
After build:
sdkconfig: CONFIG_ESP_WIFI_STA_DISCONNECTED_PM_ENABLE=y

How do I fix this ?

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

Re: sdkconfig file updated on build

Postby ESP_Sprite » Thu Nov 30, 2023 2:55 am

The values in these files are defaults, as in they're used if no sdkconfig values exist for these. You can try removing your existing sdkconfig, then it should use the values in sdkconfig.defaults.

Who is online

Users browsing this forum: No registered users and 184 guests