Performing a FOTA Update

1. Make sure you have bootloader running on your RSL EVB. If you have executed the steps in Performing Your First FOTA Update, you already have bootloader flashed on your board and you can skip this step. Otherwise, refer to Setting Up the Bootloader and Loading a Firmware Image Using UART for instructions.
2. Activate the bootloader updater mode: Connect the UPDATE_GPIO from the bootloader application to ground on the RSL EVB, and then push the reset button. The bootloader updater is now active, waiting for a firmware image over UART.

NOTE: If there is a valid user application in flash (for example, the ble_peripheral_server_fota) and no command is received over UART after 30 seconds, the bootloader updater times out and reboots into the user application.

3. Load the ble_peripheral_direction_finding.fota image using the bootloader with the following command:

> python updater.py COM3 ble_peripheral_direction_finding.fota

Image : DF ver=1.0.0 / FOTA ver=1.0.0

Application: FOTA ver=1.0.0

Bootloader : BOOTL* ver=1.0.0

***********************************************************************************

After loading the image, the bootloader resets the device and boots up the user application.

Figure: Application Running

4. Connect the FOTA_GPIO (GPIO1) to ground so that the device starts the FOTA DFU mode. You can see the name RSL FOTA on the RSL BLE Explorer. After checking that the name is RSL FOTA, disconnect FOTA_GPIO from ground, as in the "FOTA DFU Mode Running" figure, below:

Figure: FOTA DFU Mode Running

Note: after 30 seconds, the FOTA DFU Mode times out and reboots into the user application.

5. Within 30 seconds of activating the FOTA DFU Mode, Click on the Update Firmware option on the BLE Explorer and select the ble_peripheral_direction_finding.fota image file.
6. You can repeat these steps to update the firmware with the ble_peripheral_server_fota.fota image as well. The steps described here can be applied to any Bluetooth Low Energy sample application.