Get DFU callback in the applicaiton

Hello, 

I'm trying to find a way to get an event or callback in the application when DFU start updating or downloading image using BLE. 

so far I found CONFIG_MCUBOOT_ACTION_HOOKS but I'm now sure if this is the correct way, but anyway I added 

CONFIG_MCUBOOT_ACTION_HOOKS to the mcuboot in the child_image and still getting this error 
bootutil\mcuboot_status.h:27:40: error: expected identifier or '(' before 'do'
27 | #define mcuboot_status_change(_status) do {} while (0)
platform:
ncs: v2.2.0
 
Application: is based on light sample (mesh) and using the dfu settings of the sample
soc: nrf52480
Best regards
Parents Reply
  • Hi Sigurd, 

    Actually what I meant is that I would like to have a callback on the application level for the following events:

    * downloading image using BLE ( DFU callback) 

    * prepare an application for a reboot 

    and after that Callback in the bootloader level for swapping the image and upgrading the fw. 

     I aim to attach a led indication by every step to inform the user about the progress steps. 

    for MCU bootloader  I'm using the zephyr device management

    Best regards,

    Mustafa 

Children
Related