Installing CCS5.2 under Ubuntu

Hi,

I am trying to install CCS 5.2 (beta)  in Ubuntu for MSP430 microcontrollers following the installation instruction hat comes with the download. However I noticed during installation the "Select Emulators" window does not have the FET Emulator to select as the emulator I wanted.

The installation goes through and I can compile the code; however I cannot flash it to msp430 as it did not find the USB FET driver.

Alternatively I don't see the install_drivers.sh file under install_script/ folder as mentioned in the README_FIRST instruction file.

Am I missing anything in the installation process? Do I have to install the USB FET driver separately? If so where shall I get a driver for Linux which I can try out?

Thanks -Abhijit Das

  • Guru 130905 points

    Hi Abhijit,

    did you install and run as root?  With permissions for all folders?   We have seen some cases where permissions settings have blocked CCS from writing somewhere in the Linux case and unfortunately without generating much of an error in some instances.

    Do you have all required dependencies listed?   If you are on 64 bit Ubuntu, then 32 bit support is necessary.

    What version of Ubuntu is this?  I have not needed to install FET drivers separately and have programmed an MSP sucessfuly with 5.2 in Ubuntu 11.10 32 bit.

    Please keep us informed.

    BEst Regards,
    Lisa

  • In reply to Lisa TI:

    Hello Lisa,

    Yes I installed CCS5.2 as root following the README_FIRST.txt file that comes with the download.

    sudo ./ccs_setup_5.2.0.00044.bin

    I am using Ubuntu 11.10, 32 bit machine.  I also tried it on Ubuntu 10.04 LTS with no luck.

    You mentioned that it is installed properly in your place. So I think I am missing something in my installation.  Is there a way to generate some debug information to help be debug what is going wrong?

    Your help is highly appreciated.

    regards --Abhijit Das

  • In reply to Abhijit Das70645:

    Hello Lisa,

    Just one more thing. What are the dependencies for install CCS 5.2 under Ubuntu?  Can you please list out the packages I need  (if any) before installing CCS 5.2 to enable proper USB FET driver installation?

    Thanks in advance -- Abhijit Das

  • Guru 130905 points

    In reply to Abhijit Das70645:

    Hi Abhijit,

    have you been able to install?  ( I ask as you verified the answer)

    Have you seen this wiki with some details on dependancies and various Linux versions?

    http://processors.wiki.ti.com/index.php/Linux_Host_Support#Installation_Instructions

    Best Regards,
    Lisa

  • In reply to Lisa TI:

    Hello Lisa,

    No. Could not resolve it yet. I clicked on the "Verify" button by mistake.

    On the dependency thing,  I saw the list of libraries (.so files) in the wiki page. I was manually checking if those libraries are present in /usr/lib or not. There are minor variations and moreover it is difficult to figure out which library is included in which package... If the CCS developers (linux platform ) tell us the packages CCS depends on then it will be much easier exercise...

    How do I know which package to load if I miss out something. Another thing I would love is to have some debug trace which can promptly tell why it is missing out the USB FET driver.

    Regards -Abhijit Das

  • Genius 13150 points

    In reply to Abhijit Das70645:

    Abhijit Das,

    There is a couple of things we can check:

    (1) When the USB FET is plugged into the computer, from a terminal windows type lsusb -t . Do you see a device that looks like this:

    /:  Bus 05.Port 1: Dev 1, class="root_hub", Driver=uhci_hcd/2p, 12M
        |__ Port 1: Dev 4, If 0, class="comm"., Driver=cdc_acm, 12M
        |__ Port 1: Dev 4, If 1, class="data", Driver=cdc_acm, 12M

    If you type sudo lsusb -v., you should see output like this for one of the devices:

      idVendor           0x2047
      idProduct          0x0010
      bcdDevice            1.04
      iManufacturer           1 Texas Instruments
      iProduct                2 Texas Instruments MSP430-JTAG

    that would tell us the device is being recognized by the kernel.

    If the device is recognized, then we investigate next why CCS cannot find it.

  • In reply to AndyW:

    Hello Andy,

    Here is what I got following your instruction:

    $ lsusb -t
    /: Bus 05.Port 1: Dev 1, class="root_hub", Driver=uhci_hcd/2p, 12M
    /: Bus 04.Port 1: Dev 1, class="root_hub", Driver=uhci_hcd/2p, 12M
    |__ Port 2: Dev 2, If 0, class="comm"., Driver=cdc_acm, 12M
    |__ Port 2: Dev 2, If 1, class="HID", Driver=usbhid, 12M
    /: Bus 03.Port 1: Dev 1, class="root_hub", Driver=uhci_hcd/2p, 12M
    |__ Port 2: Dev 2, If 0, class="HID", Driver=usbhid, 1.5M
    |__ Port 2: Dev 2, If 1, class="HID", Driver=usbhid, 1.5M
    /: Bus 02.Port 1: Dev 1, class="root_hub", Driver=uhci_hcd/2p, 12M
    /: Bus 01.Port 1: Dev 1, class="root_hub", Driver=ehci_hcd/8p, 480M
    
    
    $sudo lsusb -v
    Bus 004 Device 002: ID 0451:f432 Texas Instruments, Inc. eZ430 Development Tool
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 1.10
    bDeviceClass 0 (Defined at Interface level)
    bDeviceSubClass 0
    bDeviceProtocol 0
    bMaxPacketSize0 8
    idVendor 0x0451 Texas Instruments, Inc.
    idProduct 0xf432 eZ430 Development Tool
    bcdDevice 1.00
    iManufacturer 1 Texas Instruments
    iProduct 2 Texas Instruments MSP-FET430UIF
    iSerial 3 89FF4225A511081D
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 85
    bNumInterfaces 2
  • Genius 13150 points

    In reply to Abhijit Das70645:

    I checked with the MSP430 team and found that the ezFET type USB interfaces are not supported on Linux. The only supported MSP430 FET on Linux is the FET430UIF.

    Unfortunately, the interface you are trying to use will not work under Linux.

  • In reply to AndyW:

    HI,

    Try this alternate solution (Debug under CCS and Dump under mspdebug)

    LAUNCHPAD and MSP eZ430 RF :

    Step 1: Install Linux version of CCS (Code Composer Studio 5.2 version is the latest one).

    Note : Softwares are available at TI site. You may have to create an account in the site to download the software.

    Step 2: Type in a “terminal” window command “uname -r” to know your linux kernel version. (it is of the form “3.2.0-29-generic-pae”). Copy the file “/lib/firmware/<kernel_version>/ti_3410.fw” to “/lib/firmware/ti_3410.bin”.

    Note : Please note the extension .bin and .fw.

    Command : sudo cp /lib/firmware/<kernel_version>/ti_3410.fw /lib/firmware/ti_3410.bin

    Step 3: Install package called “mspdebug” using the below command,

    Command : sudo apt-get install mspdebug

    Note : The above package is dependant on other msp430 related tools which also need to be installed. (msp430mcu, msp430-libc, gcc-msp430, binutils-msp430, msp430-gdb).

    Step 4: Create a file “/etc/udev/rules.d/46-TI_launchpad.rules” using below command,

    Command : sudo gedit /etc/udev/rules.d/46-TI_launchpad.rules

    Contents of this file to be : ATTRS{idVendor}==&quot;0451&quot;, ATTRS{idProduct}==&quot;f432&quot;, MODE=&quot;0660&quot;, GROUP=&quot;plugdev&quot;

    Save the file and exit.

    Then type command in a terminal window as : sudo restart udev

    Note : Please restart your computer, if needed.

    Step 5: Open CCS and write a sample program on MSP430. Build the project and Debug, which will result in a file called with extension “.out” that need to be dumped.

    Note : Please note we can NOT dump the coding into MSP430 that use USB interfaces because the CCS does not support Linux USB drivers for MSP430. Hence we are using alternate tool mspdebug to dump the coding. Here, we rae trying to use rf2500 driver for the LANCHPAD too.

    Step 6: Open a terminal window and change directory to the location where the output file (.out) file exists and Type “mspdebug rf2500”. Note : This need to be done after connecting the Kit (MSP LAUNCHPAD / MSP eZ430 kit) to Linux host. You should get below messages if everything went fine,

    MSPDebug version 0.18 - debugging tool for MSP430 MCUs

    Copyright (C) 2009-2011 Daniel Beer <dlbeer@gmail.com>

    This is free software; see the source for copying conditions. There is NO

    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    Trying to open interface 1 on 004

    Initializing FET...

    FET protocol version is 30000002

    Configured for Spy-Bi-Wire

    Set Vcc: 3000 mV

    Device ID: 0xf227

    Device: MSP430F2274

    Code memory starts at 0x8000

    Number of breakpoints: 2

    fet: FET returned NAK

    fet: warning: message C_IDENT3 failed

    fet: FET returned NAK

    fet: warning: message 0x30 failed

    Available commands:

    = delbreak gdb load opt reset simio

    alias dis help locka prog run step

    break erase hexout md read set sym

    cgraph exit isearch mw regs setbreak

    Available options:

    color gdb_loop iradix

    fet_block_size gdbc_xfer_size quiet

    Type "help <topic>" for more information.

    Press Ctrl+D to quit.

    (mspdebug)

    You can flash the programs, now, in this new command prompt and sample commands for this command prompt are as given below,

    prog abc.out : This will write abc.out into flash memory.

    run : This will run the program fed into the flash memory.

    reset : Please type this command before dumping another code.

    Note : You may type “help” to know more options available.

    We tried the above methods on both MSP eZ430 and Launchpad kits and worked.

  • In reply to Vijay Salian:

    Thanks a lot!  I was having the same problem as OP and this solution worked for me.  Its a shame I can't use the GUI but I can at least verify my code is working using this command line tool.  Please consider this issue in your next CCS patch TI devs!