Espressif32 and sdkconfig

Below is my platform.ini. I have several environments. Each one creates its own sdkconfig.XXX based on the environment selected. I have made changes to one using menuconfig, and forget to include it in the others and ran into issues. Can i change the sdkconfig from the ini file with build flags? Should i be doing this another way?

[env]
platform = espressif32@5.3.0
board = esp32dev
framework = espidf
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
board_build.partitions = factory_app_two_ota.csv
custom_ota_port = 3232
;build_flags = -DCONFIG_COMPILER_CXX_EXCEPTIONS
;CONFIG_ESP_MAIN_TASK_STACK_SIZE=7168
;CONFIG_PARTITION_TABLE_TWO_OTA=y
;CONFIG_COMPILER_OPTIMIZATION_LEVEL_DEBUG=y
;CONFIG_LOG_DEFAULT_LEVEL_INFO=y
;CONFIG_LOG_DEFAULT_LEVEL=4
;CONFIG_LOG_MAXIMUM_LEVEL=4
;CONFIG_LOG_COLORS=y

[env:debug_work_serial]
upload_port = COM12
monitor_port = COM12
build_type = debug
upload_speed = 1500000
extra_scripts = pre:tools/buildscript_versioning.py
tools/copy_firmware.py

[env:release_work_serial]
upload_port = COM12
monitor_port = COM12
build_type = release
upload_speed = 1500000
extra_scripts = pre:tools/buildscript_versioning.py
tools/copy_firmware.py

[env:debug_work_ota]
monitor_port = COM4
build_type = debug
custom_ota_host = 10.0.0.3
extra_scripts = pre:tools/buildscript_versioning.py
tools/copy_firmware.py
tools/upload_curl.py

[env:release_work_ota]
monitor_port = COM4
build_type = release
custom_ota_host = 10.0.0.3
extra_scripts = pre:tools/buildscript_versioning.py
tools/copy_firmware.py
tools/upload_curl.py

[env:debug_home_ota]
monitor_port = /dev/cu.usbserial-8344401
build_type = debug
custom_ota_host = 192.168.1.3
extra_scripts = pre:tools/buildscript_versioning.py
tools/copy_firmware.py
tools/upload_curl.py

[env:release_home_ota]
monitor_port = /dev/cu.usbserial-8344401
build_type = release
custom_ota_host = 192.168.1.3
extra_scripts = pre:tools/buildscript_versioning.py
tools/copy_firmware.py
tools/upload_curl.py

[env:debug_home_serial]
upload_port = /dev/cu.usbserial-8344401
build_type = debug
upload_speed = 1500000
monitor_port = /dev/cu.usbserial-8344401
extra_scripts = pre:tools/buildscript_versioning.py
pre:tools/copy_firmware.py

[env:release_home_serial]
upload_port = /dev/cu.usbserial-8344401
build_type = release
upload_speed = 1500000
monitor_port = /dev/cu.usbserial-8344401
extra_scripts = pre:tools/buildscript_versioning.py
tools/copy_firmware.py

sdkconfig.defaults

Ahh…

1 Like