Create a binary file for OTAP

Showing results for 
Search instead for 
Did you mean: 

Create a binary file for OTAP

No ratings

Create a binary file for OTAP

The KW40Z connectivity software stack has several demo application available, and one of them is the OTAP client. This application allows the user to reprogram the device in a wireless fashion. This can be done by both using another device with an OTAP server application, or with the Kinetis BLE Toolbox mobile application, using the OTAP tool.

To create a binary file for the KW40Z, follow these next steps:

  1. Using IAR Embedded Workbench, open the application you want to send through OTAP.
  2. Right click the main project, and open the Options... menu.                                                                                                                                              1.png
  3. In the options menu, go to the Output Converter submenu. In the Output Converter submenu, check the "Generate additional output" box, and choose Motorola as the Output format.                                                                                                                                                                            1.png
  4. In the options menu, go to the Linker submenu. Now, in the Config tab, replace the symbols in the Configuration file symbol definitions box with these:
    • gUseNVMLink_d=1
    • gUseBootloaderLink_d=1
    • gUseInternalStorageLink_d=0
    • __ram_vector_table__=1                                                                                                                                                                                              1.png
  5. In the Linker submenu, go to the Input tab. In the Keep symbols box, add the symbol 'bootloader' (without the quotes).
  6. In the Input tab, in the Raw binary image box, in the File option, add the following path:
    • $PROJ_DIR$\..\..\..\..\..\..\..\framework\Bootloader\Bin\BootloaderOTAP_KW40Z4.bin
  7. In the Raw binary image box, add the following options to the Symbol, Section and Align boxes:
    • Symbol: bootloader
    • Section: .bootloader
    • Align: 4                                                                                                                                                                                                                         1.png
  8. Press OK. Compile the project. The output file (*.srec) should be in the main project folder, inside the debug folder.                                                      1.png
  9. You can now use this binary file to reprogram your device with OTAP.
Labels (2)

What is the use for:




Bluetooth® Low Energy Application Developer’s Guide Rev. 1, 10/2015

Since customer use different IDE other than IAR.

Could you offer the same example on MDK Keil and MCUXpresso IDE?

Otherwise it is useless for Keil or MXUXpresso user.

Version history
Last update:
‎07-21-2016 11:02 AM
Updated by: