I probably is doing something wrong, but I have some difficulties to generate a usable sdkconfig.h file. Sometime it revert to something different that I have made in menuconfig
I have ESP IDF v4.4.1 and using visual studio and CMake
My application folder:
Esp32Config
sdkconfig
main
main.cpp
CmakeLists
I run 'idf.py menuconfig' from the \Esp32Config folder. It builds the menuconfig fine and the folder is containing a good sdkconfig file with the changes after i have saved the config
I than open my project and reconfigure. Than the file \MyApp\Esp32Config\sdlconfig is changed back to was it was before? And when I build the sdkconfig.h in the output directory used for the build is wrong.
I set 'SDKCONFIG ${CMAKE_CURRENT_SOURCE_DIR}/Esp32Config/sdkconfig' in my idf_build_process structure in the CMakeLists.txt for the application
Code: Select all
idf_build_process( esp32
PROJECT_NAME "${PROJECT_NAME}"
PROJECT_VER "${PROJECT_VER}"
COMPONENTS esp32 freertos esptool_py app_update esp_eth
SDKCONFIG ${CMAKE_CURRENT_SOURCE_DIR}/Esp32Config/sdkconfig
BUILD_DIR ${CMAKE_BINARY_DIR}
)
SDKCONFIG is set to C:\MyApp/Application/Esp32Config/sdkconfig
The \MyApp\* is under git control
Any idea what I have missed?`Maybe I must use sdkconfig.defaults, but how does that exactly work?
Thomas