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.

CCS 6.1 - MSP432 Device C Code Samples don't work

Other Parts Discussed in Thread: MSPWARE, MSP430F5529

Using CCS 6.1 on 32bit linux ubuntu 14.04 with all updates applied, I tried to use the TI Resource Explorer to load any of the "MSP432P401 Code Examples". When I try to load the first example into the CCS workspace I get this dialog box message:

'Cannot run program "mnt/vobx/shared/ti/msp430/MSPWare_2_00_00_41/~TIRex/MSPWare/templates/scripts/create_projectspec.exe": error=2, No such file or directory'

However, I'm able to successfully load and compile the project "Lab1: Power" as lab1_power" from the Deep Dive training. It creates a new project in the workspace and I can run it.

-rick

  • Hello Rick,

    Seeing as how this question is more related to the CCS environment than the MSP432 device itself I have moved this thread over to the Code Composer Studio Forum. Here your question will get the attention and expertise it needs.

    Regards,
    Ryan
  • That is great Ryan. I originally posted in the code composer studio forum and they moved it to the msp430 forum. I guess it will bounce back there when they see it again.

  • I'm sorry Rick, I was not aware of this thread's history. I tend to post a comment on the thread explaining the move so that this sort of thing is avoided. I'll loop in an MSPWare expert to help resolve this matter.

    Regards,
    Ryan
  • Rick,

    Sorry for the confusion, this is definitely an MSPWare bug not related to CCS. We have already identified this but and have a release coming out Monday (April 20th) via the CCS App Center that fixes it.

    Regards,
    Zack

  • Thanks Zack!

    So where is the correct place to submit MSPWare bugs?

    -rick
  • Rick,

    Correct place is the MSP430 forum. Be sure to mention the MSPWare version (like you did previously) so that we can file the bug appropriately.

    Thanks,
    Zack
  • Rick,

    I mistook it for a CCS problem and I apologize for that. MSPWare questions belong in the MSP430 forum, where this thread has now properly been relocated.

    Regards,
    Ryan
  • Did the update get delayed?
  • I just double-checked and it appears that the new MSPware isn't there yet, as you pointed out in your message. I suspect it's just a minor delay in getting posted on the CCS App Store server.

    Though, it appears that the actual MSPware product was updated. You can find the new version via the MSPware folder. Once you download and install it, CCS should recognize it the next time you open it.

        

    Scott

  • The .exe standalone installer might be great for windows, however it doesn't do much for me on linux.
  • So I went and found a windows box and ran the standalone extractor. I copied the tree of the new MSPWare to the msp430 directory of my linux CCS install. When I started up CCS it detected the new MSPWare and asked if I wanted to install it (3 MSPWare entries were in the list). I left all the packages selected and clicked 'yes'. It restarted and I tried to create a new project. It failed again .. this time at least it was trying to do a python script instead of the create_projectspec.exe.

    It is still broken. It tried to execute the create_projectspec.py and got an error 13. I'm not sure if it was because I copied the files there or if the install just doesn't work.

    I found the file $(my ccs installdir)/msp430/MSPWare_2_10_00_15/~TIRex/MSPWare/templates/scripts/create_projectspec.py

    I noticed it didn't have the execute bit set. I set it. (chmod +x create_projectspec.py) and tried again. That change allowed it to work properly. It created a project and I was able to build the project successfully.

    You know, if you want to test this stuff with someone who will actually try it, I'm available for a small fee. I appreciate your efforts with regard to linux support. I'm just not sure you have the right staff to do it.

    BTW: using ~TIRex on linux isn't really a good naming convention to use. * Probably not a good idea on OS/X either.

    -rick

  • Sorry that I cannot try this out in Linux, but there might be an alternative way to load a project example. What I'm going to show here is generic to all the examples, but if it doesn't help, it might be useful for us to know which example(s) you're having problems with.

    ------------------

    In general, I like using the TI Resource Explorer, but you can always import examples and other projects 'manually'. You can do this by importing a CCS Project:

    Project -> Import CCS Projects...

    Then navigate to the directory that contains the project(s) you're interested in. For example, here I navigated to the "timer_a" projects in the MSP432P4xx folder inside the latest version of MSPware DriverLib. Since I took the default EXE installation location, here's where this is on my PC:

    C:\ti\msp\MSPWare_2_10_00_15\driverlib\examples\MSP432P4xx\timer_a

    Once you've select a directory that contains projects, you can select which one (or more) you want to import into your CCS workspace:

    Please note, if you've already tried to import a specific example, or already created your own project with the same name, Eclipse (i.e. CCS) workspaces won't let you have two projects with the same name.

    Hopefully this helps,
    Scott

  • Scott, So you really didn't read what I wrote.

    What you ship is broken.  I was just trying to alert the people who build and test this stuff. 

    What I did to my personal install fixed it (chmod +x on the python script) .. but that doesn't fix what you ship.  So even when this thing gets upload to the App Center it is likely to still be broken.

    Any yes I knew how to import the projects into my workspace. That is how I was able to report other bugs with the samples.

    So the real question are:

    1.)  Why do you only ship .exe versions of MSPWare install

    2.) Why don't you rewrite the create_project app in java so you only have to support one thing? Now you have two things.  One a native windows app and the other a python script.  If you wrote it in java you would be able to support one thing and it would run on windows, linux and os/x.

    3.) Does anyone really test this stuff on linux.

    4.) Should running the MSPWare install .exe  on windows and copying the extracted files to linux work? 

  • Rick,

    Sorry it took awhile for me to chime back in, I was traveling the past couple weeks and wanted to have some time to thoroughly address this. Responding to your 4 questions.

    1. The short answer is that there is no good reason. For some background we originally only supported Windows and only had a standalone installer. When CCSv6 came around the App Center was born we moved our installation to the App Center and added Linux support. However, we never added a standalone Linux installer and just kept our Windows installer. Moving forward we'll add a dedicated stanadlone Linux installer as well as continue the updates through the CCS App Center. I know right now MSPWare 2.10.00.15 can't be installed through the App Center but that is some technical issues on our side that we are trying to work through, once that is fixed you'll be able to install MSPWare for Linux through the CCS App Center.

    2. The native windows application is actually just a compiled binary of the python script, because on Windows we can't assume a user will have the python runtime installed we compile it into an exe that can run on the user's machine. So we are still only supporting one version of the software but the Windows version is a binary version of the python script.

    3. We do perform some tests on Linux, however I can recognize there is some improvement to be made. One of our priorities this year is to give better operating system support so we will continue to do improvements over the year to get the Linux version on par with the Windows version. We are also working on Mac OSX support now that CCS is coming to the OSX platform so we will strive to make sure the experience is seamless between all three platforms (which is not always the case right now).

    4. No, I wouldn't expect this to work 100%. A true Linux installer should make this workaround obsolete or installing the Linux version through via the App Center.

    More info about CCS on Mac OSX:
    e2e.ti.com/.../exploring-the-msp430-tool-chain-part-7-code-composer-studio-on-mac-beta-now-available

    Hope that clears up any concerns. Please keep the Linux feedback coming.

    Thanks,
    Zack
  • Thanks for the detailed response Zack.

  • Unfortunately this seems to be a recurring issue for me.  I am teaching an Assembly Language class where we are using EXP-MSP430F5529LP launchpads and Code Composer Studio.  The C examples are useful for my students, but MSPWare is usually broken at the point where you try to view the C files or where you click the blue "Create" button that becomes "Loading Project."  The message is shown is the screen shot.  (You can't copy and paste the message, which is also annoying.)

    I poked around and found that at least one problem may be related to the fact that the C directory isn't in the argument, but it is there in the files installed in MSPWare, but I don't know.  The only way I have found to nicely work around this is to copy the whole installation from a working computer that wasn't updated with the latest MSPWare, and use that.  Can you make this work?  My students and I have had the problem on Windows and Linux.

    Thanks,

    Rob

  • You definitely installed the program as root. Just use chown to change the own of  ccs. I changed the owner of the entire /opt/ti directory to the user and everything works perfect.

  • Thanks for the reply!  Unfortunately that didn't solve it for me (Ubuntu 15.10).  I did a sudo chown -R frohro ~/ti, but I still get this:

    It is annoying that you can't copy and paste the error into Google or this post.  It just won't allow me to copy it.  

    I did make a work around for my class though.  I made a workspace with all the MSP430F5529 C examples, from which my students can import.  It isn't as nice as when CCS used to work, but it it is better that digging through the directories looking for the source, and pasting that into a new project.  The workspace is here if anyone else needs it:  http://people.wallawalla.edu/~rob.frohne/ClassHandouts/Assembly/example_workspace.zip

    Thanks,

    Rob

  • Sorry to hear that. I am also using 15.10. I encountered many problems during the installation process. I am not so sure of what's the cause of this problem. I only had this problem before when I ran ubuntu through virtual machine and I never solved it(I am now using ubuntu installed on hard drive.). However, I can post here all the problems that I had and the solutions here. Maybe it will be helpful.

    First, I cannot run the .bin file even if I used chmod. I solved it by browsing the linux installation instruction from TI(the part for 15.04) and installed the dependencies to run 32bit.

    sudo apt-get install libc6:i386 libx11-6:i386 libasound2:i386 libatk1.0-0:i386 libcairo2:i386 libcups2:i386 libdbus-glib-1-2:i386 libgconf-2-4:i386 libgcrypt11:i386 libgdk-pixbuf2.0-0:i386 libgtk-3-0:i386 libice6:i386 libncurses5:i386 libsm6:i386 liborbit2:i386 libudev1:i386 libusb-0.1-4:i386 libstdc++6:i386 libxt6:i386 libxtst6:i386 libgnomeui-0:i386 libusb-1.0-0-dev:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386 unzip

    two packages not working libcrypt11:i386 and libgtk-3-0:i386. I installed libcrypt11:i386 using an older package from 14.04 successfully and ignored the libgtk-3-0:i386. Now, it can be installed.

    Second, after I installed ccs, I cannot install the mspware from app center. It prompted that it needs root permission to /eclipse. I changed the permission and It can be installed, but configuration failed.

    So, the last thing I did is change the owner. The configuration succeeded. After that, I tried create a project, just to check if it is working well. And, actually, everything is fine.
  • Hi Zack,

    It appears that the bug described here changed.  I cannot even get as far as I used to.  Now it stops without any error messages without doing anything at all.  This is in Ubuntu 14.04 64 bit, or 15.10 64 bit, and I am just now getting ready to try Ubuntu 14.04 32 bit.  It would be nice to have at least a workspace that we could download with the projects in it.  MSPWare has not worked for at least a year now for me on Ubuntu, and I've spent a while googling for solutions, and trying various things that haven't worked.  Is there a place where MSPWare error logs go?  I don't even have an error to work with now.

    Thanks,

    Rob

  • To save others the hassle of installing 32 bit Ubuntu 14.04, the results are identical to Ubuntu 14.04 64 bit and Ubuntu 15.10 64 bit.
  • more failure examples:

**Attention** This is a public forum