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

DFU for HRS application in nRF5_SDK_16.0.0_98a08e2

Hello All,

I am now planning to add DFU service to my HRS application (examples\ble_peripheral\ble_app_hrs\pca10040\s132\ses

I am using SDK nRF5_SDK_16.0.0_98a08e2. 

But I haven't found any DFU integrated project for HRS in this SDK. 

Where can I start? Any pointers can help. 

Regards

Lakshmikanth. 

Parents
  • Hello,

    I would recommend that you use Buttonless DFU Template Application example as a reference and start by including the DFU dependencies and settings it uses to your HRS project. That is the main step to integrate buttonless DFU into any app.

    Required source files (these can be inserted directly into the *.emProject file instead of adding them manually in SES):

        <folder Name="nRF_DFU">
          <file file_name="../../../../../../components/ble/ble_services/ble_dfu/ble_dfu.c" />
          <file file_name="../../../../../../components/ble/ble_services/ble_dfu/ble_dfu_unbonded.c" />
        </folder>
        <folder Name="nRF_SVC">
          <file file_name="../../../../../../components/libraries/bootloader/dfu/nrf_dfu_svci.c" />
        </folder>

    And preprocessor definitions:

     - BL_SETTINGS_ACCESS_ONLY

     - NRF_DFU_SVCI_ENABLED

     - NRF_DFU_TRANSPORT_BLE=1

    Regards,

    Vidar

  • Hi Vidar,

    I took the project from  nRF\examples\ble_peripheral\ble_app_bps\ble_app_buttonless_dfu\pca10040\s132\ses

    However when I try to build it produces build errors and not finding the source. I had to modify the below relative path for all the source files listed in .emproject file. 

    file file_name="../../../../../../components/libraries/log/src/nrf_log_default_backends.c"   It seems all these entries are one directory behind for actual location. I have to add a ../ for each entry listed in this project file. 

    Is there any other way I can modify the relative path to update .emproject file in oneshot? 

    Regards

    Lakshmi

  • Hi Lakshmi,

    You can move 'ble_app_buttonless_dfu' directory one level up so it gets placed in \ble_peripheral\,  or you can open the project file in a code editor and replace all occurences of the existing relative path in one go (eg replace ../../../../../../ with ../../../../../../../).

  • Hi Vidar,

    It is building now. 

    Does this ble_app_buttonless_dfu project contain Boot Loader + soft device + Application? Or is it only the application? 

    Should I program boot loader and soft device separately to use this project? 

    Regards

    Lakshmi

Reply Children
Related