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.

CCSV5.2 for linux and msp430 launchpad, is debug supposed to work?

Other Parts Discussed in Thread: MSP430F5529

I'm trying out the beta version of CCSV5.2 on Ubuntu 11.04.  It feels and acts like the windows version except that it doesn't seem to detect my launchpad or my msp-fet430uif.  To get the code to load on the chip I ended up flashing the .out file with mspdebug.  Is debug in CCS for msp430 chips supposed to be working at this point?

Thanks,

-rick

  • Hi Rick,

    I believe at the moment, only the USB FET is supported.  So if you use a USB FET perhaps more information would help us debug.

    What do you mean by not detect your FET?  What exactly do you see/experience?  How did you install the drivers?

    Best Regards,

    Lisa

  • I created a new project for an msp430f5529.  I selected the blink LED example from the new CCS project options.  It compiles fine. When I press the debug button I get this popup dialog message:

    Error initializing emulator:
    No USB FET was found
    
    
    Running the command line 'lsusb' program shows this device I want to use:
    
    
    $ lsusb
    Bus 001 Device 005: ID 0451:f430 Texas Instruments, Inc. MSP-FET430UIF JTAG Tool

    I didn't load any specific drivers. it seems Ubuntu knows about the device. I did add a udev entry so that I can use the device without being root.
    However I just tested CCS running as root and I get the same results. It doesn't connect to the FET. Is there a driver I'm supposed to load?

    
    
    # This file allows access to TI MSP-FET430UIF from non-root acct
    SUBSYSTEM=="usb",ATTR{idVendor}=="0451",ATTR{idProduct}=="f430",GROUP="dialout",MODE="666"

    I can use mspdebug to interact with this device using: 

    $ mspdebug -l /dev/ttyUSB0 uif "prog simpleled.out"

    This is how I ended up loading the CCS compiled elf onto the msp430f5529. 
    
    
    I'm running UBuntu 11.04 with the Classic User Interface ( no Unity ).
    
    
    I have not updated the firmware on my FET to V3 is that required?
    
    
    Thanks,
    
    
    -rick
  • Hi Rick,

    I am not yet very experienced on the linux version myself yet.

    Can you please double check the following things

    - please do ensure you are using root for all things

    - please do use v3 of the dll

    - please try a non ELF example

    - are you using JTAG ot Spy-Bi-WIre?

    Best Regards,
    Lisa

  • I rebooted into Windows-7 and ran CCSV5 using my MSP-FET430UIF device. It prompted me to update the firmware ( which I have been reluctant to do because I wanted to be able to use mspdebug under linux ). I let it install the firmware. ( which it did twice ) I verified I was still able to use the FET to flash and debug code under Windows 7.

    I then rebooted into Ubuntu and started up CCSV5.2.  This time it recognized my FET. However, it still wanted to update the firmware on it. I allowed the linux version of CCSV5.2 to update the firmware hesitantly.  It then successfully, programmed  and debugged my msp430f5529 device.  When I had the V2 version of the firmware on my FET it never prompted me to update the firmware. It wasn't until CCS 5 on windows updated my FET firmware to V3 that the CCS V5.2 on linux recognized my device.

    Thanks,

    -rick 

  • Thanks, I didn't see this post until I finished posting.

    I didn't have to run as root.

    I did update as explained in my previous post

    I used the ELF version without a problem

    I'm using Spy-Bi-Wire

    The problem seems to have been my not having the latest firmware on my MSP-FET430UIF. Once I updated that it worked.

    Thanks for your help.

    -rick

  • Hi Rick,

    great, glad to hear it got fixed.

    All the best with develpment and the 5.2 test drive.

    Best Regards,

    Lisa

  • I have the same problem. 

    CCS doesn't connect to the "Launchpad", under Linux.

    (though it worked under Windows, XP)

    Here is the dmesg output: 

    [19489.496206] usb 2-1: USB disconnect, device number 6
    [19493.276133] usb 2-1: new full speed USB device number 7 using uhci_hcd
    [19493.489355] cdc_acm 2-1:1.0: This device cannot do calls on its own. It is not a modem.
    [19493.489382] cdc_acm 2-1:1.0: No union descriptor, testing for castrated device
    [19493.489484] cdc_acm 2-1:1.0: ttyACM0: USB ACM device
    [19503.554141] generic-usb 0003:0451:F432.0008: usb_submit_urb(ctrl) failed
    [19503.554196] generic-usb 0003:0451:F432.0008: timeout initializing reports
    [19503.554823] generic-usb 0003:0451:F432.0008: hiddev0,hidraw0: USB HID v1.01 Device [Texas Instruments Texas Instruments MSP-FET430UIF] on usb-0000:00:1d.0-1/input1
  • Per,

    The LaunchPad is not supported on Linux at this time.

    John

  • Okey I noticed, located this wiki -page (Linux Host Support):

    http://processors.wiki.ti.com/index.php/Linux_Host_Support#Not-Supported

    (huge installs, guess scores of stuff can go wrong..  will say Ubuntu/Linux become supported?

    Or, may this be one option (skip CCS):

    http://hackaday.com/2010/08/11/how-to-launchpad-programming-with-linux/

    (something called "MSPGCC" outthere..

  • Another option... You can actually use the binary created by the CCS compiler and load it on to your launchpad using mspdebug. However, you do lose the ability to use the built-in debugger in CCS.  The CCS compiler creates an ELF output file on Linux which mspdebug can use.  If you grab the latest mspdebug from git source and compile it.  You can load your code onto a launchpad using a command along these lines:

    $ mspdebug rf2500 "prog Debug/yourprojectname.out"

    -rick

  • Rick Kimball said:
    $ mspdebug rf2500 "prog Debug/yourprojectname.out"

    And also, this requires "root" privileges ;)

    Any update avaliable for Linux ?

    I can't program my LaunchPad/RF2500 under CCS v5.2. I always have to use mspdebug mentioned Rick.

  • If you set up a UDEV entry for your launchpad you don't need to be root.

    -rick

  • So, a year has gone by. Any chance that CCS will support the Launchpad?

    -rick

    JohnS said:

    Per,

    The LaunchPad is not supported on Linux at this time.

    John

  • When I plug in the Launchpad on Linux Ubuntu 12.04 it creates device "/dev/tty/ACM0". I think the CCSv5 only understands "/dev/ttyUSB1" and "/dev/ttyUSB2" and "/dev/ttyUSB3". I am still waiting for MSP430-JTAG which is supposed to work OK. I thing there is a way to tell Linux that it should create "/dev/ttyUSB1" after detecting the Launchpad instead of creating "/dev/ttyACM0". The "/dev/ttyACM0: gets created when plugging in ACM (Acustic  Conexant Modem 0). I suspect the Launchpad talks like the modem does. I am going to learn how to edit the "/etc/udev/rules.d/61...." rule created by CCSv5. the Launchpad has Vendor ID 0432 while the standard JTAG has Vendor ID 0430. I am going to add to the rule created by CCSv5 another line for the Launchpad with correct Product ID and some blurp for creating "/dev/ttyUSB1". At the moment I do no know how thats done, maybe some knowing more about Linux could help.

  • EDIT !!!

    I mean Product ID instead of Vendor ID.

  • Hi Jaroslav/Rick,

    the launchpad (at least current launchpads) is not currently supported in Linux as my colleague John mentioned.

    Best Regards,
    Lisa

  • "is not currently supported" ... and never will be. This has been answered by other TI employees in other threads stating that the current launchpad will never be supported.

  • This is very sad - are there any reasons for this? I always have to reboot my PC to do programming with my launchpad. Luckily I have a "normal" USB FET - but in courses this is just nasty ;-)

  • Am I to understand that the community supported tools such as gcc + mspdebug + gdb are supported, and work pretty  well with the launchpad, and yet TI can not get it's own IDE and tool chain to play nice with msp430 launchpad on Linux?

    Seriously?

  • The just released msp430f5529 launchpad includes the new ezFET that works great with linux, CCS 5.5 and above and the opensource libmsp430.so with mspdebug.   Sadly the old version isn't going to be updated. However I'm happy that at least they have addressed this problem going forward.

    Yay!

  • Rick Kimball said:

    The just released msp430f5529 launchpad includes the new ezFET that works great with linux, CCS 5.5 and above and the opensource libmsp430.so with mspdebug.   Sadly the old version isn't going to be updated. However I'm happy that at least they have addressed this problem going forward.

    This sounds promising, I note the new launchpad is only $13 ... would it be possible to cable across the 2 wire interface from the new emulator to the old launchpad (ie can the ezFET handle the original MSP430G2xxx processors) ?

    Anyone had hands on experience with the new launchpad (presently out of stock) with CCS on a Linux host ?

            ... Niall

  • Hi rick

    I am trying out the bate version of CCSV5.5 on Ubuntu 12.04,the ./install_devicers.sh I have installed. while I do programming with my launchpad,     msp430f5529.

    always:

    Error initializing emulator:
    No USB FET was found

    Running the command line 'lsusb' program shows this device I want to use:

    Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
    Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
    Bus 003 Device 002: ID 0451:f432 Texas Instruments, Inc. eZ430 Development Tool
    Bus 003 Device 003: ID 1bcf:0005 Sunplus Innovation Technology Inc.
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 003: ID 1bcf:2883 Sunplus Innovation Technology Inc.

    it seems Ubuntu knows about the device,

    but how you add a udev entry so that you can use the device.

    besides while I reboot always have a note [17.9.9584]  cdc_acm 3-2:1.0: This device cannot do calls on its own,It is not a modem.

    could you help me ?

    Best Regards,

    zuoxiang

  • Hi John,

    Is it now supported in 2015 yet or not?

    Thanks.

  • I'm getting the same error (in year 2015) with xubuntu 14.04 LTS
  • ti-designs,

    Which target are you asking about?  Newer MSP430 LaunchPads are supported on Linux.  Ones with the old ez430 interface such as the G2 are not supported and will not be in the future on Linux or MacOS.

    It is important to ensure that you have all the dependencies install as well as to run the driver install script at sudo.

    There are more details here:

    http://processors.wiki.ti.com/index.php/Linux_Host_Support_CCSv6#Ubuntu_14.04_64bit

    Regards,

    John

    processors.wiki.ti.com/.../Linux_Host_Support_CCSv6