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. |
void 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. |
bool bootloader_dfu_sd_in_progress |
( |
void |
| ) |
|
Function getting state of SoftDevice update in progress. After a successfull SoftDevice transfer the system restarts in orderto disable SoftDevice and complete the update.
- Return values
-
true | A SoftDevice update is in progress. This indicates that second stage of a SoftDevice update procedure can be initiated. |
false | No SoftDevice update is in progress. |
uint32_t bootloader_dfu_sd_update_continue |
( |
void |
| ) |
|
Function for continuing the Device Firmware Update of a SoftDevice.
- Return values
-
NRF_SUCCESS | If the final stage of SoftDevice update was successful. |
uint32_t bootloader_dfu_sd_update_finalize |
( |
void |
| ) |
|
Function for finalizing the Device Firmware Update of a SoftDevice.
- Return values
-
NRF_SUCCESS | If the final stage of SoftDevice update was successful. |
uint32_t bootloader_dfu_start |
( |
void |
| ) |
|
Function for starting the Device Firmware Update.
- Return values
-
NRF_SUCCESS | If new application image was successfully transferred. |
Function for processing DFU status update.
- Parameters
-
[in] | update_status | DFU update status. |
uint32_t bootloader_init |
( |
void |
| ) |
|
Function for initializing the Bootloader.
- Return values
-
NRF_SUCCESS | If bootloader was succesfully initialized. |
Function for retrieving the bootloader settings.
- Parameters
-
[out] | p_settings | A copy of the current bootloader settings is returned in the structure provided. |