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.

MSP-EXP430F5438 and TI-RTOS porting problem

Other Parts Discussed in Thread: MSP430F5529, MSP-EXP430F5529LP, MSP430FR6989, MSP430FR5969

Hello!

I have an experimental board MSP-EXP430F5438 that has MSP-430F5438A MCU and i want to use TI-RTOS examples. I have Code Composer v6.1 and i have installed TI-RTOS for MSP-43x family. I can't find in TI Resource Explorer in the TI-RTOS package the example for my MCU and my experimental board. I have found some example for my MCU and experimental board only in MSPWare. Could you give me some guidance please?

  • Which version of TI-RTOS are you using? Did you restart CCS after installing TI-RTOS so that CCS would discover the new TI-RTOS product?

    Alan
  • We don't ship examples for every variant of the MSP430 product line. I suggest you start with the MSP430F5529 example and then modify the platform to the exact version of your device.

    In the TI-RTOS 2.16 for MSP43x Getting Started Guide, there is a section called configuring TI-RTOS. You might find this helpful when customizing your project.

    ~Ramsey

  • I have tried to compile the driverlibs for my board. I have modified the the tirtos.mak file at MSP430DEVLIST to compile for my board. After compilation I opened a project in Code Composer for MSP-EXP430F5529LP board and modify the proprieties. My problem is that after the compilation of drivers I can't find my .lib files.

    Here is my output from the console:

    **** Build of configuration Debug for project gpiointerrupt_MSP_EXP430F5529LP_TI_MSP430F5529 ****
    
    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all 
    'Building file: ../gpiointerrupt.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_32_00_06_core/xs" --xdcpath="C:/ti/tirtos_msp43x_2_16_01_14/packages;C:/ti/tirtos_msp43x_2_16_01_14/products/bios_6_45_02_31/packages;C:/ti/tirtos_msp43x_2_16_01_14/products/tidrivers_msp43x_2_16_01_13/packages;C:/ti/tirtos_msp43x_2_16_01_14/products/uia_2_00_05_50/packages;C:/ti/ccsv6/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.msp430.elf.MSP430X -p ti.platforms.msp430:MSP430F5438 -r release -c "C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_15.12.1.LTS" --compileOptions "-vmspx --data_model=restricted --use_hw_mpy=F5 --include_path=\"C:/ti/ccsv6/ccs_base/msp430/include\" --include_path=\"D:/Projects/Code Composer/gpiointerrupt_MSP_EXP430F5529LP_TI_MSP430F5529\" --include_path=\"C:/ti/tirtos_msp43x_2_16_01_14/products/msp430_driverlib_2_21_00_08a/driverlib/MSP430F5xx_6xx\" --include_path=\"C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_15.12.1.LTS/include\" --advice:power_severity=suppress --advice:power=all -g --define=ccs --define=MSP430WARE --define=__MSP430F5438A__ --diag_warning=225 --diag_warning=255 --display_error_number --diag_wrap=off --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --abi=eabi --printf_support=minimal  " "../gpiointerrupt.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring gpiointerrupt.xe430X from package/cfg/gpiointerrupt_pe430X.cfg ...
    generating custom ti.sysbios library makefile ... 
    generating custom ti.sysbios.family.msp430 Hwi stubs ... 
    Starting build of library sources ...
    making D:/Projects/CODECO~1/gpiointerrupt_MSP_EXP430F5529LP_TI_MSP430F5529/src/sysbios/sysbios.ae430X ...
    gmake[1]: Entering directory `D:/Projects/CODECO~1/gpiointerrupt_MSP_EXP430F5529LP_TI_MSP430F5529/src/sysbios'
    cle430X C:/ti/tirtos_msp43x_2_16_01_14/products/bios_6_45_02_31/packages/ti/sysbios/BIOS.c ...
    gmake[1]: Leaving directory `D:/Projects/CODECO~1/gpiointerrupt_MSP_EXP430F5529LP_TI_MSP430F5529/src/sysbios'
    Build of libraries failed.
    C:/Users/DEVELO~1/AppData/Local/Temp/make15088-1.sh: 1: Syntax error: Unterminated quoted string
    gmake[1]: *** [BIOS.obj] Error 2
    gmake: *** [D:/Projects/CODECO~1/gpiointerrupt_MSP_EXP430F5529LP_TI_MSP430F5529/src/sysbios/sysbios.ae430X] Error 2
    error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_32_00_06_core/packages/xdc/cfg/SourceDir.xs", line 209: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2:
    
    js: "C:/ti/xdctools_3_32_00_06_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
    gmake.exe: *** [package/cfg/gpiointerrupt_pe430X.xdl] Error 1
    gmake.exe: *** Deleting file `package/cfg/gpiointerrupt_pe430X.xdl'
    gmake.exe: *** [package/cfg/gpiointerrupt_pe430X.xdl] Deleting file `package/cfg/gpiointerrupt_pe430X.h'
    gmake.exe: *** [package/cfg/gpiointerrupt_pe430X.xdl] Deleting file `package/cfg/gpiointerrupt_pe430X.c'
    js: "C:/ti/xdctools_3_32_00_06_core/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
    gmake: *** No rule to make target 'configPkg/linker.cmd', needed by 'configPkg/compiler.opt'.
    gmake: *** No rule to make target 'configPkg/linker.cmd', needed by 'configPkg/compiler.opt'.
    gmake: Target 'all' not remade because of errors.
    
    **** Build Finished ****

  • I have restarted CCS after installing TI-RTOS and CCS discovered the new product. TI-RTOS version is 2.16 and i have CCS 6.1
  • I moved the workspace. It seems to work now. But now I have another error when I try to build the project.

    error #10269: output file "helloworld_MSP_EXP430F5529LP_TI_MSP430F5529.out" exceeds code size limit
    error #10010: errors encountered during linking; "helloworld_MSP_EXP430F5529LP_TI_MSP430F5529.out" not built
  • I did a search of this problem within the forum data base and it has come up a lot. This post seems to be the best place to start to resolve it:

    e2e.ti.com/.../1386756

    Alan
  • Thanks. The first problem was solved by getting the license. Now I have put the example from TI-RTOS package with gpiointrerupt from experimental boards MSP-EXP430f5529lp and migrate it to my development board MSP-EXP430F5438. Unfortunately the buttons S1 ans S2 doesn't work. The only thing the example done is tuning on LED1.
  • You'll have to modify your board.c file to map the GPIO pins correctly according to your MSP-EXP430F5438 board. However, I believe there is a pre-built gpiointerrupt example available for that board under the TI resource explorer.

    Alan
  • In TI-RTOS package are only three experimental boards : MSP430F5529, MSP430FR5969 and MSP430FR6989. These boards are natively builded for RTOS. I know I need to modify board.c file in order to map the GPIO pins correctly but i don't know how to do it.
  • To port TI-RTOS projects to work with a different MSP430 board, you should follow the instructions provided here:

    processors.wiki.ti.com/.../Creating_TI-RTOS_2.10_Projects_for_Other_MSP430_Devices

    and then here:

    processors.wiki.ti.com/.../Migrating_a_TI-RTOS_project_to_a_custom_development_board

    Alan
  • I have solved the problem. Could you tell me if I could compile with gcc after the migration? At proprieties if I choose the GNU compiler it says that i need a version of XDC Tools lower than 3.30.
  • Currently, the GNU MSP430 compiler is NOT supported and I know of no plans to add GNU MSP430 support.

    Alan