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

