This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how to combine two sdk_config.h file

nrf52832, SDK 15.0.0

I develop the project based on the example 'ble_app_buttonless_dfu'

But when I want to add some peripherals, such as SAADC, SPI and PPI, and some other BLE services,  such as BLE_NUS, BLE_HRS, BLE_BAS, I find the sdk_config.h in buttonless_dfu does not contain the definition of other peripherals and services. And it is quite boring to combine these two sdk_config.h file manually.

Is there any all-purpose sdk_config.h file?

Or how to combine two files easily?

  • Hi,

    We don't provide any automatic tool for merging the sdk_config.h files, but I think off-the-shelf diff/merge tools could be of help for such a task. (E.g. tools such as TortoiseSVN Diff, meld, merge functionality within git, etc.)

    There are template sdk_config.h files under <sdk folder>\config\<nrf variant>\config\, that should contain all settings, but I do not see how that would help for the use case of merging projects.

    Regards,
    Terje

Related