This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/SIMPLELINK-CC2640R2-SDK: OAD Image Tool Usage, Combining BIM + APP + STACK for production hex file

Part Number: SIMPLELINK-CC2640R2-SDK
Other Parts Discussed in Thread: BLE-STACK

Tool/software: TI-RTOS

Hi everyone,


I am following BLE stack user guide for Bluetooth 4.2 to make production off-chip image.

As documented in section Generating a Production Image for OAD

A production image is one that contains the app, stack, and BIM images combined into a single file.

However, i could not find proper documentation and examples that tells how to use oad_image_tool.exe. 

Under the Generate production Off-Chip using CCS, the post build steps is given

${TOOLS_BLE_DIR}/oad/oad_image_tool         ccs ${PROJECT_LOC} 1         FlashROM/${ProjName}_${ConfigName}.hex         ${WORKSPACE_LOC}/simple_peripheral_cc2640r2lp_oad_offchip_stack/TOOLS/ccs_compiler_defines.bcfg         ${WORKSPACE_LOC}/simple_peripheral_cc2640r2lp_oad_offchip_stack/FlashROM/simple_peripheral_cc2640r2lp_oad_offchip_stack_FlashROM.hex         -o ${WORKSPACE_LOC}/simple_peripheral_cc2640r2lp_oad_offchip_app/FlashROM/${ProjName}_${ConfigName}_oad


Is there any order that i should follow while combining multiple hex files ?
Such as, combine bim and stack first, then combine the app and previously generated file.

To combine bim and merged hex file(app + stack); Which boundary file i should give ?



${TOOLS_BLE_DIR}/oad/oad_image_tool         ccs ${PROJECT_LOC} 0         
${WORKSPACE_LOC}/bim_oad_offchip_cc2640r2lp_app/FlashOnly/bim_oad_offchip_cc2640r2lp_app.hex
|||||||||||||||Boundary File Path|||||||||||||||||||     
FlashROM/${ProjName}_${ConfigName}_oad_merged.hex -o ${WORKSPACE_LOC}/simple_peripheral_cc2640r2lp_oad_offchip_app/FlashROM/${ProjName}_${ConfigName}_multiple_combined

Is this post-build is correct ? Any help would be very appreciated.
How can i find full documentation of oad_image_tool.exe ?

I am currently using BLE SDK v1.40. 

Thanks
Best regards

  • Hi erdem,

    That feature is not currently supported in the OAD Image Tool for BLE-Stack v3.1.0. Everything you need should be part of the Python IntelHex library I would recommend taking the output of the OAD image tool (*_oad.bin), running it through bin2hex.py, then using hexmerge.py to merge your OAD-enabled image with your BIM.