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

DFU + BLE_APP_UART_LIBUARTE How to easily combine the configuration file in "sdk_config.h" and in Project Items?

Hi Nordic Support Team,

I am trying to combine 

..\nRF5_SDK_17.0.2_d674dde\examples\dfu\secure_bootloader\pca10056_s140_ble\ses

and

..\nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ble_app_uart\pca10056\s140\ses

together.

I have verified both examples separately to be working, so if I started with "ble_app_uart" examples, to merge them I need to do these steps manually :

1. add the libraries used by the DFU example manually.

2. update the "User Include Directories" under Preprocessor in Project Options.

3. try to build the project, and if it fails because there are some definitions missing, I have to manually trace them back in the "sdk_config.h" from other example projects (in this case : dfu examples) and added those definitions into my target project "sdk_config.h" (eg. ble_app_uart).

I found these steps are quite repetitive and also I might duplicate some configurations or even miss some of the important configurations.

Is there any easier and safer way to merge two configuration files?

Parents
  • Hi Coyodha, 

    Could you give some more information on what you want to achieve by combining the 2 projects ? 
    I assume you have tested ..\nRF5_SDK_17.0.2_d674dde\examples\dfu\secure_bootloader\pca10056_s140_ble\ses and know how it work ? 

    The bootloader is a completely different application from the normal BLE application. It should be located in a dedicated and separated location from the application. 

    I'm not so sure what you want to do by combining a normal BLE application with a bootloader. 
    If you plan to have an application that allow you to do DFU update, you may want to have a look at the DFU buttonless example. Note that you still need the bootloader flashed separately in addition to the DFU buttonless application. 

Reply
  • Hi Coyodha, 

    Could you give some more information on what you want to achieve by combining the 2 projects ? 
    I assume you have tested ..\nRF5_SDK_17.0.2_d674dde\examples\dfu\secure_bootloader\pca10056_s140_ble\ses and know how it work ? 

    The bootloader is a completely different application from the normal BLE application. It should be located in a dedicated and separated location from the application. 

    I'm not so sure what you want to do by combining a normal BLE application with a bootloader. 
    If you plan to have an application that allow you to do DFU update, you may want to have a look at the DFU buttonless example. Note that you still need the bootloader flashed separately in addition to the DFU buttonless application. 

Children
Related