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: CC2640R2F offchip oad oad_image_tool error

Part Number: CC2640R2F

Hi,

Since the memory size is not enough, I move from onchip to offchip oad.

I start from Simplelink_cc2640r2_sdk_4_10_00_10  "Simple_peripheral_oad_offchip" example.

IAR ver. 8.40.2 is used. It generates "sp_oad_offchip_cc2640r2lp_app_FlashROM.hex" , "sp_oad_offchip_cc2640r2lp_bim_FlashOnly.hex"

and sp_oad_offchip_cc2640r2lp_stack_flashROM.hex".

I want to generate a file that can be downloaded from the Flash Programmer 2 to the launch pad to make it work and use the following command but found errors.

In order to make the command short, I rename the above files and put into a folder called "oad_file" in c drive.

C:\ti\simplelink_cc2640r2_sdk_4_10_00_10\tools\blestack\oad>oad_image_tool.exe c:\oad_file\bim.hex c:\oad_file\app.hex c:\oad_file\stack.hex -o c:\oad_file\test.hex -i production -t offchip
usage: oad_image_tool [-h] [-v] [-verbose] [-hex1 HEXPATH1] [-bdf BDFILEPATH]
[-hex2 [HEXPATH2]] [-k [KEYFILE]] -o OUTPUT
ProjType ProjDir BinaryType
oad_image_tool: error: argument BinaryType: invalid int value 'c:\\oad_file\\stack.hex'

I am not sure whether the command is correct or any other simple method can do it?

For onchip oad, I just using Flash programmer 2 to multiple download the bim, persistent app and stack. The application app .bin is oad through BTool.

Please help and thanks in advance,

Rin

 

  • Hey Rin,

    If you start with the default project, it should invoke the oad_image_tool.exe automatically with the correct parameters.

    Are you wanting to make a single, combined file to flash to your devices for production? You may find the answer you're looking for in our Simplelink Academy Module for OAD, under Task 4 – Bonus: Creating a Production Image.

    Hope this helps.

  • Hi Ammar,

    Thanks for your reply. I use the latest Simplelink_cc2640r2_sdk_5_10_00_02

    default example simple_peripheral_oad_offchip. 3 files generated successfully from IAR.

    C:/ti/simplelink_cc2640r2_sdk_5_10_00_02/examples/rtos/CC2640R2_LAUNCHXL/blestack/simple_peripheral_oad_offchip/tirtos/iar/bim_offchip/FlashOnly/Exe/sp_oad_offchip_cc2640r2lp_bim_offchip_FlashOnly.hex

    C:/ti/simplelink_cc2640r2_sdk_5_10_00_02/examples/rtos/CC2640R2_LAUNCHXL/blestack/simple_peripheral_oad_offchip/tirtos/iar/app/FlashROM/Exe/sp_oad_offchip_cc2640r2lp_app_FlashROM.hex

    C:/ti/simplelink_cc2640r2_sdk_5_10_00_02/examples/rtos/CC2640R2_LAUNCHXL/blestack/simple_peripheral_oad_offchip/tirtos/iar/stack/FlashROM/Exe/sp_oad_offchip_cc2640r2lp_stack_FlashROM.hex

    I use Flash Programmer 2 download 3 files to launch pad as shown but it seems not booting (no LED flashing at the beginning).

    Also, no BLE advertising. I am not sure the method is correct.

    Thanks,

    Rin

  • Hey Rin,

    You'll need to flash the _bin files to the launchpad. For more information, please see our User's Guide section on OAD, here.