nRF5 SDK v14.2.0
Modules | Functions
DFU bootloader

Bootloader with Device Firmware Update (DFU) functionality. More...

Modules

 DFU Bootloader configuration
 
 Flash operations
 
 MBR functions
 
 Request handling
 
 DFU settings
 
 DFU types
 
 DFU utilities
 

Functions

uint32_t nrf_dfu_init (void)
 Function for initializing a DFU operation. More...
 
bool nrf_dfu_button_enter_check (void)
 Function to check if button was pressed. More...
 
bool nrf_dfu_enter_check (void)
 Function for checking if DFU mode should be entered. More...
 
bool nrf_dfu_check_failsafe_reset (void)
 Function for checking if DFU should be reset (failsafe). More...
 

Detailed Description

Bootloader with Device Firmware Update (DFU) functionality.

The DFU bootloader module, in combination with the Bootloader module, can be used to implement a bootloader that supports Device Firmware Updates.

Function Documentation

bool nrf_dfu_button_enter_check ( void  )

Function to check if button was pressed.

Note
This function must be implemented by the application to enable entering bootloader mode based on button press.
Return values
trueif the DFU mode should be entered, otherwise false.
bool nrf_dfu_check_failsafe_reset ( void  )

Function for checking if DFU should be reset (failsafe).

This function will check if DFU should be reset (failsafe).

If this returns true, DFU mode will be entered and DFU will be reset.

Return values
trueIf DFU must be reset (failsafe).
falseIf there is no need to reset DFU.
bool nrf_dfu_enter_check ( void  )

Function for checking if DFU mode should be entered.

This function checks whether DFU mode is required.

Return values
trueIf DFU mode must be entered.
falseIf there is no need to enter DFU mode.
uint32_t nrf_dfu_init ( void  )

Function for initializing a DFU operation.

This function initializes a DFU operation and any transports that are registered in the system.

Return values
NRF_SUCCESSIf the DFU operation was successfully initialized.

Documentation feedback | Developer Zone | Subscribe | Updated