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.
I am currently using Stellaris LM3S9L97 for a particular device. I am using XDS100v2 debugger and code composer studio 4 as a compiler. For some reason every time i begin the debug process, the compiler hangs at the screen showing "Connecting to Texas Instruments XDS100v2USB Emulator_0/CORTEX_M3_0". I tried a different board, a different debugger and checked the continuity of cables. The problem still persists. I was working prior to 5/29/2013 and the next day suddenly stopped working. I tried using another computer with the CCv4 installed and i am facing the same problem. I am quite convinced its a problem with the compiler software but i could be wrong. Please help me or let me know the possible causes for the same
Hi Salil,
you mention that it stopped working. I think the first step in debugging would then be to see what might have changed. Did you install other programs? Did you make any modifications to ccs? etc. Also hardware changes/issues would be good to look at.
Please keep us informed.
Best Regards,
Lisa
Hello Lisa,
I changed the hardware components (including cables, debugger, and the board) but the problem still persists. As i mentioned it even occurred on another computer which had the same version of CCSv4 with no changes to any of the debugger settings. This lead me to suspect that it is more or less a problem with the CCSv4 trying to establish contact with the hardware. If you need i can send snapshot of my settings - please let me know what you need and i will provide it so that you will be able to understand the problem better
Salil
Hi Salil,
situations like these can be tricky to debug. If something was working and stops this usually triggered by something. A change, something breaking, etc. From my experience even things like usb port choice have had an impact. Ie one usb port will work where another or a hub may not.
I think the next thing to do would be to try and verify for sure whether this is hardware or pc environment/software related. Was it the same project working previously and it seems you have verified a new or example project shows the same behaviour?
Best Regards,
Lisa
Hello Lisa
Changing USB ports does not help - The project did load correctly until 29th of May and suddenly on 30th morning everything stopped working which was puzzling. I remember once i did press the debug button by accident without connecting, and got an error because of that but what was surprising was that on another computer, with a different board, the problem re-occurred which was even more puzzling. Also I tried CCSv5 and downloaded a sample project from that - it worked , but CCSv4 stopped working completely and even sample projects also stopped working. In fact when i compile the project (in CCSv4) (since there is no method of directly downloading the code without debugging) the next step is to connect the to the target, and as soon as that button is hit, the compiler completely hangs and stops responding at all. I am not sure whether it is a java issue or something got automatically updated overnight and stopped working?
Please let me know what i should start checking -if need be i can send you screenshots of my settings if you need to verify anything.
Salil
Hi Salil,
so v5 works? Have you tried importing your project(s) to v5? Basically to troubleshoot we would need to know ..
- exact setup and what changed from the 29th to the 30th
Best Regards,
Lisa
Hello Lisa,
I tried to Import the project into CCSv5, but i faced problems with that too - initially it would say -compiler definition is missing and would not let me import and says " Use General>import project" as it is not a CCS project, and when i use that, it says use "CCS project" option to import. Somehwo i did manage to import files, but then it says that the project is not device specific and will not allow me to debug. Can you help me on how to import a CCSv4 project and be able to debug -that might not help solving the original problem but would be a great work around to it.
Salil
Hi Salil,
you should be able to use project->import existing ccs/eclipse project. Are you using the latest v5 version? You need to use that import path for any project that is a ccs project
Best Regards,
Lisa
Hello Lisa,
I already tried that - and that is still giving me the error that the compiler definition is missing and there is no device associated with the project. My mistake i forgot to mention the option name correctly
Salil
Hi Salil,
did you change permissions or user account settings? Are you using v5.4? Also ... I don't believe it is the issue, but could you make sure you have stellaris support installed. You can check this in window->preferences->code composer studio->build->compilers (it might also be code generation tools if you don't have the latest)
Best Regards,
Lisa
Hello Lisa
After some discussion, we arrived at a conclusion that migrating the project from CCv4 to CCv5 might be the best option so far. Since for CCv5 we select the device in the beginning, do you recommend i migrate the old project ( which still has the device problem) or make a new project and copy the code from the old project?
Let me know your thoughts
Regards
Salil
Hi Salil,
You can try importing as that might be easiest. Project->import existing ccs/eclipse project. The main thing you will need to watch for is any include paths and variable may need to be corrected and/or reentered.
Please keep us informed how it goes.
Best Regards,
Lisa
Hello Lisa
Which compiler tool do i need to install for using the Stellaris LM3s9L97 chip and XVD100v2 debugger?
Salil
Hi Salil,
did you get any errors importing? You should not need to install any special version or extra components if you selected stellaris support when installing. Stellaris uses the ARM compiler. I believe you are hitting a know BIOS version incompatibility but you should not need the specific BIOS version.
Best Regards,
Lisa
Hello Lisa,
Yes i did select stellaris support while installing
I am still getting an error saying:
See details below...
Error: Import failed for project 'usb_dev_serial' because its compiler definition is not available. The project does not appear to be a 'CCS Project'. Please try importing it through the 'General > Existing Projects into Workspace' wizard.
regards
Salil
Hi Salil,
would you be able to send your project for us to look at/try to reproduce this?
Best Regards,
Lisa
Hello Lisa,
Yes i can do that - let me know whether to tag it or send it via e-mail?
Regards
Salil
Hi Salil,
you can post it here or if you would prefer offline, my ID is a link ... you can start a friend/conversation request which will allow this to go offline.
Best Regards,
Lisa
Hello Lisa
I have sent you a conversation containing the 2 files. Let me know in case you did not receive them, i will upload them here.
Regards
Salil
Hi Salil,
yes I recieved your messages/files, many thanks. Let me have a look and get back to you as I am able.
Best Regards,
Lisa
Hi Salil,
is this a gcc/code sorcery project? I do not see the normal ccs project files? That surprised me a bit as this is what would normally be expected for a pure ccs project.
Best Regards,
LIsa
Hey Lisa,
can you see those files in the other project, Let me know which files are missing. This is indeed a CCSv4 project (or at least CCSv4 runs it). There is a ccs folder contained. If not, I might have missed out on some of the project files, let me know which ones and i will send you those as well.
Regards
Salil
Hi Salil,
we are looking into things. We have verified the project works in v4.2.4 however you are correct, there seems to be a problem with v5.4 reading this project.
As soon as we have further feedback we will let you know.
Best Regards,
Lisa
Hello Lisa
Thanks for your help so far. I have a few questions as well -
1) How do i make sure that the project is a valid CCS project ?
2) Is the project i gave you a valid CCS project (it does contain a ccs folder) ?
3) The other example project (usb_dev_keyboard) has no problem of migration, but only my code does - is this caused by the fact that the main code file (usb_dev_serial.c) is in a separate folder?
4) Since this code was originally an example code modified with the files - can i get the original example code project (usb_dev_serial)?
5) Once i get that - should i try copying my other code files into the 'new' example project
Please advise and let me know your thoughts
Thanks and regards
Salil
Hi Salil,
we are unable to determine how or why, but your .cproject file seems corrupted. So we have made some progress here. Can you try deleting that and importing? (please use a fresh workspace) The reason it works in v4 is that v4 uses the .cdtbuild with preference so is not bothered.
Regarding some of you questions ... you should be able to download the example suite again to access unmodified examples should you not have an umodified copy.
Best regards,
Lisa
Hello Lisa,
I tried removing the .cproject file and it did import (it still gave errors though) but i was able to import it. Strangely, the example projects do not have this file. How can i get a copy of the file? how can i recover / remake the .cproject file?
Regards
Salil
Hi Salil,
there is not really a way to recover the file. We can only tell you it was somehow corrupted. In ccsv5 this is actually an autogenerated file so it is not a file you "get" or create somehow.
Glad that got the project imported however.
Best Regards,
Lisa
Hello Lisa,
I figured that the cproject file is created by the compiler and stored in the work space. Whoever wrote the code before me copied the folder from the workspace instead and overwrote the original example. Since CCSv4 as you told, did not use that file, there was no issue in importing and working with it, but since CCSv5 does not like the file being present, it was not allowing me to import the project (which kind of sucks) - also i was not getting any clues as the software was confusing me by giving an error saying 'compiler definition missing' which made no sense. All that had to be done was to get rid of the cproject file. The zip folder i gave you also being a project folder should not have the cproject file, but it did because it was copied from the workspace earlier. After being able to import, i was facing errors saying cannot open file "xyz.h" even though it was included (this also sucks) but when i relocated the files and changed the include path, the problem vanished. I still dont know why it was not able to find the ".h" files since all were included (were showing in the project structure) - i even went onto adding the files manually / copying them into the workspace folder, but nothing happened until i had to change their location. Also there is no option to check whether a file has been added or building it individually if it is a ".h" file - something i do not understand why.
For now i think i will be able to work with this but please give the developers a serious feedback as the error messages and interface are not user friendly at all.
Even on adding a file manually, it does not show it in the project tree structure which is also confusing.
Also since it is being able to compile on v4 - try running it on a sample board with the LM3S9L97 chip with the XDS100v2 debugger and see if it hangs while connecting to the target.
Regards
Salil
Hi Salil,
thanks for the update, patience and feedback. I am very glad to hear you seem to be past the hurdles.
All the best with development.
Best Regards,
Lisa
Hello Lisa,
Thanks for your help too - You helped me patiently, that's why i was able to make it till here. I will just make one last request -that is to give the feedback to the people who develop the compiler to make it more user friendly, and help re-define the errors so that no one else has to go through what i did. I believe that there should be back compatibility and different versions of the compiler creating different files is a bad way of approach.
Thanks for everything.
Regards
Salil
Hi Salil,
no worries, we certainly appreciate any feedback.
All the best once again.
Best Regards,
Lisa