Generate Firmware
After a Bluetooth LE application is built, Keil automatically runs the after_build.bat. The after_build.bat calls the ble_tools.exe to read configuration parameters in the user configuration file custom_config.h, and generates an SCA image file which is merged with the information in the application firmware from Keil to generate a piece of firmware that is applicable to GR551x SoCs.
After building a Bluetooth LE application, you can directly click Build on the Keil toolbar to build a project. After the project is built, the following firmware files are generated in Keil_5\build in the project directory.
Name | Description |
---|---|
ble_app_example_fw.bin | Binary application firmware with SCA image information; can be downloaded to an SoC through GProgrammer |
ble_app_example_encrypt_fw.bin | Encrypted binary application firmware with SCA image information; can be downloaded to an encrypted SoC through GProgrammer |
load_app.hex | Binary application firmware with SCA image information; can be downloaded to an SoC through Keil |
load_app_encrypt.hex | Encrypted binary application firmware with SCA image information; can be downloaded to an encrypted SoC through Keil |
The load_app.hex and the load_app_encrypt.hex are fixed names to facilitate downloading firmware by using the same download script. For more information, see the download.ini file mentioned in “Download .hex Files to Flash”.