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
  • Hi Sigurd,

    For the time being I try to process the DFU in non-secure and I see error -19 every time I call dfu_target_init()

    dfu_status = dfu_target_init(DFU_TARGET_IMAGE_TYPE_MCUBOOT, -1, file_size, dfu_callback_function);
    Below is my prj.conf
    # Enable DFU target for application image
    CONFIG_DFU_TARGET=y
    CONFIG_IMG_MANAGER=y
    CONFIG_STREAM_FLASH=y
    CONFIG_STREAM_FLASH_ERASE=y
    CONFIG_DFU_TARGET_STREAM=y
    CONFIG_DFU_TARGET_MCUBOOT=y
    Am I missing any configuration here?
    Now I am referring DFU target document to implement the same. Please share if any other documentation I can refer to.
Children
Related