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: Custom Programmer

Part Number: CC2640R2F

Hi Sir,

We loading firmware on Launchpad CC2640R2 by using a smart flash programmer  (SDK 3.1)

Steps

1) load Bim. hex

2) Stack. hex

3) app.bin

this is working fine

but we making custom programmer like flash programmer their is a problem with .bin file how to read .bin file
(if in the place of app.bin file we use the app. hex file then flash programmer shows memory error)

1) How to read the app.bin file (Like hex file)?

2) How to Load Bim.hex+Stack.hex+ App.hex (using Flash Programmer 2)?

Using 

Flash Programmer 2

SDK: -3.10

H/W:-CC2640R2

Firmware:- Multi-role

Regard's

Toravi

  • Hi,

    Could you please specify which Flash Programmer 2 version you are using? I woul recommend to update to the latest version.

    It should be possible to use Bim.hex+Stack.hex+ App.hex. Could you please share the error log provided by Flash Programmer when using app.hex?

    Regards,

  • Hi,

    We Using Smart Flash Programmer 2 Ver.1.8.2

    When Loading Bim.hex+Stack.hex+ App.hex. file it shows below error.

    >Initiate access to target: XDS-L5001NAW using 2-pin cJTAG.

    >Reading file: C:/Users/smart/Desktop/Firmware 21-1-2021/Stack 3.1 wifi/1) 1ateway wifi/hex File/bim_oad_offchip_cc2640r2lp_app.hex.

    >Reading file: C:/Users/smart/Desktop/Firmware 21-1-2021/Stack 3.1 wifi/1) 1ateway wifi/hex File/simple_peripheral_cc2640r2lp_oad_offchip_stack_FlashROM.hex.

    >Reading file: C:/Users/smart/Desktop/Firmware 21-1-2021/Stack 3.1 wifi/1) 1ateway wifi/hex File/multi_role_cc2640r2lp_app_FlashROM_StackLibrary_CacheAsRAM_oad_merged.hex.

    >Overlapping flash area in page: 19, offset address 0x0000

    >Reset target ...

    >Reset of target successful.

    Regard's

    Toravi

  • Hi Toravi,

    Overlapping flash area in page: 19, offset address 0x0000 ==> Two pieces of hex files are expected to be written at the same place. This won't be possible.

    I am a bit confused by the name of your third image (xxxx_oad_merged.hex). Could you comment where does this file comes from? Would it be possible it is already a merge of the bim, stack and app?

    Regards,

  • Hi,

    After Build the Project 

    1ateway wifi/hex File/multi_role_cc2640r2lp_app_FlashROM_StackLibrary_CacheAsRAM_oad_merged.hex

    1ateway wifi/hex File/multi_role_cc2640r2lp_app_FlashROM_StackLibrary_CacheAsRAM_oad_merged.bin

    both files are generated in workspace ( Generated in FlashROM_StackLibrary folder)

    Regard's

    Toravi

     

  • Hi Rohit,

    If it was not clear before, the issue you are experiencing is caused by the image multi_role_cc2640r2lp_app_FlashROM_StackLibrary_CacheAsRAM_oad_merged.hex. This image already contains the stack and the app. You may want to retry flashing the device by only trying to flash the BIM + the App/Stack merged image.

    To be more specific, the merged image is obtained using oad_image_tool.

    I hope this will help,

    Regards,

  • Hi,

    I am Trying to flash the BIM + the App/Stack merged image Firmware Build Succefully but not Firmware not working.

    Regard's

    Toravi

  • Hi,

    I am not sure why this did not work for you.

    I would recommend to keep using the solution you were already using.

    Thanks and regards,

  • Hi Sir,

    I also add Metadata in the .hex(Same like .bin file) file header but still not working.

    i try 1) (Bim.hex+Stack.hex+App.hex)

    2) (Bim.hex+App.hex)

    3) (Stack.hex+App.hex)

    but not working

    Regard's

    Toravi