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.

Migrating a TI-RTOS example project to a custom development board in IAR Embedded Workbench

Other Parts Discussed in Thread: MSP430F5529, MSP430F5528, MSP430WARE, MSP430F5636, MSP430FR5969

All:

I have read the wiki page "Migrating a TI-RTOS project to a custom development board" (CCS project).

Are there any tricks to doing the same thing under IAR tools?

I have successfully built and downloaded the MSP_EXP430F5529 "empty minimum" project to a board using the F5529.

How do I now migrate that to a custom board that uses the F5528?

Just changing the device from MSP430F5529 to MSP430F5528 brings up a lot of "pre-build" errors.

Is there also a change in the linker command file on IAR?

Are there other files that also need to change?

Thanks in advance.

  • Hi Todd,

    You also need to rebuild the drivers for the MSP430F5528 device. This process is explained in the "Creating TI-RTOS Projects for Other MSP430 Devices" wiki page (link).

    Regards,

    -- Emmanuel

  • When I run gmake to make the drivers, I get a "Command line error: Unexpected command line arguments:
              --multiplier_location=4C0"

    I thought the multiplier location was provided for IAR 6.20 - is it not needed for the build of F5528 driverlib?

     

    Screen Capture:

    C:\apps\ti\tirtos_msp430_2_10_01_38>..\xdctools_3_30_04_52_core\gmake.exe -f tirtos.mak drivers
    gmake[1]: Entering directory `c:/apps/ti/tirtos_msp430_2_10_01_38/products/MSP430Ware_1_80_01_03a'
    gmake[2]: Entering directory `c:/apps/ti/tirtos_msp430_2_10_01_38/products/MSP430Ware_1_80_01_03a/driverlib'
    "Building for MSP430F5529 for the MSP430F5xx_6xx Family"
    gmake[3]: Entering directory `c:/apps/ti/tirtos_msp430_2_10_01_38/products/MSP430Ware_1_80_01_03a/driverlib'
    gmake[3]: Nothing to be done for `all'.
    gmake[3]: Leaving directory `c:/apps/ti/tirtos_msp430_2_10_01_38/products/MSP430Ware_1_80_01_03a/driverlib'
    "Building for MSP430F5528 for the MSP430F5xx_6xx Family"
    gmake[3]: Entering directory `c:/apps/ti/tirtos_msp430_2_10_01_38/products/MSP430Ware_1_80_01_03a/driverlib'
      CC    MSP430F5xx_6xx/adc10_a.c

       IAR C/C++ Compiler V6.20.1.931/W32 for MSP430
       Copyright 1996-2014 IAR Systems AB.
       Command line error: Unexpected command line arguments:
              --multiplier_location=4C0
    gmake[3]: *** [iar-MSP430F5528/adc10_a.r43] Error 2
    gmake[3]: Leaving directory `c:/apps/ti/tirtos_msp430_2_10_01_38/products/MSP430Ware_1_80_01_03a/driverlib'
    gmake[2]: *** [MSP430F5528] Error 2
    gmake[2]: Leaving directory `c:/apps/ti/tirtos_msp430_2_10_01_38/products/MSP430Ware_1_80_01_03a/driverlib'
    gmake[1]: *** [all] Error 2
    gmake[1]: Leaving directory `c:/apps/ti/tirtos_msp430_2_10_01_38/products/MSP430Ware_1_80_01_03a'
    gmake: *** [iar-msp430ware] Error 2

    The result of this is a directory created for the F5528, but no contents in that directory.

    FWI, here is my command line from tirtos.mak:

    MSP430DEVLIST := MSP430F5529 \
                                         MSP430F5528 \
                                         MSP430F5636 \
                                         MSP430FR5969

  • Hi Todd,

    We build and validate on IAR MSP430 5.60, so the error you are seeing is due to some changes IAR has made in their 6.10 release.  No worries, a few minor changes to the makefile and you should be able to build just fine:

    1. Open the iar_makedefs file in the MSP430ware productdirectory within TI-RTOS (<tirtos install dir>/products/MSP430Ware_1_80_01_03a/iar_makedefs).
    2. Remove the "--multiplier_location=4C0   \" line from the makefile.  The compiler no longer supports this flag.  
    3. Update the --dlib_config  option to '${TOOLPATH}'/lib/dlib/dl430xlsfn.h


    You should be able to build drivers just fine after these changes.

    Hope this helps,

    -- Emmanuel

  • Emmanuel:

    Ok, moving on from the errors - it looks like the \driverlib was updated with iar-MSP430F5528, and the F5528 directory is populated.

    To now create a TI-RTOS project for the F5528, do I populate as I would with the F5529-LP and then make changes?

    It looks like there should be a separate directory under tirtos_msp430_2_10_01_38...

    \packages\boards\MSP430F5528??  similar to the EXP boards?

    Do I create my own board support by copying and modifying an existing EXP board package? (maybe start with the 5529LP package?)

     

  • Hi Todd,

    Yes, import an example project or an empty project for the MSP430F5529 and then modify it (following the steps in the wiki above) for the MSP430F5528 device.  You need to updated the board files to reflect your custom/development board.  

    Todd Anderson78572 said:

    It looks like there should be a separate directory under tirtos_msp430_2_10_01_38...

    \packages\boards\MSP430F5528??  similar to the EXP boards?

    Do I create my own board support by copying and modifying an existing EXP board package? (maybe start with the 5529LP package?)

    Usually these files are project specific.  You may store the files in packages/examples/boards/MSP430F5528 if you like, but TI-RTOS will not automatically generate examples for it (like what is done for the F5529).  Automatic examples import/generation is part of the product-packaging process we perform before releasing a product.

    Hope this helps,

    -- Emmanuel