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.

Stopped at launching and cannot restart

Anonymous
Anonymous

Hi All,

 

I would like to ask about a problem in CCS 4.

 

This problem happens intermittently. After clicking "debug" button on the toolbar, a windows will appear detailing the task currently being performed (connecting to device, etc.). Sometimes the window got stopped there with the green progress bar indicator repeatedly moving from left to right without proceed to the next stage. It will continue to be in this state if there is no user intervention.

 

Then I clicked "cancel" at the bottom of this window and this action also generate no response. The "cancel" button will become dark while the window displays

  1. At the upper half of window: "Launching Debug Session".
  2. At the lower half: "No operations to display at this time".

                        

                        

It will continue to be in this state like forever. I have waited once for an hour and nothing changed.

 

What makes matter worse is that the program cannot be terminated from Windows task manager. There are two programs associated with CCS 4

  1. eclipse.exe
  2. javaw.exe

 

While eclipse.exe can be instantly terminated by "End Process", javaw.exe cannot and will persist there (It's not easy to reproduce the problem since I don't know its cause and my impression on which of these two files cannot be terminated might be incorrect). Although killing eclipse.exe would cause the CCS window to disappear, when I am trying to start it again by clicking its desktop shortcut, the welcome window will tell me

"Workspace in use and cannot be created, choose a different one"

                         

                                  

Even after turning off the system (power off) and restart the problem still persists. It will still gives the same "Workspace in use and cannot be created, choose a different one" message and will abort after clicking "OK".

 

The only way to get CCS started I have found so far is to delete CCS's workspace folder. Although I could do some backup, this is nevertheless very inconvenient and could cause some setting lost.

 

Why do these (1. stop when launching debug; 2. cannot restart) happen? Is there a solution to them?


The version of my CCS is 4.1.2.00027

I would also like to report my hardware condition here if this is a factor to be considered: The connection between XDS560 emulator and the EVM is loose and sometimes I have to re-plug it in order to load object file into EVM. At most times, however, it works fine.

 

 

Sincerely,
Zheng

 

  • Zheng,

    We have heard of a couple of instances of this occuring but not consistent enough to reproduce systematically.

    These are some of the steps to try to recover when CCS hangs:

    Kill eclipse.exe from Task Manager. Sometimes this alone is not sufficient and CCS cannot restart the same workspace because there's a lock file that makes CCS think the workspace is in use. This appears to be a Eclipse problem and one of the web pages I found with suggestions to resolve the issue is http://wiki.eclipse.org/IRC_FAQ#My_Eclipse_just_crashed.2C_when_I_try_to_restart_it.2C_it_says_.22workspace_in_use.22.2C_what_should_I_do.3F

    These are some other options to try as well:

    1) Locate the .lock file in the workspace folder and try to delete it.

    2) Also kill the javaw.exe. If this does not get killed from Task Manager, try killing it from a command prompt using: taskkill /IM javaw.exe.

    3) Try unplugging the USB emulator and replugging it

    In some cases though it is not possible to kill the javaw.exe process at all.  In such cases the only option I am aware of is to reboot the PC.

    FYI, here is a related post on the forum: http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/3391/12002.aspx#12002

  • Anonymous
    0 Anonymous in reply to AartiG

    Dear Aarti,

    Thanks for your prompt and detailed answer. I have found 3) an effective way to solve this problem in most situations. I also tried 2) but not always successful and taskkill cannot even kill some ordinary Windows application. I haven't been able to reproduce the problem again and try 1).

     

    Regards,

    Zheng

  • For what it's worth, I ran into this problem with CCSV4 4.3.4 (July, 2011).  

    The thing to do is kill JAVAW.EXE and delete the .lock file in the projects directory.  In my case, I was force-terminating the debug session because it'd apparently locked up - we're using the LM3S9B96 Micro.

     

  • Anonymous
    0 Anonymous in reply to Matthew Staben

    Matthew,

    I switched back to CCS 3.3 due to 4.0's incompatibility with my emulator. However I will note this solution down. Thanks for help.

     

    Bob