impossible to override default sdkconfig settings
Posted: Thu Jun 29, 2023 3:15 pm
Hi,
I am trying to combine the functionality of several sample ESP2 projects (I'm using the VSCode with
the Espressif IDF extension).
I created the project based on Blink example and I'm trying to add features from advanced_https_ota.
To do this I modified the sdkconfig.defaults file.
The ESP-IDF Programming Guide states that
"It can contain all the options which matter for the given application.
The format is the same as that of the sdkconfig file.
Project build targets will automatically create sdkconfig file, populated with the settings
from sdkconfig.defaults file, and the rest of the settings will be set to their default values."
My CMakeLists.txt looks like this:
cmake_minimum_required(VERSION 3.5)
set(BUILD_DIR ${CMAKE_BINARY_DIR})
set(SDKCONFIG "${BUILD_DIR}/sdkconfig")
set(SDKCONFIG_DEFAULTS "sdkconfig.defaults")
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(main)
What actually happens is that the resulting sdkconfig file only reflects change of
parameters contained in the default (in my case Blink) project.
If I add some additional parameters from advanced_https_ota(e.g. CONFIG_EXAMPLE_OTA_RECV_TIMEOUT),
into sdkconfig.defaults file, they are completely ignored.
Whenever I add them manually into sdkconfig or sdkconfig.cmake they are immediately deleted
by the ESP-IDF build system.
Where do these default parameters of sample projects come from and how can I add parameters
to configure my own application?
Thanks in advance for any possible help.
I am trying to combine the functionality of several sample ESP2 projects (I'm using the VSCode with
the Espressif IDF extension).
I created the project based on Blink example and I'm trying to add features from advanced_https_ota.
To do this I modified the sdkconfig.defaults file.
The ESP-IDF Programming Guide states that
"It can contain all the options which matter for the given application.
The format is the same as that of the sdkconfig file.
Project build targets will automatically create sdkconfig file, populated with the settings
from sdkconfig.defaults file, and the rest of the settings will be set to their default values."
My CMakeLists.txt looks like this:
cmake_minimum_required(VERSION 3.5)
set(BUILD_DIR ${CMAKE_BINARY_DIR})
set(SDKCONFIG "${BUILD_DIR}/sdkconfig")
set(SDKCONFIG_DEFAULTS "sdkconfig.defaults")
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(main)
What actually happens is that the resulting sdkconfig file only reflects change of
parameters contained in the default (in my case Blink) project.
If I add some additional parameters from advanced_https_ota(e.g. CONFIG_EXAMPLE_OTA_RECV_TIMEOUT),
into sdkconfig.defaults file, they are completely ignored.
Whenever I add them manually into sdkconfig or sdkconfig.cmake they are immediately deleted
by the ESP-IDF build system.
Where do these default parameters of sample projects come from and how can I add parameters
to configure my own application?
Thanks in advance for any possible help.