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.

Program Counter Freeze

Other Parts Discussed in Thread: TMS570LS20216, TMS570LS3137

Hi,

CCS 5.2.1.00018: CGT 5.0.1: TMX570LS3137B PGE001: JTAG Spectrum Digital XDS510USB Emulator

I am experiencing strange behaviour when running an image built with CGT 5.0.1 as opposed to the very same source built with CGT 4.7.1.

For a program built with CGT 5.0.1, under JTAG debug control, following power-on, the program will run from address zero. Something then causes a reset (which could well be my fault). However, the strange behaviour is that I cannot then run nor single step the program. The program counter remains fixed at zero.

For a program built under CGT 4.7.1, I do not get the reset. I have not witnessed a frozen program counter under CGT 4.7.1 over the many months I have been using it.

I am investigating the reason for reset independently, but am very keen to know what might cause the program counter to freeze under JTAG debug control.

Regards, Tony.

  • Tony Morrell said:

    For a program built with CGT 5.0.1, under JTAG debug control, following power-on, the program will run from address zero. Something then causes a reset (which could well be my fault). However, the strange behaviour is that I cannot then run nor single step the program. The program counter remains fixed at zero.

    This is definitely strange behavior and one that I have not seen before, so I'm really not sure what could cause the PC to freeze. So when it is in this state, you are not able to Reset, Restart, single-step, run or do anything?

    Is this code running from Flash on power on, or are you loading it using CCS and then running?

  • Hi Aarti,

    An update: I DO get the problem with CGT 4.7.1, it is just not as apparent. The root cause for my reset in the first place is my implementation of STC/PBIST which has been fine on TMS570LS20216 but presumably is not compatible when moving to TMS570LS3137. I will need to address this later.

    When the program counter 'freezes' I am running under CCS debug. I can neither single step nor just run, the PC remains fixed at 0. I have been able to get a frozen PC at other addresses (fixed within a particular image though) but can't quite remember when this happens. It is most possible when I perform a CPU/System reset, and run, whcih does advance from PC 0 to this other address. It halts at this address with no breakpoint setting.

    Having found the cause of the reset to be something to do with STC/PBIST, I wonder if this has caused some internal debug failure. Note that when running without JTAG connected (so no debug interference), I get continual resets, the period between resets again changing on image type (instrumented to try and pinpoint the problem) and ranges from tens of milliseconds to 5 or 10 seconds.

    As I have found the root cause of the reset I can eliminate this from my build and continue development. I'm afraid I don't have time to investigate the sysmptoms, but could possible provide the failing build for you if interested, under our NDA.

    Regards, Tony.

  • Hi Tony,

    Glad to hear you were able to find root cause of the reset and can move forward with your development. Its fine if you don't have time to investigate symptoms further, but if you do run into the PC freezing issue in the future and and on a more regular,consistent basis then please feel free to contact us again.

    Thanks again for the update.