Generating the FOTA Firmware Image

  1. Open the Examples tab in the Pack Manager perspective to see example projects, included in the RSL CMSIS-Pack.
  2. Find the ble_peripheral_server_fota example project and click the Copy button to import it into your workspace. (See the "Importing the FOTA Sample Project" figure.)

Figure: Importing the FOTA Sample Project

  1. The C/C++ perspective opens and displays your newly copied project. In the Project Explorer panel, you can expand your project folder and explore the files inside your project, as seen in the "Files in FOTA Sample Project" figure. On the right side, the ble_peripheral_server_fota.rteconfig file displays the selected software components, including the new component named FOTA. If you expand RTE > Device > <device>, you can find the FOTA library (libfota.a), the FOTA Bluetooth Low Energy Stack binary file (fota.bin), and mkfotaimg.exe. These files are automatically added to your sample project once the FOTA component is selected.

Figure: Files in FOTA Sample Project

  1. Build the ble_peripheral_server_fota project. After a successful build, the ble_peripheral_server_fota.fota image is generated under the Release folder, as seen in the ".fota Image in Release Folder" figure:

Figure: .fota Image in Release Folder

The generated .fota file contains both the FOTA Bluetooth Low Energy stack sub-image (fota.bin) and the application sub-image. This file can be used by BLE Explorer to perform a FOTA update, or by the bootloader UART PC updater tool to perform a UART firmware update.

IMPORTANT: The bootloader UART PC updater tool is found as file updater.py in the bootloader/utility folder. For more information, see Setting Up the Bootloader and Loading a Firmware Image Using UART.