Other Parts Discussed in Thread: DRA821
Dear Ti expert,
When we debug the code on the R5F core with Lauterbach debugger, the OS would work abnormally once we break the debug. We thought that would caused by the OS timer which wouldn't pause at the time we break the debug. So we tried to pause the timer manually with command when we break the debug.
The lauterbach debugger supports command group which allows to define a sequence of read/write accesses that are automatically performed directly after the program execution has halted (manual break, breakpoint or end of single step) or before program execution is continued with Go or Step.
We use this command to write the timer control register to stop the timer when we halt the debug and resume the timer when we continue the debug. The test results show that the timer can be stopped and resumed as expected, but the OS still runs into ErrorHook. In our opinion, this is because that stopping the timer with command takes a few milliseconds which would lead to the OS runs abnormally.
Base on the results above, we have some questions here :
1.If there is a debug mode which would entry automatically when we connect the debugger and would halt/resume the timer automatically when we debug the code step by step? If the debug mode exists, how to enable it?
2.If the debug mode doesn't exist, if there is a hardware mechanism or other methods which could pause/resume the timer when debug the code ?
3.If the Cross Trigger Interface would be helpful to this issue?