![](/media/cache/profiles/312e53ccba0b2ddfefd4a1f05b55bcdd.jpg.50x50_q85.jpg)
BLE FOTA APP
It doesn't work with the default FOTA bootloader. It use NVIC_SystemReset() to enter a bootloader.
nRF51822/nordic/nrf-sdk/bootloader_dfu/bootloader_util.h@1:a607cd9655d7, 2014-10-10 (annotated)
- Committer:
- yihui
- Date:
- Fri Oct 10 03:36:28 2014 +0000
- Revision:
- 1:a607cd9655d7
use NVIC_SystemReset() to run bootloader
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
yihui | 1:a607cd9655d7 | 1 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved. |
yihui | 1:a607cd9655d7 | 2 | * |
yihui | 1:a607cd9655d7 | 3 | * The information contained herein is property of Nordic Semiconductor ASA. |
yihui | 1:a607cd9655d7 | 4 | * Terms and conditions of usage are described in detail in NORDIC |
yihui | 1:a607cd9655d7 | 5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. |
yihui | 1:a607cd9655d7 | 6 | * |
yihui | 1:a607cd9655d7 | 7 | * Licensees are granted free, non-transferable use of the information. NO |
yihui | 1:a607cd9655d7 | 8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from |
yihui | 1:a607cd9655d7 | 9 | * the file. |
yihui | 1:a607cd9655d7 | 10 | * |
yihui | 1:a607cd9655d7 | 11 | */ |
yihui | 1:a607cd9655d7 | 12 | |
yihui | 1:a607cd9655d7 | 13 | /**@file |
yihui | 1:a607cd9655d7 | 14 | * |
yihui | 1:a607cd9655d7 | 15 | * @defgroup nrf_bootloader_util Bootloader util API. |
yihui | 1:a607cd9655d7 | 16 | * @{ |
yihui | 1:a607cd9655d7 | 17 | * |
yihui | 1:a607cd9655d7 | 18 | * @brief Bootloader util module interface. |
yihui | 1:a607cd9655d7 | 19 | */ |
yihui | 1:a607cd9655d7 | 20 | |
yihui | 1:a607cd9655d7 | 21 | #ifndef BOOTLOADER_UTIL_H__ |
yihui | 1:a607cd9655d7 | 22 | #define BOOTLOADER_UTIL_H__ |
yihui | 1:a607cd9655d7 | 23 | |
yihui | 1:a607cd9655d7 | 24 | #include <stdint.h> |
yihui | 1:a607cd9655d7 | 25 | #include "bootloader_types.h" |
yihui | 1:a607cd9655d7 | 26 | |
yihui | 1:a607cd9655d7 | 27 | /**@brief Function for starting the application (or bootloader) at the provided address. |
yihui | 1:a607cd9655d7 | 28 | * |
yihui | 1:a607cd9655d7 | 29 | * @param[in] start_addr Start address. |
yihui | 1:a607cd9655d7 | 30 | * |
yihui | 1:a607cd9655d7 | 31 | * @note This function will never retrun. Instead it will reset into the application of the |
yihui | 1:a607cd9655d7 | 32 | * provided address. |
yihui | 1:a607cd9655d7 | 33 | */ |
yihui | 1:a607cd9655d7 | 34 | void bootloader_util_app_start(uint32_t start_addr); |
yihui | 1:a607cd9655d7 | 35 | |
yihui | 1:a607cd9655d7 | 36 | #endif // BOOTLOADER_UTIL_H__ |
yihui | 1:a607cd9655d7 | 37 | |
yihui | 1:a607cd9655d7 | 38 | /**@} */ |