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.

Debug - Exception During Launch

Other Parts Discussed in Thread: LM3S3748

I am using CCS v 4.1.0 with EKS-LM3S3748

Suddenly I am unable to launch the debugger. I get error window with the following notice:

Exception occurred during launch

Reason: resource  /driverlib is not open

This has recently occurred, I had previously been able to launch debug but now am getting this message. After checking the forum for similar problems I uninstalled and re-installed CCS but am still getting the same error message. To confirm that it is not my program I tried the hello sample and get the same message.

Any ideas?

  • The error says that the resource driverlib is not open. I get the same error if the Stellarisware driverlib is not "open" in my workspace. Could you check that you have the driverlib project "open" in your workspace? Note that a project can be open or closed even when it is visible within the C/C++ Projects view. If you see driverlib listed there, make sure it is open by right-clicking on the project and selecting Open Project. If it is not visible in the view, go to menu Project->Import Existing CCS/CCE Eclipse Project, browse to the Stellarisware folder where the driverlib is located, and import it.

    Stellarisware examples may have more than one library dependency, eg, driverlib, grlib etc., so you should make sure they are all open in your workspace before launching the debugger.

  • In the C/C++ Projects list I see a closed folder driverlib. If I right click and select Open Project then I get an error message "The project description file (.project) is missing. This file contains important information about the project. The project will not function properly until this file is restored."

    If I go to Project>Import Existing CCS/CCE Eclipse project and browse to my Stellarisware directory the only project it finds to open is usblib

  • vern hardingham said:

    In the C/C++ Projects list I see a closed folder driverlib. If I right click and select Open Project then I get an error message "The project description file (.project) is missing. This file contains important information about the project. The project will not function properly until this file is restored."

    Do you actually see the .project file for driverlib in the folder C:\StellarisWare\driverlib\ccs (or equivalent depending on where you installed Stellarisware)? If you do not, you likely do not have the Driverlib installed.

    The complete Stellarisware package includes all the library software as well, so if you installed that you should have driverlib. However, the driverlib is available as a standalone package as well.

    Please see http://focus.ti.com/docs/toolsw/folders/print/sw-lm3s.html and http://focus.ti.com/mcu/docs/mcuorphantoolsw.tsp?sectionId=632&orphantabId=8

     

  • Yes I see a .project file in C:\Stellarisware\driverlib\ccs  , its properties show created Jan. 27, 2011 with a size of 3.33Kb. I have also just attempted to import existing ccs project by browsing to C:\Stellarisware\driverlib\ccs and still CCS is not showing any discovered projects.

    I just downloaded from http://focus.ti.com/docs/toolsw/folders/print/sw-lms.html and reinstalled from that package - no change, still get .project file missing if try to open driverlib folder and am unable to import any projects at C:\Stellarisware\driverlib\ccs

  • vern hardingham said:
    I have also just attempted to import existing ccs project by browsing to C:\Stellarisware\driverlib\ccs and still CCS is not showing any discovered projects.

    If there is already a project in your workspace named driverlib (which it sounds like it does), then CCS will not discover/display any projects of the same name as it cannot have 2 projects with the same name in the workspace.

    Please try importing the projects again into a new clean workspace. Close and restart CCS, specify a new workspace directory when prompted for workspace and then follow Steps 4 and 5 as described in the Stellaris Quickstart Guide for CCS.

     

  • I did as you just suggested. Created an empty workspace then imported driverlib, usblib and grlib then imported the example projects and it now works.

    I've been working with an off site engineer to develop some code modules for me. For some reason he decided to switch over and start using IAR instead of CCS. I had placed his folder for the IAR project in my Stellarisworkspace folder then created a new project for myself and copied his .c and .h files into it. I notice that his IAR project folder contains a file driverlib, would this instance of driverlib cause the overlap that was blocking me from opening my driverlib?

    While were on the subject, the engineer is trying to get me to switch to IAR. I don't really want to learn another IDE, I've already had to learn Quartus for a CPLD project I'm working on and CCS for the LM3S3748. What are your ideas of CCS vs IAR? One thing I note is that the free IAR KickStart limits to 32K of code (for the LM3S3748), why would I want to do that when I'm working with a mcu with 128K. I can't even find the cost for a full licensed version of IAR (as one post I saw somewhere says "If you have to ask the price then you can't afford it").

    I've had my hurdles with CCS (this is my first time programming at this level) but have had good support from the forum. Any good arguments I can use to stay with CCS?

    Thanks for your help

  • vern hardingham said:
    I notice that his IAR project folder contains a file driverlib, would this instance of driverlib cause the overlap that was blocking me from opening my driverlib?

    Sounds like that would've been the cause of the problems.

    Regarding IAR vs CCS, both toolsets are good products and actively supported, so either one will serve you well. Some of the factors that come into play may be cost and familiarity with IDE. The free IAR that comes with the Stellaris kits is code size limited (32k), and I'm not sure of the cost of a full version. The free CCS that comes with the kits is fully functional and not code limited but is limited to use with the eval kits. If you need to use it at a later time with a RDK or custom board, you would need to purchase a microcontroller license (http://focus.ti.com/docs/toolsw/folders/print/ccstudio.html)

     

  • Aarti,

    I would like to clarify a couple of points for my selection of IDE. For the benefit of other forum users I should start a new thread regarding choice of IDE. Possibly you can follow me there.