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.

Halt peripheral on breakpoint / during debug session

Hello TI forum,

I’m currently having trouble with the DCAN error interrupt. So naturally I’m doing a lot of debugging right now.
During debugging I noticed that when a breakpoint is reached, the DCAN peripheral does not get halted, which is very problematic, as the DCAN controller keeps running in the background and probably produces even more errors.
So my question is whether it is possible to halt peripherals along with the program execution during a debug session?

My setup:
Code Composer Studio  5.2.0.00069
Blackhawk 510L JTAG Debugger
TMS570LS20216-PGE

Jakobim

  • Hello Jakobim,

    If a CPU breakpoint is reached during CPU halting debug, then a debug request signal will be sent to all peripherals.  The debug request signal will halt peripheral operation.  Certain peripherals, such as the DCAN, have an additional control bit which when enabled will allow the peripheral to ignore the debug request and continue operation.  Please check your DCAN programmation to determine whether you have activated this feature.

    This operation is described in the product user guide in section 16.8:  http://www.ti.com/lit/ug/spnu489c/spnu489c.pdf

    Best Regards,

    Karl 

  • Hello Karl,

    I seriously overlooked that bit. Thank you very much for pointing it out to me. Now I can actually see that the Warning error interrupt (on a baudrate mismatch) DOES trigger at an error count of 96. But I still do not receive the Passive error afterwards, although when pausing the execution manually, the Passive error bit is actually set. I just don’t know what is wrong. See also my other post : http://e2e.ti.com/support/microcontrollers/hercules/f/312/t/212148.aspx.

    Jakobim

  • Hello Jakobim,

    Glad to hear the debug question is answered.  Unfortunately the DCAN is not in my area of expertise so I must defer to my colleagues for a response to your functional question.

    Best Regards,

    Karl