nRF52840 only: USB DFU trigger library is used to enter the bootloader and read the firmware version.
More...
nRF52840 only: USB DFU trigger library is used to enter the bootloader and read the firmware version.
See DFU Trigger Library (USB) for additional documentation.
Function for initializing the USB DFU trigger library.
- Note
- If the USB is also used for other purposes, then this function must be called after USB is initialized but before it is enabled. In this case, the configuration flag NRF_DFU_TRIGGER_USB_USB_SHARED must be set to 1.
-
Calling this again after the first success has no effect and returns NRF_SUCCESS.
-
If APP_USBD_CONFIG_EVENT_QUEUE_ENABLE is on (1), USB events must be handled manually. See app_usbd_event_queue_process.
- Return values
-
NRF_SUCCESS | On successful initialization. |
- Returns
- An error code on failure, for example if called at a wrong time.