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.

CC2640R2F: How to combine onchip OAD fourth file to one file for downloading easily?

Part Number: CC2640R2F
Other Parts Discussed in Thread: BLE-STACK

Hi Team,

         As we known, our Onchip OAD demo need fourth file and they are 

1. bim_oad_onchip_cc2640r2lp_app.hex

2. persistent_app_cc2640r2lp_FlashOnly.hex

3.simple_peripheral_cc2640r2lp_oad_onchip_stack_FlashROM.hex

4.simple_peripheral_cc2640r2lp_oad_onchip_app_FlashROM_oad.bin

So customer need to download fourth file when out off Factory. How to combine onchip OAD fourth file to one file for downloading easily?

Thank you!

  • Hi Eggsy,

    What version of the SDK are you using?

    The oad_image_tool combines the images to one downloadable image. (BTW, the BIM and persistent app are not overwritten by oad, so you only have to combine the app and stack images.) If you're building your project in an IDE, oad_image_tool is called as a post-build step. You can also use oad_image_tool as a stand-alone tool. See the BLE-Stack User's Guide.
  • HI Marie,

    I used SDK1.4. The project is simple_peripheral_cc2640r2lp_oad_onchip. I know BIM and persistent app are not overwritten by oad. So customers hope the BIM, persistent app, stack and ImageB can combines to one image.
    Could you share the link which teach me how to combines the images to one downloadable image?
  • Hi Eggsy,

    You need to use a combination of the oad_image_tool (to generate oad header) and hexmerge (intelhex):

    1) Run oad_image_tool on image B to append the oad_image_header.
    2) run bin2hex on image B.bin to convert to hex
    3) run hexmerge on all four files to merge them.
  • Marie,

    Thanks for your help!

    Sorry for my first time to use the below tool. I don't know how to implement .

     Where can I find the more information how to implement below step! 

    1) Run oad_image_tool on image B to append the oad_image_header.
    2) run bin2hex on image B.bin to convert to hex
    3) run hexmerge on all four files to merge them.

  • Hi Eggsy,

    You can find more info about oad image tool in the BLE-Stack User's Guide. You can find more information on Intelhex here: pypi.org/.../