NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

Creating TI-RTOS Projects for Other MSP430 Devices

From Texas Instruments Wiki
Jump to: navigation, search

This page describes on how to create a MSP430 project for a non-MSP430F5529 device. TI-RTOS 1.20 supports MSP430F5xx and MSP430F6xx families.

For this exercise, a CCS project for a MSP430F5527 will be created. These are the steps to be performed:

  1. Build MSP430Ware driverlib and TI-RTOS driver libraries.
  2. Create an empty MSP430F5529 TI-RTOS project for CCS.
  3. Reconfigure the project's properties to use the new libraries.
  4. Port over the board files for your new MSP430 device.

Build MSP430Ware driverlib and TI-RTOS driver libraries.[edit]

  • Open windows command prompt or linux terminal console and navigate into the TI-RTOS directory.
cd c:\TI\tirtos_1_20_00_28
  • Edit tirtos.mak and update MSP430DEVLIST to include the new MSP430 device
#
# To build TI-RTOS driver libraries for other MSP430 devices; simply append the 
# device names to MSP430DEVLIST (separated by whitepsaces) 
#    MSP430DEVLIST := \ 
#        MSP430F5529 \ 
#        MSP430F5527 \ 
#        MSP430F6459 \ 
#        etc... 
#
MSP430DEVLIST := MSP430F5529 \
                 MSP430F5527
  • Build MSP430Ware driverlib and TI-RTOS driver libraries.
..\xdctools_3_25_04_88\gmake.exe -f tirtos.mak drivers
  • (Optional) Verify that the new MSP430 driverlib library was built. In TI-RTOS' products subdirectory, you will find MSP430Ware's driverlib. In the driverlib folder you should find a new subdirectory ccs-MSP430* that matches your device. Within the subdirectory, look for a ccs-MSP430*.lib library. For this example, we'd be expecting to find .\products\MSP430Ware_1_60_##_###\driverlib\ccs-MSP430F5527\ccs-MSP430F5527.lib.

CreateMSP430 5527.png

  • (Optional) Verify that the new TI-RTOS driver libraries were built. For MSP430, TI-RTOS creates several TI-RTOS driver libraries at a per device basis. Again, we'll make a visual inspection to see that these libraries were created. You will find these libraries in .\packages\ti\drivers\lib\[non]instrumented\driver_MSP430*.ae430X

CreateMSP430 5527 tirtoslibs.png

Create an empty MSP430F5529 TI-RTOS project for CCS.[edit]

Create a new MSP430 project for the MSP430F5529 based on the TI-RTOS User Guide instructions.
CreateMSP430 emptyProject.png

Reconfigure the project's properties to use the new libraries.[edit]

  • Edit the project properties to use the new MSP430 libraries that were just built. This is simply done by updating the CCS project properties with the new device variant. Right-click on the project and select Properties.
  • Navigate to General and update the Variant field with your device, which in this example would be MSP430F5527.
    CreateMSP430 modifiyProject2.png
  • Click OK to close the window.
  • Build the project to verify that you have no build errors.
  • (Optional) Since the Empty example uses the GPIO driver we can verify that you using the new TI-RTOS GPIO library by looking at what we're linking into our application. The generated RTSC Debug\configPkg\linker.cmd file includes a link to gpio_MSP430F5527.ae430X

CreateMSP430 verifyLibs.png

Port over the board files for your new MSP430 device.[edit]

The last step is to customize the board files (e.g. MSP_EXP430F5529LP.[ch] and MSP_EXP430F5529LP.cmd) to your own development board. See Migrating a TI-RTOS project to a custom development board.

Creating a TI-RTOS Project for an MSP430 Device with EUSCI Drivers[edit]

These steps apply to TI-RTOS 2.15.01 or higher. In this example, we'll use the MSP430F6779 with TI-RTOS 2.15.01. The steps for building the drivers are identical to the previous example.

  • Open windows command prompt or linux terminal console and navigate into the TI-RTOS directory.
cd c:\TI\tirtos_2_15_01_xx
  • Edit tirtos.mak and update MSP430DEVLIST to include the new MSP430 device
#
#
# To build TI-RTOS driver libraries for other MSP430 devices; simply append the
# device names to MSP430DEVLIST (separated by commas)
# MSP430DEVLIST := MSP430F5529,MSP430F5527,MSP430F6459,etc...
#
MSP430DEVLIST := MSP430F5529,MSP430FR5969,MSP430FR6989,MSP430F6779
  • Build MSP430Ware driverlib and TI-RTOS driver libraries.
..\xdctools_3_32_00_06_core\gmake.exe -f tirtos.mak drivers

As in the previous example, verify that the drives were built.

  • Since the MSP430F6779 is a F5xx_6xx device, create an empty project one of the TI-RTOS supported F5xx_6xx devices. In this example, we'll create an empty project for the MSP430F5529.

MSP430F5529 Empty.PNG

  • The MSP4305529 does not have EUSCI, so the board file for our MSP430F6779 project will need modification to replace the USCI configuration with EUSCI configuration.
  • Note: We could have started with an empty project for one the TI-RTOS devices that supports EUSCI, however, these are all FR5xx_6xx devices. You would then need to change the project properties to have the F5xx_6xx driverlib include and library search paths. The MSP430 driverlib for FR5xx_6xx and F5xx_6xx have some incompatible header files (e.g., gpio.h), so compiling the board file for your new project will result in many compilation errors. It may be useful, though, to import the Empty MSP430FR5969 project so you can compare that board file with the one you will be modifying.
  • As in the previous example, edit the project properties to select the new device variant, which in this example would be MSP430F6779. You may also want to rename your project with a new name that reflects the device variant. Changing the device variant will bring in a new linker command file into the project (lnk_msp430f6779.cmd for this example), so you need to exclude from the build the MSP_EXP430F5529LP.cmd)

MSP430F6679 Exclude 5529cmd.PNG

  • Edit the board.c file for your new project (MSP_EXP430F5929LP.c, if you have not renamed it), and replace all the USCI configuration with EUSCI. It may be useful to look at the board file for the empty MSP430FR5969 project to see where the changes need to be made.
E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article Creating TI-RTOS Projects for Other MSP430 Devices here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article Creating TI-RTOS Projects for Other MSP430 Devices here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article Creating TI-RTOS Projects for Other MSP430 Devices here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article Creating TI-RTOS Projects for Other MSP430 Devices here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article Creating TI-RTOS Projects for Other MSP430 Devices here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article Creating TI-RTOS Projects for Other MSP430 Devices here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article Creating TI-RTOS Projects for Other MSP430 Devices here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article Creating TI-RTOS Projects for Other MSP430 Devices here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article Creating TI-RTOS Projects for Other MSP430 Devices here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity