nRF5 IoT SDK  v0.9.0
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Bootloader API

Bootloader module interface. More...

Functions

uint32_t bootloader_init (void)
 Function for initializing the Bootloader. More...
 
bool bootloader_app_is_valid (uint32_t app_addr)
 Function for validating application region in flash. More...
 
uint32_t bootloader_app_start (uint32_t app_addr)
 Function for exiting bootloader and booting into application. More...
 
bool bootloader_dfu_update_in_progress (void)
 Function getting state of DFU update in progress. After a successful firmware transfer to the SWAP area, the system restarts in order to copy data and check if they are valid. More...
 
uint32_t bootloader_dfu_update_continue (void)
 Function for continuing the Device Firmware Update. More...
 

Detailed Description

Bootloader module interface.

Function Documentation

bool bootloader_app_is_valid ( uint32_t  app_addr)

Function for validating application region in flash.

Parameters
[in]app_addrAddress to the region in flash where the application is stored.
Return values
TrueIf Application region is valid.
FalseIf Application region is not valid.
uint32_t bootloader_app_start ( uint32_t  app_addr)

Function for exiting bootloader and booting into application.

This function will disable SoftDevice and all interrupts before jumping to application. The SoftDevice vector table base for interrupt forwarding will be set the application address.

Parameters
[in]app_addrAddress to the region where the application is stored.
uint32_t bootloader_dfu_update_continue ( void  )

Function for continuing the Device Firmware Update.

Return values
NRF_SUCCESSIf the final stage of SoftDevice update was successful, else an error indicating reason of failure.
bool bootloader_dfu_update_in_progress ( void  )

Function getting state of DFU update in progress. After a successful firmware transfer to the SWAP area, the system restarts in order to copy data and check if they are valid.

Return values
TrueA firmware update is in progress. This indicates that SWAP area is filled with new firmware.
FalseNo firmware update is in progress.
uint32_t bootloader_init ( void  )

Function for initializing the Bootloader.

Return values
NRF_SUCCESSIf bootloader was succesfully initialized, else any error code recieved when initializing underlying flash storage module.