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.

Getting Started with IAR & MSP430 TI-RTOS

Other Parts Discussed in Thread: MSP430F5529, MSP430WARE

I am using the TI-RTOS 1.21 Getting Started guide to set up IAR Embedded Workbench for MSP430 V6.10.2.  I have successfully generated the examples files and have set the Custom Argument Variables as described in the guide.

The values are:

XDCROOT = D:/ti/xdctools_3_30_01_25_core

XDCPATH = D:/ti/tirtos_msp430_2_00_02_36/packages;D:/ti/tirtos_msp430_2_00_02_36/products/uia_2_00_01_34/packages;;D:/ti/tirtos_msp430_2_00_02_36/products/bios_6_40_02_27/packages;

EXAMPLE_ROOT = d:\ti\RTOS_Examples\tirtos_msp430_2_00_02_36_examples\IAR

My first attempt at building a simple project consisting of the main.c from Lab 4 of the "Intro to the TI-RTOS Kernel Workshop" yielded:

Building configuration: TIRTOS - Debug 

Updating build tree...
Performing Pre-Build Action
Error while running "D:/ti/xdctools_3_30_01_25_core/xs"
--xdcpath="D:/ti/tirtos_msp430_2_00_02_36/packages;D:/ti/tirtos_msp430_2_00_02_36/products/uia_2_00_01_34/packages;;D:/ti/tirtos_msp430_2_00_02_36/products/bios_6_40_02_27/packages;" iar.tools.configuro -c "D:\Program
Files (x86)\IAR Systems\Embedded Workbench 7.0\430" --cc "D:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\430\bin\icc430.exe" --device "MSP430F5529" --compileOptions "-f \"D:\ti\IAR
Tutorial/configPkg/compiler.opt.defs\" --diag_suppress=Pa050 -DMSP430WARE -ID:/ti/tirtos_msp430_2_00_02_36/products/MSP430Ware_1_80_01_03a/driverlib/MSP430F5xx_6xx -o \"D:\ti\IAR Tutorial\Debug\Obj\\\" --no_cse
--no_unroll --no_inline --no_code_motion --no_tbaa --debug -D__MSP430F5529__ -e --double=32 --dlib_config \"D:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\430\lib\dlib\dl430xlsfn.h\" --core=430X --data_model=small
-Ol --multiplier=32 --multiplier_location=4C0 --hw_workaround=CPU40 --hw_workaround=CPU39 --segment __data16=DATA16 --segment __data20=DATA20 --code_model=large" --linkOptions "-f \"D:\ti\IAR Tutorial/configPkg/linker.cmd\
" D:/ti/tirtos_msp430_2_00_02_36/products/MSP430Ware_1_80_01_03a/driverlib/iar-MSP430F5529/iar-MSP430F5529.r43 -o \"D:\ti\IAR Tutorial\Debug\Exe\TIRTOS.d43\" \"-ID:\Program Files (x86)\IAR Systems\Embedded Workbench
7.0\430\LIB\\\" -f \"D:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\430\config\linker\lnk430F5529.xcl\" -f \"D:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\430\config\linker\multiplier32_loc2.xcl\"
-D_STACK_SIZE=200 -rt \"D:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\430\lib\dlib\dl430xlsfn.r43\" -D_DATA16_HEAP_SIZE=0 -s __program_start -D_DATA20_HEAP_SIZE=0" --profile release --projFile "D:\ti\IAR
Tutorial\TIRTOS.ewp"

Total number of errors: 1
Total number of warnings: 0

I don't even know what xs.exe is, much less why it is throwing an error!  Help please!

