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/CC1350: simplelink_cc13x0_sdk_1_40_00_10 doesn't run on IAR 7.80

Part Number: CC1350

Tool/software: TI-RTOS

I try to run a project allready run on 7.40 with SDK tirtos_cc13xx_cc26xx_2_21_00_06 on SDK  simplelink_cc13x0_sdk_1_40_00_10

It give me the following error:

Variable expansion failed for Pre-Build command line.Offending text: ""$XDCROOT$/xs" --xdcpath="$XDCPATH$" iar.tools.configuro -c "$TOOLKIT_DIR$" --cc "$COMPILER_PATH$" --device "$DEVICE$" --compileOptions $COMPILER_ARGS_ROOT_QUOTED$ --linkOptions $LINKER_ARGS_QUOTED$ --profile release --projFile "$PROJ_PATH$""

I point to the SDK in configure Custom Argument Variables as this

 try also to reinstall the SDK but no help.

What do I miss?

Bar.

  • Can you specify which example do you test in simplelink_cc13x0_sdk_1_40_00_10?
  • I use my project which was all ready run with tirtos_cc13xx_cc26xx_2_21_00_06 on IAR 7.40.

    I want to check for bug fix in 1.40 so I run it on IAR 7.80 with SDK  1.40.

    I just enable thus SDK in my workplace.

    Is there more setting to do?

  • Hi Bar

    SDK 1.30 will run with IAR version 7.80. For SDK 1.40 you need IAR 8.10 or newer.

    BR

    Siri

  • Hi Siri.

    I lunch today the SDK 1.30 with IAR 7.80.

    Enable it in the workspace. For some reason it won't go up on the global  Tab also i use the import and point to SIMPLELINK_CC13XX_CC26XX_SDK.custom_argvars.

    Get  the some errors.

    Variable expansion failed for Pre-Build command line.

    Offending text: ""$XDCROOT$/xs" --xdcpath="$XDCPATH$" iar.tools.configuro -c "$TOOLKIT_DIR$" --cc "$COMPILER_PATH$" --device "$DEVICE$" --compileOptions $COMPILER_ARGS_ROOT_QUOTED$ --linkOptions

    $LINKER_ARGS_QUOTED$ --profile release --projFile "$PROJ_PATH$""

    Any idea what can be go wrong?

    Bar.

  • Hi Bar

    Please try the following steps and see if it works.

    1) Open IAR and go to “Configure Custom Arguments Variables”

    2) Delete whatever is there from before:

    3) Import the SIMPLELINK_CC13XX_CC26XX_SDK.custom_argvars from:

    <Install Dir>\ti\simplelink_cc13x0_sdk_1_30_00_06\tools\iar

    4) Press OK.              

    5) Close down IAR and open it again

    6) Go to integrated solutions and open the project you want to run.

    Are you able to compile the project now?

    Siri

  • Hi Siri.

    I did what you say.

    Opening example it seccuss to compile. But when I take my project which was work on 7.40 with tirtos_cc13xx_cc26xx_2_21_00_06.

    But when move to 7.80 to check bug fix in the SDK it fail on simplelink_cc13x0_sdk_1_30_00_06 with the error 

    Variable expansion failed for Pre-Build command line.

    Offending text: ""$XDCROOT$/xs" --xdcpath="$XDCPATH$" iar.tools.configuro -c "$TOOLKIT_DIR$" --cc "$COMPILER_PATH$" --device "$DEVICE$" --compileOptions $COMPILER_ARGS_ROOT_QUOTED$ --linkOptions

    $LINKER_ARGS_QUOTED$ --profile release --projFile "$PROJ_PATH$""

    What do I miss here?

    Bar.

  • Hi Siri.

    I didn't get progress with it. Any idea?

    I compare the build Actions Configuration and found a different between my project and the example I run.

    On the example it configure to

    iarbuild.exe $SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR$/kernel/tirtos/builds/CC1350STK/release/iar/tirtos_builds_CC1350STK_release.ewp Debug -log all

    On my project it configure to:

    "$XDCROOT$/xs" --xdcpath="$XDCPATH$" iar.tools.configuro -c "$TOOLKIT_DIR$" --cc "$COMPILER_PATH$" --device "$DEVICE$" --compileOptions $COMPILER_ARGS_ROOT_QUOTED$ --linkOptions $LINKER_ARGS_QUOTED$ --profile release --projFile "$PROJ_PATH$"

    I don't know if it is because the source of my project is different but when I try to use the example setting in my project it make a lot of errores.

    So where could be the problem when immigrate project from 7.40 with SDK tirtos_cc13xx_cc26xx_2_21_00_06 to 7.80 with SDK simplelink_cc13x0_sdk_1_30_00_06? I was thinking it is straightforward, where IAR do all the job.

    I can't find any discussion about it.

    Bar.

     

  • Hi Bar

    SDK 1_30 uses the following for include patchs in smartrf_settings.c:

    include DEVICE_FAMILY_PATH(driverlib/rf_common_cmd.h)

    while SDK 1_40 uses this format:

    #include DeviceFamily_constructPath(driverlib/rf_common_cmd.h)

    Could this be related to the error message you are seeing?

    BR

    Siri

  • Hi Siri.

    No it isn't the reason.

    On my project it state as #include <driverlib/rf_common_cmd.h>

    But in any case the error I get is all ready in the Prebuild phase where it announce general error 

    Offending text: ""$XDCROOT$/xs" --xdcpath="$XDCPATH$" iar.tools.configuro -c "$TOOLKIT_DIR$" --cc "$COMPILER_PATH$" --device "$DEVICE$" --compileOptions $COMPILER_ARGS_ROOT_QUOTED$ --linkOptions

    $LINKER_ARGS_QUOTED$ --profile release --projFile "$PROJ_PATH$""

    Also I try the SDK 1.30 option didn't help.

    Bar.