nRF5 SDK v15.0.0
Modules | Functions
USB DFU trigger library

nRF52840 only: USB DFU trigger library is used to enter the bootloader and read the firmware version. More...

Modules

 USB DFU Trigger library configuration
 

Functions

ret_code_t nrf_dfu_trigger_usb_init (void)
 Function for initializing the USB DFU trigger library. More...
 

Detailed Description

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 Documentation

ret_code_t nrf_dfu_trigger_usb_init ( void  )

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_SUCCESSOn successful initialization.
Returns
An error code on failure, for example if called at a wrong time.

Documentation feedback | Developer Zone | Subscribe | Updated