• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Development Tools » Code Composer Studio » Code Composer Forum » Installing CCS5.2 under Ubuntu
Share
Code Composer Studio
  • Forum
  • Announcements
Options
  • Subscribe via RSS
Common Questions
  • Code Composer Studio Forum Usage Guidelines

  • Resources
  • Code Composer Studio (CCStudio) Product Folder
  • Troubleshooting CCS
  • CCS Wiki
  • Download CCS
  • Order CCS
  • Tools Insider Blog
  • Bug Tracking
  • Installing CCS5.2 under Ubuntu

    Installing CCS5.2 under Ubuntu

    This question is answered
    Abhijit Das70645
    Posted by Abhijit Das70645
    on Apr 13 2012 06:39 AM

    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

    msp430 CCS5.2 USBFET
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Lisa TI
      Posted by Lisa TI
      on Apr 13 2012 14:03 PM
      Guru100155 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

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Abhijit Das70645
      Posted by Abhijit Das70645
      on Apr 14 2012 02:09 AM
      Guru0 points

      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

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Abhijit Das70645
      Posted by Abhijit Das70645
      on Apr 14 2012 04:59 AM
      Guru0 points

      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

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Lisa TI
      Posted by Lisa TI
      on Apr 16 2012 08:23 AM
      Guru100155 points

      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

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Abhijit Das70645
      Posted by Abhijit Das70645
      on Apr 16 2012 09:08 AM
      Guru0 points

      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

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • AndyW
      Posted by AndyW
      on Apr 16 2012 10:08 AM
      Expert7475 points

      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.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Abhijit Das70645
      Posted by Abhijit Das70645
      on Apr 17 2012 02:17 AM
      Expert0 points

      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
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • AndyW
      Posted by AndyW
      on Apr 17 2012 08:18 AM
      Verified Answer
      Verified by JohnS
      Expert7475 points

      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.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Vijay Salian
      Posted by Vijay Salian
      on Sep 06 2012 01:55 AM
      Prodigy60 points

      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.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Francis Zarzour
      Posted by Francis Zarzour
      on Sep 25 2012 16:04 PM
      Prodigy10 points

      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!

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • John Burgoon
      Posted by John Burgoon
      on Nov 03 2012 19:46 PM
      Prodigy80 points

      Thank you so much for this excellent post!  I have followed the directions successfully but when I run mspdebug <my_out_file>.out, I get an error "unknown driver".  So I typed mspdebug --help and got this back:

      Available drivers are:
          rf2500
              eZ430-RF2500 devices. Only USB connection is supported.
          olimex
              Olimex MSP-JTAG-TINY.
          olimex-iso
              Olimex MSP-JTAG-ISO.
          sim
              Simulation mode.
          uif
              TI FET430UIF and compatible devices (e.g. eZ430).
          uif-bsl
              TI FET430UIF bootloader.
          flash-bsl
              TI generic flash-based bootloader via RS-232
          gdbc
              GDB client mode
          tilib
              TI MSP430 library

      I created /etc/udev/rules.d/46-TI_launchpad.rules as you described, and changed the &quot; in the post to actual quotes.  Any suggestions?  I feel like I am very close!

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • John Burgoon
      Posted by John Burgoon
      on Nov 03 2012 21:55 PM
      Prodigy80 points

      O the Embarrassment.  Please ignore the above post.

      I apologize.  I typed mspdebug rf2500 as you clearly instructed and got the interface.  This allowed me to load and run my code successfully on the rf2500.

      This worked for me in CCS 5.2 on Ubuntu 12.04 LTS.

      Many thanks, John

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    TI E2E™ Community
    • Support Forums
    • Blogs
    • Videos
    • Groups
    • Site Support & Feedback
    • Settings
    TI E2E™ Community Groups
    • TI University Program
    • Make the Switch
    • Microcontroller Projects
    • Motor Drive & Control
    Other Communities
    • Deyisupport
    • Designsomething.org
    • beagleboard.org
    • TI on Element 14
    • TI on TechXchangeSM
    Other Technical & Support Resources
    • WEBENCH® Design Center
    • Product Information Centers
    • Technical Documents
    • TI Design Network
    • TI Technical Articles
    • TI Training

    All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

    Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

    Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
    TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

    TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
    embedded processors, along with software, tools and the industry’s largest sales/support staff.

    © Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
    Trademarks | Privacy Policy | Terms of Use