My current project has DFU enabled through the secure BLE bootloader and it works well. I would like to include the additional option of performing DFU over USB. Is it possible to combine the two functions into the same bootloader? Does Nordic have any sample code which does this?
It is possible to do, yes, but there is no example showing how to do it unfortunately.
How are you planning to switch between the two bootloader transports?
I have a similar requirement to use USB DFU in the factory, use background DFU over BLE in the field. Is there any pointer to achieve this?
I read that for background DFU, the Bootloader shouldn't initialize any of the transports however, I have the need to have these be initialized and then choose between a factory/RMA update vs. user/field update.
Appreciate any help.
Thanks and regards,
I don't think it's a problem having 2 transportation options in one DFU bootloader. Have you tried to combine them ?
You can find in nrf_dfu_transports_init() all transports are initialized in the function.