DFU target API integration

Hi,

I am trying to integrate DFU into my application. Below is what I need to do.

I receive OTA application image over BLE (I can not use legacy DFU feature as we are using our own encryption for all the data exchange over BLE) and I need to write the application image.

I try using dfu_target APIs to do the work and I see undefined reference error for all the dfu_target APIs.

Please let me know what I need to do to include dfu_target APIs into my application.

Thank you in advance.

Parents Reply
  • Jithin A said:
    functions inside secure

    Can you specify what you mean by "inside secure", either of the following?

    1. Build for nrf5340dk_nrf5340_cpuapp
    2. Build for nrf5340dk_nrf5340_cpuapp_ns, but manually call functions from secure side
    Jithin A said:

    Also I see there are many output build images and I want to know which output build image is suitable for DFU over BLE. (NOTE: I have 2 images in my application non-secure and TF-M images).

    I need to update both the images over DFU. I am confused which build image to write in the secondary slot so the MCUBoot can update both non-secure and secure in the next boot.

    In the nRF Connect SDK, the dfu_application.zip is used when updating both cores simultaneously over Bluetooth Low Energy.
    For an example see Simultaneous DFU for app and net core of nRF5340.

    Regards,
    Sigurd Hellesvik

Children
Related