Multi config example and sdkconfig file in VSC

asierdo
Posts: 11
Joined: Mon Sep 18, 2023 10:37 am

Multi config example and sdkconfig file in VSC

Postby asierdo » Tue Nov 14, 2023 6:40 pm

Hi,

I'm testing Multiple Build Configurations Example from idf examples and I'm confused with sdkconfig and it's path.

One hand we've got "set(SDKCONFIG "${CMAKE_BINARY_DIR}/sdkconfig")" in CMakeList.txt project file, which it indicates in same path of binary file but in the other hand, we have "sdkconfigFilePath" parameter in "esp_idf_project_configuration.json" project configuration file.
After testing, I see that the path I defined in "sdkconfigFilePath" is not having effect even if I comment "# set(SDKCONFIG "${CMAKE_BINARY_DIR}/sdkconfig")" in CMakeList.txt. In that case, sdkconfig is generated en the root and not in "..\Build_prod1\sdkconfig" folder.

Am I doing something wrong when doing "ESP-IDF: Open Project Configuration" ?
"Production1": {
"build": {
"compileArgs": [],
"ninjaArgs": [],
"buildDirectoryPath": "c:\\Users\\ASIER.DINUY\\esp\\esp-idf\\myExamples\\MyMultiConfig\\multi_config\\Build_prod1",
"sdkconfigDefaults": [
"sdkconfig.prod_common",
"sdkconfig.prod1"
],
"sdkconfigFilePath": "c:\\Users\\ASIER.DINUY\\esp\\esp-idf\\myExamples\\MyMultiConfig\\multi_config\\Build_prod1\\sdkconfig"
},
"env": {},
"flashBaudRate": "",
"idfTarget": "",
"monitorBaudRate": "",
"openOCD": {
"debugLevel": 0,
"configs": [],
"args": []
},
"tasks": {
"preBuild": "",
"preFlash": "",
"postBuild": "",
"postFlash": ""
}
},
Thank you,

Asier.

Who is online

Users browsing this forum: No registered users and 65 guests