Bootloader module interface.
More...
Bootloader module interface.
bool bootloader_app_is_valid |
( |
uint32_t |
app_addr | ) |
|
Function for validating application region in flash.
- Parameters
-
[in] | app_addr | Address to the region in flash where the application is stored. |
- Return values
-
True | If Application region is valid. |
False | If 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_addr | Address 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_SUCCESS | If 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
-
True | A firmware update is in progress. This indicates that SWAP area is filled with new firmware. |
False | No firmware update is in progress. |
uint32_t bootloader_init |
( |
void |
| ) |
|
Function for initializing the Bootloader.
- Return values
-
NRF_SUCCESS | If bootloader was succesfully initialized, else any error code recieved when initializing underlying flash storage module. |