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.

Does any part of Code Composer Studio work out of the box under Linux?

Other Parts Discussed in Thread: UNIFLASH

I am so frustrated with Code Composer Studio, especially UniFlash running (or not actually) under Linux.  Firstly, can anyone in this forum who uses linux say that they have just installed the product and it worked?  I'm not actually a gui ide developer but the reason I'm installing CCS is that I need a way to upload .out files to my development board.  Secondly, I should say that previously I've gotten tivaware to install under linux as a cmdline development environment.  Perhaps its telling that most of the steps and tools are third party with the exception of lm4flash.

So this is what I've been doing to get a working cmdline tirtos installation built upon the the working tivaware setup:

I installed the linux version of tirtos and after mondo massaging of the make files to get rid of dos style path references I finally got an example to compile. I used objcopy to create a .bin from from the .out so it could be flashed using lm4flash.  No fading lights.  I later found out that the default build is set to compile for debugging which means the program is waiting and will never execute.  So I had to change the make and cfg files.

However, still no luck.  the bin file uploaded but no action on the leds.  So I figured I should try and upload the .out file.  This requires Uinflash.  I can also see other asvantages to using Uniflash. After I installed uniflash and the device drivers I got this error trying to create a new connection in the gui:

[22:05:39] ERROR >> Unable to load /home/developer/ti/uniflashv3/ccs_base/DebugServer/drivers/libstellaris_emu.so: libnspr4.so: cannot open shared object file: No such file or directory
[22:05:39] com.ti.debug.engine.IApplication$InitializationException: Unable to load /home/developer/ti/uniflashv3/ccs_base/DebugServer/drivers/libstellaris_emu.so: libnspr4.so: cannot open shared object file: No such file or directory

Running Uniflash from the cmd line results in the following error no matter what options I give it:

js: "/home/developer/ti/uniflashv3/ccs_base/scripting/examples/uniflash/cmdLine/uniFlash_core.js", line 8: uncaught JavaScript runtime exception: TypeError: Cannot call method "setDefaultDialogResponse" of null

I then reasoned that I should join the dark side and install the full CCS for linux.  I followed all the instructions for dependencies and creating the symbolic link then I installed tirtos from the app center.  I imported the pwmled project for my board and tried to build the project only to get more errors.  I get this same error building for either debug or release:

**** Build of configuration Debug for project pwmled_TivaTM4C1294NCPDT ****

/home/developer/ti/ccsv6/utils/bin/gmake -k all

/home/developer/ti/ccsv6/utils/bin/gmake -k all
Cannot run program "/home/developer/ti/ccsv6/utils/bin/gmake": Unknown reason

Error: Program "/home/developer/ti/ccsv6/utils/bin/gmake" not found in PATH
PATH=[/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games]

Error: Program "/home/developer/ti/ccsv6/utils/bin/gmake" is not found in PATH

PATH=[/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games]

**** Build Finished ****

That error makes no sense whatsoever.  Its giving a fully qualified path to a program and saying that it cannot find the program in the default path.  Well it doesn't need to be because the path is already fully qualified.  In fact gmake is exactly where it should be.

Its also worth noting that the udev rules created by both the tivaware and Uniflash installations are useless.  I still have to run lm4flash as root to upload a bin.

I don't understand why its so complex to use CCS under linux.  What am I doing wrong?  Thanks.

Doug

  • Doug,

    I am sorry to hear about your frustrating experience.

    Douglas Petican said:
    Firstly, can anyone in this forum who uses linux say that they have just installed the product and it worked?

    Yes, I can. CCS works out of the box without any major problems. Sometimes the example code is where the problem lies (also the supporting tools) and your post touches a plethora of issues where most are not related with CCS per se.

    Douglas Petican said:
    I installed the linux version of tirtos

    I haven't used TI-RTOS in Linux, only Tivaware (installed as a hack from the Windows executable, as you mentioned). However the standalone product issues you are having, as well as the reasons why to example code does not work as expected, will be better handled by the experts at the TI-RTOS forum - I suggest you post these questions there.

    Douglas Petican said:
    After I installed uniflash and the device drivers I got this error trying to create a new connection in the gui:

    I haven't used Uniflash extensively in Linux, but I created a new configuration using the menu File --> New Target Configuration and couldn't reproduce this issue. I am using Uniflash 3.1.0.00026 on my Ubuntu 12.04/64 bits.

    This and the next error you got seem to indicate something is not right with your Uniflash install. I would strongly recommend you to completely erase the installed software (rm -Rf) and retry the install. Also, since you are running into such issues (and to reduce your frustration) I strongly recommend you to download and install the standalone installer for Uniflash (check here).

    Douglas Petican said:
    I imported the pwmled project for my board

    I also can't reproduce this issue; the PWMLED project for this board built just fine here and I am unsure what may be happening. I am using CCSv6.1.0 on the same Ubuntu 12.04/64.

    How are you importing this project to your workspace? I am using the TI Resource Explorer as shown in the screenshot below.

    Douglas Petican said:
    That error makes no sense whatsoever

    I agree with you; what I suspect is that it is a secondary message that imprecisely stems from the error of the first one (the "unknown reason" one, which is not much more helpful).

    With that in mind, I searched around on e2e but did not find much more information about this particular error - other than issues when importing Windows-based projects into CCSv5.

    That brings to my mind: what are the versions of the tools you are using?

    Douglas Petican said:
    Its also worth noting that the udev rules created by both the tivaware and Uniflash installations are useless.  I still have to run lm4flash as root to upload a bin.

    Lmflash is not supported by us in the CCS team (it is part of the Tivaware package). For details on that, I would strongly suggest you to ask on the TM4C Microcontrollers forum.

    Douglas Petican said:
    What am I doing wrong?

    I don't think you are doing anything wrong per se, but I suspect that something in your install may have started the wrong way, and the problems escalated. With all this, I would try to start fresh. Uninstall CCS, uninstall uniflash, uninstall TI-RTOS. Then, erase the directories shown at section 2 of the troubleshooting page below:

    http://processors.wiki.ti.com/index.php/Troubleshooting_CCSv6

    Reinstall CCS, then TI-RTOS from the App Center. You should be in a stable state at this point and hopefully your projects will build successfully.

    Hope this helps,

    Rafael