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.

TI-RTOS support for MSP430F5659

Other Parts Discussed in Thread: MSP430F5659, MSP430F5529, MSP430F6659, MSP430FR5969, MSP430FR6989

Does TI-RTOS support the MSP430F5659 controllers?

Nitesh

  • Hi,

    I have system which has USB device, external ADC, EEPROM, I2c based Sensor and Serial Bluetooth module. Can i get example project which has task handling, IPC for MSP430F5659. 

    Please share the tools for the TI-RTOS application writing and debugging. I am currently using CCS 6.1.1 and FET tool for standalone application build, I want to move to RTOS. Please let me know how to port my application to RTOS

    Any one worked on this type of system please share the experience. 

    Nitesh  

  • Hello Nitesh,

    Here are some TI-RTOS resources and training for you to get started with your application. This includes TI-RTOS examples on MSP430 and a guide to porting TI-RTOS to MSP430s that are not MSP430F5529.

    processors.wiki.ti.com/.../Creating_TI-RTOS_Projects_for_Other_MSP430_Devices
    processors.wiki.ti.com/.../TI-RTOS
    www.ti.com/lit/spruhu4

    Regards,
    JH

  • Hi JH,

    Thanks for the input, i will go through and come back if any help needed further.

    -Nitesh

  • Nitesh,

    As stated in your previous post by me, you will have to port the TI-RTOS project made for MSP430F5529 to your device.

    e2e.ti.com/.../1709135

    Regards,
    JH
  • Hi,,

    As per your suggestion i studied the doc for porting example TIRTOS project of MSP430F5529 to MSP430F6659.

    I have completere1st point the as per document
    processors.wiki.ti.com/.../Creating_TI-RTOS_Projects_for_Other_MSP430_Devices.
    Where after adding the target i executed the gmake.exe found $
    "C:\ti\xdctools_3_31_01_33_core". But lib file not found in
    "C:\ti\tirtos_msp43x_2_14_03_28\products\MSPWare_2_00_00_40c\driverlib"

    Even in CCS i did the" project ->general"set the target device to MSP430F6659 but on compilation i got the error shown below

    Description Resource Path Location Type
    "can't find the library 'C:/ti/tirtos_msp43x_2_14_03_28/packages/ti/drivers/lib/drivers_MSP430F6659.ae430X' specified by package ti.tirtos. .xdchelp /gpiointerrupt_MSP_EXP430F5529LP_TI_MSP430F5529 line 48 C/C++ Problem"

    Please guide me how to resolve this.

    Nitesh
  • I am working on windows platform, How to run gmake.exe ? if i double click it open and closes and i am not seeing Lib files in the path mentioned.

    Nitesh
  • Nitesh,

    I have merged your two threads for they are about the same issue. I have also moved your post to the TI-RTOS forum so you can get better support.

    Regards,
    JH
  • Hi Nitesh,

    I can help you solve this. I don't understand this error you're getting

    Where after adding the target i executed the gmake.exe found $

    "C:\ti\xdctools_3_31_01_33_core". But lib file not found in

    "C:\ti\tirtos_msp43x_2_14_03_28\products\MSPWare_2_00_00_40c\driverlib"



    Are you getting an error in the cmd line that you can't find a library in "C:\ti\tirtos_msp43x_2_14_03_28\products\MSPWare_2_00_00_40c\driverlib"? If so, what library can't you find? Can you copy and paste in your reply the command line output when you run

    ..\xdctools_3_25_04_88\gmake.exe -f tirtos.mak drivers



    Regards,

    Moses
  • Hi Moses,

    thanks for the support, i want to port TI RTOS to MSP430F5659. I am working on windows environment using IDE CCS 6.1.1.

    So  to port i got some input regarding porting activity, which starts with creating the lib file for the specified controller by running the gmake.exe.

    1st thing when i double click the gmake.exe, i am not seeing the execution of the gmake.exe and 2nd thing it runs for a second and i am not able to see the lib file in

    "C:\ti\tirtos_msp43x_2_14_03_28\products\MSPWare_2_00_00_40c\driverlib".

    Please see below command line execution of the gmake.exe..

    Nitesh

  • Hi Nitesh,
    The gmake.exe is a command line tool. The instructions tell you to run the following line from your command line. To do this you'll need to open cmd.exe in your windows programs. Change directory to where you installed TI-RTOS using the cd command. Then enter the command below and hit enter to re-build the TI-RTOS libraries for your device.

    ..\xdctools_3_25_04_88\gmake.exe -f tirtos.mak drivers


    Let me know if this helps.

    Moses
  • Hi Moses,

    I tried the same and got the error as shown below.

    c:\cd ti\xdctools_3_31_01_33_core
    C:\ti\xdctools_3_31_01_33_core\gmake.exe -f tirtos.mak drivers
    gmake: tirtos.mak: No such file or directory
    gmake: *** No rule to make target `tirtos.mak'.  Stop.

    Please let me know how to resolve this.

    Nitesh

  • Nitesh,
    you need to cd to C:/ti/tirtos_msp43x_2_14_03_28, and then run
    C:\ti\xdctools_3_31_01_33_core\gmake.exe -f tirtos.mak drivers
  • Hi Sasha,

    I got error as shown below

    C:\>cd ti\xdctools_3_31_00_24_core

    C:\ti\xdctools_3_31_00_24_core>gmake.exe -f tirtos.mak drivers
    gmake.exe: tirtos.mak: No such file or directory
    gmake.exe: *** No rule to make target `tirtos.mak'. Stop.

    C:\ti\xdctools_3_31_00_24_core>cd..

    C:\ti>cd..

    C:\>cd..

    C:\>C:\ti\tirtos_msp43x_2_14_03_28
    'C:\ti\tirtos_msp43x_2_14_03_28' is not recognized as an internal or external co
    mmand,
    operable program or batch file.

    C:\>cd C:\ti\tirtos_msp43x_2_14_03_28

    C:\ti\tirtos_msp43x_2_14_03_28>C:\ti\xdctools_3_31_01_33_core\gmake.exe -f tirto
    s.mak drivers
    gmake[1]: Entering directory `c:/ti/tirtos_msp43x_2_14_03_28/products/MSPWare_2_
    00_00_40c'
    gmake[2]: Entering directory `c:/ti/tirtos_msp43x_2_14_03_28/products/MSPWare_2_
    00_00_40c/driverlib'
    "Building for MSP430F5529 for the MSP430F5xx_6xx Family"
    gmake[3]: Entering directory `c:/ti/tirtos_msp43x_2_14_03_28/products/MSPWare_2_
    00_00_40c/driverlib'
    gmake[3]: Nothing to be done for `all'.
    gmake[3]: Leaving directory `c:/ti/tirtos_msp43x_2_14_03_28/products/MSPWare_2_0
    0_00_40c/driverlib'
    "Building for MSP430FR5969 for the MSP430FR5xx_6xx Family"
    gmake[3]: Entering directory `c:/ti/tirtos_msp43x_2_14_03_28/products/MSPWare_2_
    00_00_40c/driverlib'
    gmake[3]: Nothing to be done for `all'.
    gmake[3]: Leaving directory `c:/ti/tirtos_msp43x_2_14_03_28/products/MSPWare_2_0
    0_00_40c/driverlib'
    "Building for MSP430FR6989 for the MSP430FR5xx_6xx Family"
    gmake[3]: Entering directory `c:/ti/tirtos_msp43x_2_14_03_28/products/MSPWare_2_
    00_00_40c/driverlib'
    gmake[3]: Nothing to be done for `all'.
    gmake[3]: Leaving directory `c:/ti/tirtos_msp43x_2_14_03_28/products/MSPWare_2_0
    0_00_40c/driverlib'
    "Building for MSP430F6659 for the MSP430F5xx_6xx Family"
    gmake[3]: Entering directory `c:/ti/tirtos_msp43x_2_14_03_28/products/MSPWare_2_
    00_00_40c/driverlib'
    CC MSP430F5xx_6xx/adc10_a.c
    CC MSP430F5xx_6xx/adc12_a.c
    CC MSP430F5xx_6xx/aes.c
    CC MSP430F5xx_6xx/battbak.c
    CC MSP430F5xx_6xx/comp_b.c
    CC MSP430F5xx_6xx/crc.c
    CC MSP430F5xx_6xx/dac12_a.c
    CC MSP430F5xx_6xx/dma.c
    CC MSP430F5xx_6xx/eusci_a_spi.c
    CC MSP430F5xx_6xx/eusci_a_uart.c
    CC MSP430F5xx_6xx/eusci_b_i2c.c
    CC MSP430F5xx_6xx/eusci_b_spi.c
    CC MSP430F5xx_6xx/flashctl.c
    CC MSP430F5xx_6xx/gpio.c
    CC MSP430F5xx_6xx/ldopwr.c
    CC MSP430F5xx_6xx/mpy32.c
    CC MSP430F5xx_6xx/pmap.c
    CC MSP430F5xx_6xx/pmm.c
    CC MSP430F5xx_6xx/ram.c
    CC MSP430F5xx_6xx/ref.c
    CC MSP430F5xx_6xx/rtc_a.c
    CC MSP430F5xx_6xx/rtc_b.c
    CC MSP430F5xx_6xx/rtc_c.c
    CC MSP430F5xx_6xx/sd24_b.c
    CC MSP430F5xx_6xx/sfr.c
    CC MSP430F5xx_6xx/sysctl.c
    CC MSP430F5xx_6xx/tec.c
    CC MSP430F5xx_6xx/timer_a.c
    CC MSP430F5xx_6xx/timer_b.c
    CC MSP430F5xx_6xx/timer_d.c
    CC MSP430F5xx_6xx/tlv.c
    CC MSP430F5xx_6xx/ucs.c
    CC MSP430F5xx_6xx/usci_a_spi.c
    CC MSP430F5xx_6xx/usci_a_uart.c
    CC MSP430F5xx_6xx/usci_b_i2c.c
    CC MSP430F5xx_6xx/usci_b_spi.c
    CC MSP430F5xx_6xx/wdt_a.c
    AR ccs-MSP430F6659/adc10_a.obj
    ==> new archive 'ccs-MSP430F6659/ccs-MSP430F6659.lib'
    ==> building archive 'ccs-MSP430F6659/ccs-MSP430F6659.lib'
    gmake[3]: Leaving directory `c:/ti/tirtos_msp43x_2_14_03_28/products/MSPWare_2_0
    0_00_40c/driverlib'
    gmake[2]: Leaving directory `c:/ti/tirtos_msp43x_2_14_03_28/products/MSPWare_2_0
    0_00_40c/driverlib'
    gmake[1]: Leaving directory `c:/ti/tirtos_msp43x_2_14_03_28/products/MSPWare_2_0
    0_00_40c'
    building tirtos packages ...
    making all: Thu Dec 24 11:12:20 IST 2015 ...
    ======== .interfaces [./packages/examples] ========
    making package.mak (because of .xdcenv.mak) ...
    Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
    generating interfaces for package examples (because package/package.xdc.inc is o
    lder than ) ...
    Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
    translating TrexExamples
    ======== .interfaces [./packages/examples/examplesgen] ========
    making package.mak (because of .xdcenv.mak) ...
    Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
    generating interfaces for package examples.examplesgen (because package/package.
    xdc.inc is older than ) ...
    Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
    translating Main
    ======== .interfaces [./packages/ti/drivers] ========
    making package.mak (because of .xdcenv.mak) ...
    Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
    js: "C:/ti/tirtos_msp43x_2_14_03_28/products/bios_6_42_03_35/packages/ti/targets
    /ITarget.xs", line 269: Error: c:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.2 canno
    t be found. Ensure that rootDir for the M4F target is set correctly in C:/ti/tir
    tos_msp43x_2_14_03_28/tirtos.bld
    "C:/ti/tirtos_msp43x_2_14_03_28/products/bios_6_42_03_35/packages/ti/targets
    /arm/elf/IArm.xs", line 150
    gmake[1]: *** Deleting file `package.mak'
    making package.mak (because of package.bld) ...
    Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
    js: "C:/ti/tirtos_msp43x_2_14_03_28/products/bios_6_42_03_35/packages/ti/targets
    /ITarget.xs", line 269: Error: c:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.2 canno
    t be found. Ensure that rootDir for the M4F target is set correctly in C:/ti/tir
    tos_msp43x_2_14_03_28/tirtos.bld
    "C:/ti/tirtos_msp43x_2_14_03_28/products/bios_6_42_03_35/packages/ti/targets
    /arm/elf/IArm.xs", line 150
    gmake[1]: *** Deleting file `package.mak'
    gmake[1]: *** No rule to make target `package.mak', needed by `.interfaces'. St
    op.
    xdctools_3_31_01_33_core\gmake.exe: *** [packages/ti/drivers,.interfaces] Error
    2
    gmake: *** [drivers] Error 2


    Please help me
    Nitesh
  • Nitesh,
    before you build, you need to edit tirtos.mak and change the path according to the versions of the compiler you have installed. Check which TI Arm compiler is installed in C:/ti/ccsv6/tools/compiler and use that path instead of the default one. The line that you need to change is at the very top of tirtos.mak and it's current content is most likely this:
    ti.targets.arm.elf.M4F        ?= $(DEFAULT_INSTALLATION_DIR)/ccsv6/tools/compiler/ti-cgt-arm_5.2.2

  • Hi

    I am able to create the library file with instructions given.

    Now i need to create the new project for MSP430F5659, i have 5 tasks can you please suggest whether i can use the same MSP430F5529 project to create a new project?

    Please help whether i need to change board.h for the MSP430F5529LP  to make my own board.h file for the MSP430F5659?

    -Nitesh

  • Hello,

    I need some urgent help, I am using TI RTOS for MSP430F5659 controller based application, I am able to port the msp430F5529 LED application to MSp430F5659, it running fine. 

    Now i want create multiple task please any one share their thought how to generate task, can i write directly or i need to use .cfg to generate the TASK?

    Secondly i am not seeing ADC12 driver for any TI RTOS examples. How to create a new driver any thought please share?

    Third- can i use the normal ADC12  MSP430 drivers with TI RTOS?

    If i use .cfg file to geenerate sem,task etc  how to use them.

    Any good tutorial for understanding TI RTOS with good explanation? 

    Please help.

    Nitesh

  • Nitesh,
    sorry for the delay, but if this question is still relevant, you should use Resource Explorer (View->Resource Explorer) and type "MSP430F5659" in the search box. That would give you the list of all examples for F5659. You can choose one of the examples that uses peripherals that you need, import it and use it as a starting point for your new project. When you click on the project, you'll see a short description of the functionalities that the project demonstrates.

    As for your other questions, you can create tasks statically in the CFG file or dynamically in your source code. Look at the TI-RTOS Wikipedia for more info and links to documentation http://processors.wiki.ti.com/index.php/TI-RTOS.

    For ADC questions, please start another thread and someone who knows more about it will respond, I hope.