Hello,
We are using T32 debugguer tool when debugging with MPC5777-512DS demoboard.
We noticed that even the FRZ bit is set in STM module, the counter is still running when the debugguer is halted.
What could be the solution of this problem ?
Thanks.
Paulo Da Silva Pinto
Solved! Go to Solution.
Hello Martin
Thank you for your quick support.
I have contacted Lauterbach support and they explain me that the freeze functionality only works when all cores (Under debug) are started and are stopped at the same time. To do so, one shall use the following command:
SETUP.StepAllCores ON
I've tried this command and it works fine in AMP debugging mode: when I step into the executed code for CORE_0, I can see the STM_CNT register only change when the step is performed instead of being continuously being refreshed.
From my point of view, the issue I've raised is solved.
Regards
Paulo
Hello,
could you please clarify, which microcontroller you use? MPC5777C or MPC5777M?
Regards,
Martin
Sorry, I've made a mistake. We use AMP mode for debugging.
Regards
Paulo
Hello Paulo,
I tested STM using Lauterbach debugger (single-core project and default Lauterbach settings) and FRZ bit works correct. Please see figure below. I do not know AMP debug mode, so it should be better for you to contact Lauterbach support directly.
Regards,
Martin
PS: I set STM using Lauterbach only. I did not use C source code.
Hello Martin
Thank you for your quick support.
I have contacted Lauterbach support and they explain me that the freeze functionality only works when all cores (Under debug) are started and are stopped at the same time. To do so, one shall use the following command:
SETUP.StepAllCores ON
I've tried this command and it works fine in AMP debugging mode: when I step into the executed code for CORE_0, I can see the STM_CNT register only change when the step is performed instead of being continuously being refreshed.
From my point of view, the issue I've raised is solved.
Regards
Paulo
Hello Martin.
The used microcontroller is MPC5777M. We use T32 in SMP mode to debug in multi-core.
Regards
Paulo