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.

  • Resolved

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

Expert 2105 points

Replies: 26

Views: 16501

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

  • Guru 130875 points

    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

  • In reply to Lisa TI:

    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
  • Guru 130875 points

    In reply to Rick Kimball:

    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

  • In reply to Rick Kimball:

    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 

  • In reply to Lisa TI:

    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

  • Guru 130875 points

    In reply to Rick Kimball:

    Hi Rick,

    great, glad to hear it got fixed.

    All the best with develpment and the 5.2 test drive.

    Best Regards,

    Lisa

  • In reply to Lisa TI:

    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
  • Guru 123435 points

    In reply to Per Blomqvist:

    Per,

    The LaunchPad is not supported on Linux at this time.

    John

     


    If my reply answers your question please click the "This resolved my issue" button

  • In reply to JohnS:

    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..

  • In reply to Per Blomqvist:

    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

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.