Jim

  • It looks like there are some hard-coded paths (c:\ti) in the generated examples. You can re-generate the examples with the following steps.

    1. edit the tirtos.mak to have the correct paths to compiler, CCS and the installed TI-RTOS and enable IAR.

    2. Run the ..\xdctools\gmake -f tirtos.mak examplesgen to get help on how to setup the destination path.

    3. Delete the custom arg you had already imported and add the new one.

    Now try importing an example and building. Please let me know if this works so I can write-up the bug report properly.

    Of course you could also just install the product into c:\ti.

    Thanks,
    Todd

     

  • Todd:

    Thank you for your response.  Unfortunately, I have not made any progress.  Here is my examplegen command line:

    D:\ti\tirtos_msp430_2_00_02_36>..\xdctools_3_30_01_25_core\gmake -f tirtos.mak e
    xamplesgen DEST=d:/ti/RTOS_Examples

    Here is my resulting custom_argvars file:

    ?xml version="1.0" encoding="iso-8859-1"?>

    <iarUserArgVars>
    <group active="true" name="tirtos_msp430_2_00_02_36">
    <variable>
    <name>XDCROOT</name>
    <value>D:/ti/xdctools_3_30_01_25_core</value>
    </variable>
    <variable>
    <name>XDCPATH</name>
    <value>D:/ti/tirtos_msp430_2_00_02_36/packages;D:/ti/tirtos_msp430_2_00_02_36/products/uia_2_00_01_34/packages;;D:/ti/tirtos_msp430_2_00_02_36/products/bios_6_40_02_27/packages;</value>
    </variable>
    <variable>
    <name>EXAMPLE_ROOT</name>
    <value>d:\ti\RTOS_Examples\tirtos_msp430_2_00_02_36_examples\IAR</value>
    </variable>
    </group>
    </iarUserArgVars>

    I notice a variety of forward '/' and back slash '\' characters.  Could this be part of the problem? What should they be?

    This is my latest build error message (no change other than project name but included for completeness):

    Building configuration: Another1 - Debug
    Updating build tree...
    Performing Pre-Build Action
    Error while running "D:/ti/xdctools_3_30_01_25_core/xs"
    --xdcpath="D:/ti/tirtos_msp430_2_00_02_36/packages;D:/ti/tirtos_msp430_2_00_02_36/products/uia_2_00_01_34/packages;;D:/ti/tirtos_msp430_2_00_02_36/products/bios_6_40_02_27/packages;" iar.tools.configuro -c "D:\Program
    Files (x86)\IAR Systems\Embedded Workbench 7.0\430" --cc "D:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\430\bin\icc430.exe" --device "MSP430F5529" --compileOptions "-f \"D:\ti\IAR
    Tutorial/configPkg/compiler.opt.defs\" --diag_suppress=Pa050 -DMSP430WARE -ID:/ti/tirtos_msp430_2_00_02_36/products/MSP430Ware_1_80_01_03a/driverlib/MSP430F5xx_6xx -o \"D:\ti\IAR Tutorial\Debug\Obj\\\" --no_cse
    --no_unroll --no_inline --no_code_motion --no_tbaa --debug -D__MSP430F5529__ -e --double=32 --dlib_config \"D:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\430\lib\dlib\dl430xlsfn.h\" --core=430X --data_model=small
    -Ol --multiplier=32 --multiplier_location=4C0 --hw_workaround=CPU40 --hw_workaround=CPU39 --segment __data16=DATA16 --segment __data20=DATA20 --code_model=large" --linkOptions "-f \"D:\ti\IAR Tutorial/configPkg/linker.cmd\
    " D:/ti/tirtos_msp430_2_00_02_36/products/MSP430Ware_1_80_01_03a/driverlib/iar-MSP430F5529/iar-MSP430F5529.r43 -o \"D:\ti\IAR Tutorial\Debug\Exe\Another1.d43\" \"-ID:\Program Files (x86)\IAR Systems\Embedded Workbench
    7.0\430\LIB\\\" -f \"D:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\430\config\linker\lnk430F5529.xcl\" -f \"D:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\430\config\linker\multiplier32_loc2.xcl\"
    -D_STACK_SIZE=200 -rt \"D:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\430\lib\dlib\dl430xlsfn.r43\" -D_DATA16_HEAP_SIZE=0 -s __program_start -D_DATA20_HEAP_SIZE=0" --profile release --projFile "D:\ti\IAR
    Tutorial\Another1.ewp"

    Total number of errors: 1
    Total number of warnings: 0

  • Can you attach the custom_argvars file and the zip of the directory of the example you are trying to build (e.g. tirtos_msp430_2_00_02_36_examples\IAR\MSP_EXP430F5529\fatsdraw)?

    Todd

  • I have uploaded My MSP430F5529LP IAR example directory, my custom.argvars file, and my IAR workspace directory. Thank you for your help!

    Jim

    Uploads.zip
  • Jim,
    the output you posted does not really contain the actual error message. Have you noticed any additional pop-up window with an error message?
    There was another IAR-related thread where the actual error message was missing too: http://e2e.ti.com/support/embedded/tirtos/f/355/t/349099.aspx, and I haven't found a way to force the error message to be displayed in that use case. However, you may want to try my instructions for setting the environment variable XDCTOOLS_JAVA_HOME from my message posted on June 25th.

  • Thank you for your help.  Actually my original post DOES contain the actual error message. I repeat it here for your convenience (emphasis is mine):

    Building configuration: TIRTOS - Debug 

    Updating build tree... 
    Performing Pre-Build Action 
    Error while running "D:/ti/xdctools_3_30_01_25_core/xs" 
    --xdcpath="D:/ti/tirtos_msp430_2_00_02_36/packages;D:/ti/tirtos_msp430_2_00_02_36/products/uia_2_00_01_34/packages;;D:/ti/tirtos_msp430_2_00_02_36/products/bios_6_40_02_27/packages;" iar.tools.configuro -c "D:\Program
    Files (x86)\IAR Systems\Embedded Workbench 7.0\430" --cc "D:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\430\bin\icc430.exe" --device "MSP430F5529" --compileOptions "-f \"D:\ti\IAR 
    Tutorial/configPkg/compiler.opt.defs\" --diag_suppress=Pa050 -DMSP430WARE -ID:/ti/tirtos_msp430_2_00_02_36/products/MSP430Ware_1_80_01_03a/driverlib/MSP430F5xx_6xx -o \"D:\ti\IAR Tutorial\Debug\Obj\\\" --no_cse 
    --no_unroll --no_inline --no_code_motion --no_tbaa --debug -D__MSP430F5529__ -e --double=32 --dlib_config \"D:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\430\lib\dlib\dl430xlsfn.h\" --core=430X --data_model=small 
    -Ol --multiplier=32 --multiplier_location=4C0 --hw_workaround=CPU40 --hw_workaround=CPU39 --segment __data16=DATA16 --segment __data20=DATA20 --code_model=large" --linkOptions "-f \"D:\ti\IAR Tutorial/configPkg/linker.cmd\ 
    " D:/ti/tirtos_msp430_2_00_02_36/products/MSP430Ware_1_80_01_03a/driverlib/iar-MSP430F5529/iar-MSP430F5529.r43 -o \"D:\ti\IAR Tutorial\Debug\Exe\TIRTOS.d43\" \"-ID:\Program Files (x86)\IAR Systems\Embedded Workbench 
    7.0\430\LIB\\\" -f \"D:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\430\config\linker\lnk430F5529.xcl\" -f \"D:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\430\config\linker\multiplier32_loc2.xcl\" 
    -D_STACK_SIZE=200 -rt \"D:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\430\lib\dlib\dl430xlsfn.r43\" -D_DATA16_HEAP_SIZE=0 -s __program_start -D_DATA20_HEAP_SIZE=0" --profile release --projFile "D:\ti\IAR 
    Tutorial\TIRTOS.ewp" 

    Total number of errors: 1 
    Total number of warnings: 0

  • That's just IAR IDE saying that xs failed, not a message from xs. Anyway, have you tried setting XDCTOOLS_JAVA_HOME?

  • I gave up and used my space-limited C: drive and that works fine.  Sometimes it just doesn't pay to "get to the bottom" of installation problems!

    Case closed.