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/CC2640R2F: How to merged the oad onchip hex?

Part Number: CC2640R2F


Tool/software: TI-RTOS

Hi,

    I was successed to merged the oad offchip hex.( I was reference form )

But I don't know how to merged the onchip hex. The TI stack is simplelink_cc2640r2_sdk_2_40_00_32

  • I try to use srec_cat.exe to merged.But the merged hex always run the persistent_app image at first,after oad can run into user app image.
    I want to run user app image at first. How to do it?
    Thanks!
  • This is my bat file code

    @echo off

    @set DEST_PATH=app\FlashROM\Exe
    @set MERGED_BIN=app\FlashROM\Exe\sp_oad_onchip_cc2640r2lp_app_FlashROM_oad_merged.bin
    @set MERGED_HEX=app\FlashROM\Exe\sp_oad_onchip_cc2640r2lp_app_FlashROM_oad_merged.hex
    @set PERSISTENT_BIN=persistent_app\FlashOnly\Exe\sp_oad_onchip_cc2640r2lp_persistent_app_FlashOnly.bin
    @set PERSISTENT_HEX=persistent_app\FlashOnly\Exe\sp_oad_onchip_cc2640r2lp_persistent_app_FlashOnly.hex
    @set APP_HEX=app\FlashROM\Exe\sp_oad_onchip_cc2640r2lp_app_FlashROM.hex
    @set STACK_HEX=stack\FlashROM\Exe\sp_oad_onchip_cc2640r2lp_stack_FlashROM.hex
    @set BIM_HEX=bim_onchip\FlashOnly\Exe\sp_oad_onchip_cc2640r2lp_bim_onchip_FlashOnly.hex

    @set OUT_NAME=peripheralOnchipProduction

    srec_cat.exe %BIM_HEX% -intel %PERSISTENT_HEX% -intel %MERGED_BIN% -bin -o %DEST_PATH%\%OUT_NAME%.hex -intel

    @echo build %OUT_NAME%.hex success!
    pause
  • Hello User,
    Have you gone through the simplelink academy training for BLE enhanced OAD?
    Are you using the BLE3 stack (i.e. with BLE 4.2 spec features)? BLE5 stack does not support on-chip due to limited flash size.
  • Hi Eirik,
    I use BLE3 stack,
    (..\ti\simplelink_cc2640r2_sdk_2_40_00_32\examples\rtos\CC2640R2_LAUNCHXL\blestack\simple_peripheral_oad_onchip)
  • Hi Eirik,

    Could you please provide some doc about oad_onchip for me?

    Thanks!

  • Hello User,
    Did you try split image approach where you use srec
    sp_oad_onchip_cc2640r2lp_app_FlashROM_oad.bin
    sp_oad_onchip_cc2640r2lp_stack_FlashROM.hex

    <SREC_LOC>/srec_cat.exe BIM.hex -intel PERSISTENT.hex -intel STACK.hex -intel app_oad.bin -bin -o SUPER.hex -intel

    Did you review this thread:
    e2e.ti.com/.../2627457

    Be sure that all projects are using matching configurations (secure vs unsecure). Right-click project -> Build configuration -> set active. Make sure all are either FlashOnly or FlashOnly_unsecure.