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: SDK 1.3 _ Off_chip OAD + Multirole Linker command file

Part Number: CC2640R2F

Tool/software: TI-RTOS

Hi:

Im making the off-chip OAD + Multirole demo.

I'm referring to this document.

file:///C:/TI/simplelink_cc2640r2_sdk_1_30_00_25/docs/blestack/ble_sw_dev_guide/html/oad/oad.html#sec-generating-oad-linker-file

Now, I'm having this error on the linking stage.

Can someone share us the working Multi-role + Off chip OAD linker command file?

The documentation is too far away with the SDK1.3 / SDK1.4 linker command file.

BR Rio

C:/TI/simplelink_cc2640r2_sdk_1_30_00_25/tools/blestack/oad/oad_image_tool multi_role_cc2640r2lp_app.hex -t offchip -i app --imgVer 0 -ob multi_role_cc2640r2lp_app.bin -m 0x0000 -r :0xF000

 

******************************************************************************************

Texas Instruments OAD Image Tool

Version: 1.0

******************************************************************************************

 

OAD Type: offchip

Img Type: APP

Input file(s): multi_role_cc2640r2lp_app.hex

Output Hex file: None

Output Bin file: multi_role_cc2640r2lp_app.bin

 

Layout of concatenated input files, per flash sector, before applying --range.

 

00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 | 13 | 14 | 15

XXXX xXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX

XXXX xXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX

XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX

XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX

 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31

XXXX XX-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- 0000 0000 ---_[41m._[0m

XXXX xX-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- 0000 0000 ----

XXXX XX-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- 0000 0000 ----

XXXX XX.- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- 0000 0000 ----

 

  Legend: `X` 100% full, `x` >50% full, `.` <50% full, `-` empty, `F` all 0xFF,

  `0` all 0x00.

******************************************************************************************

Runtime Output:

 

Fatal Error: -- The provided metadata location (0x00000000) is not empty. Exiting.

makefile:212: recipe for target 'post-build' failed

' '

gmake[2]: [post-build] Error 1 (ignored)

 

**** Build Finished ****

  • May someone tell me how to solve this issue?

    Please share me the correct cmd file for Mult-Role + Offchip oad.

    And the correct post build commands.

    Thanks.

  • Hi Rio,

    Correct me if wrong, but it looks like you are trying to build off of the original cc26xx_app.cmd file included in the multirole project.

    The one you want to use is the cc26xx_app_oad.cmd which is located in the same folder as the other cmd file (C:\ti\simplelink_cc2640r2_sdk_1_40_00_45\source\ti\blestack\common\cc26xx\ccs\cc26xx_app_oad.cmd).

    You won't need to modify this cmd file, just use it. However in the stack project, you will want to go into the project properties and set the predefined symbol OSAL_SNV to 1 instead of 2.

    -Sy Su

  • Hi Sy:

    If following the document to set the cmd file as: cc26xx_app_oad.cmd, it will show those errors.

    May you share me the working cmd file to me?

    BR Rio

    C:/TI/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/common/cc26xx/ccs/cc26xx_app_oad.cmd" -llibc.a
    <Linking>
    error #10324-D: BOUND section ".TI.bound:SNV_FLASH" spans the boundary of an existing memory range FLASH
    error #10099-D: program will not fit into available memory. placement with alignment fails for section ".TI.bound:SNV_FLASH" size 0x2000
    error #10010: errors encountered during linking; "multi_role_cc2640r2lp_app.out" not built

    >> Compilation failure
    makefile:188: recipe for target 'multi_role_cc2640r2lp_app.out' failed
    gmake[1]: *** [multi_role_cc2640r2lp_app.out] Error 1
    makefile:184: recipe for target 'all' failed
    gmake: *** [all] Error 2

  • Hi Rio,

    You should use the cc26xx_app_oad.cmd file only and do no changes in that file.
    The error causes because you should change also the Linker path.

    Regards,
    Abhishek Yakkundi

    Please press Verify Answer below if this answered your question.