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.

MSP430FR6989 Code Compilation on LINUX without CCS..

Other Parts Discussed in Thread: MSP430FR6989, ENERGIA, MSP430G2553, MSP430FR5739

Hi ,


Is there Any way to Compile MSP430FR6989 Code Without CCS in linux machine?

I Have gone through the Steps Provided On Net. But Didn't Found suitable Working Step.

Thanks,

Hinesh

  • Hi Hinesh,

    Your options include using MSPDEBUG, Eclipse + MSPGCC, or Energia:

    43oh.com/.../
    energia.nu/.../

    Regards,
    Ryan
  • Hi ,

    I don't won't to use any IDE's that are there. I just wanted to use Plaing VIM Editor in linux and Wanted to Compile and Dump to my MSP430FR6989 with debug enable.

    A Little Edit..

    I am having my EVM connected with USB to My Linux Machine.  As per Above mentioned steps , After Following Those steps, I am still not able to Compile nad Download My Program to EVM of MSP430FR69xx .

    Thanks,

    Hinesh

  • Hinesh,

    Can you describe your setup and the exact problem you are encountering?

    Regards, Ryan

  • Hi ,

    My setup Include one Linux Machine ( with kernel 3.19.0-23-generic) , connected to launchpad EVM of MSP430FR6989 via USB port.

    And I have My Project Ready. I wanted to Compile The Project without CCS ( Or Eclipse or Any IDE's ) Directly , editor which I am using is VIM.

    For Ref:-
    (
    And After connecting my launchpad EVM In dmesg I got this for my device

    [40115.809329] usb 1-10: new full-speed USB device number 17 using xhci_hcd
    [40115.940245] usb 1-10: New USB device found, idVendor=2047, idProduct=0013
    [40115.940248] usb 1-10: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [40115.940249] usb 1-10: Product: MSP Tools Driver
    [40115.940250] usb 1-10: Manufacturer: Texas Instruments
    [40115.940251] usb 1-10: SerialNumber: 922B194713001000
    [40115.940411] usb 1-10: ep 0x81 - rounding interval to 1024 microframes, ep desc says 2040 microframes
    [40115.940417] usb 1-10: ep 0x83 - rounding interval to 1024 microframes, ep desc says 2040 microframes
    [40115.941455] cdc_acm 1-10:1.0: ttyACM0: USB ACM device
    [40115.942039] cdc_acm 1-10:1.2: ttyACM1: USB ACM device
    )

    My need is to compile program with out any IDE . Directly from Terminal Command.



    Please Ping me if You need any information.


    Thanks,
    Hinesh
  • Typically if someone wants to download code to their MSP430 device without the use of an IDE they do it through the Bootstrap Loader (BSL), which for the MSP430FR6989 is accomplished through a UART or I2C connection with a host. Several examples and demos of BSL communication or provided online.

    www.ti.com/.../slau319k.pdf

    Regards,
    Ryan
  • Hi ,

    Is there any commands that runs in Linux Terminal or command line to compile the MSP430FRxxxx Program and can dump that program to EVM??

    Thanks,

    Hinesh

  • Hi Hinesh,

    Here is a sample command (invoked under my Code::Blocks - but it doesn't matter, may be typed in terminal prompt):

    msp430-elf-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -I/home/drvlas/ti/gcc/include -c ../../prg/01-11/main/2-data.c -o obj/Debug/prg/01-11/main/2-data.o
    

    It is the compiling of a file 2-data.c 

    The same commands are invoked for all other files, then ,sp430-elf-gcc with a -L option is invoked - to link all object modules in ELF output file.

    Then I use:

    mspdebug -n rf2500 "prog brd-01-11.elf" 

    command to dump it to target (FRAM-based) MCU.

    So the answer to your question is YES. But you have to study GCC. Personally I don't know the topic - and don't need to, I just use IDE.

    Regards,

    Yury

  • Hi Iurii Vlasenko ,

    Thank you for the answer,

    But the command you showed is running successfully with msp430g2553, or even I have already checked the latest mspdebug's lib/scripts ( after installation It creates a folder where this file is stored).

    msp430/lib/ldscripts ,
    And It supports till MSP430FR5739 and I am having a higher version , I.E MSP430FR6989. That is not listed there.

    Also When I try mspdebug's command I got below error.

    "unable to find a device matching 0451:f432".

    So May there will be other way to compile and dump from terminal line.


    Thanks,
    Hinesh
  • Hi Hinesh,

    It looks as if you mix 2 (practically) different questions: program compilation and code loading.

    What do we have in compilation step on Linux machines?

    1) CCS or IAR - standard TI solutions (AFAIK Keil supports a lot of MSP MCUs too). Limited C-programs size, OK.

    2) MSPGCC, now the joint TI-Red Hat OPENSOURCE. The command line tool, suits your demands.

    It is highly improbable that new MSPGCC does not support your chip. Make it clear, please. Because the MSPDEBUG files have nothing to do with it.

    And now about loading the binary file. Options:

    1) IDE. Maybe it is sensible to try CCS for loading file, compiled with mspgcc. CCS have a limit of 16K for compilation, not load.

    2) command line MSPDEBUG

    3) BSL

    Maybe MSPDEBUG does not support your highly new chip. But you can try to substitute another type of MCU (--fet-force-id option). Or turn to Daniel Beer, the author of MSPDEBUG. He is opened for a co-operation.

    Anyway, BSL is a universal method. I have not used it - no need, but you have this option. And Ryan puts it clearly.

    Regards,

    Yury

**Attention** This is a public forum