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

Feature request: new DFU bootloader callback to dfu_observer after transports are initialized, but before loop_forever() is called

In the secure DFU bootloader, I have some custom initialization that I need to happen after the BLE transport is initialized in nrf_dfu_init(), but before loop_forever() in nrf_bootloader.c is called. I'd prefer to do that initialization in main.c rather than having to modify your nrf_dfu_init(). Currently nrf_dfu_init() calls the dfu_observer function with an event NRF_DFU_EVT_DFU_INITIALIZED right before it initializes the transports. Could you please add a new event such as NRF_DFU_EVT_DFU_TRANSPORTS_INITIALIZED, and call the dfu observer with that event right after the transports are initialized?

Parents Reply Children
Related