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.

CCSv5.1 debugging error

While debugging my program I get the following error:

"Trouble Reading PC Register: (Error -1143 @ 0x6) Device core was hung. The debugger has forced the device to a ready state and recovered debug control, but your application's state is now corrupt. You should have limited access to memory and registers, but you may need to reset the device to debug further. (Emulation package 5.0.681.0)"

I have seen this happen on 3-4 different lines of code and the code remains unchanged. I have had some (very little) success restarting CCS or restarting my machine to get past this point.

I had been working along fine with no problems for awhile. I literally ran a test and had success, then reran the test and ran into this failure and it has been plaguing me ever since. Not sure what other [relevant] information I can give, but if I'm missing something please ask.

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

Code Composer Studio

Version: 5.1.0.201205041800
Build id: N201205041800

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

//edit

Upgraded to:

Code Composer Studio

Version: 5.2.1.00018

Problem still persists.

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

//further edits:

I have been able to consistently bypass this error in the simulator which makes me think it is solely an emulation problem. I am using the Blackhawk USB560 JTAG emulator (Model #:BH-USB-560). The chip I am using is TI C5509A DSP.

  • Hi,

    Unfortunately this issue seems to be caused by different scenarios discussed in a few forum threads below, one for an OMAPL13x and one for a C66x device (you did not mention the device you are using). A common root to these scenarios is that the core is usually hung waiting for a memory or a peripheral to be freed.

    Please check them and see if you get any additional ideas:

    http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/t/196433.aspx

    http://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/t/188673.aspx

    Hope this helps,

    Rafael

  • Thanks for the reply Rafael,

    Sorry for not stating the obviously earlier, I am using the C5509A on my own custom board. I came in this morning to find a different error. Something seems wrong with my emulator. The error I see today is "Error: Attempted to read past the end of memory". I declare a variable and the program defines it in a nonexistent part of memory, however, the variable I declare right before it (same type) is defined fine. If I delete the broken variable altogether, then I'm back where the original post is with the core hang and cannot load PC error. I haven't been able to determine if these two errors are related.

    If I run in the TI simulator I do not have any of these problems. I am using the Blackhawk USB560 JTAG emulator (Model #:BH-USB-560).