FRZ bit in STM module

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FRZ bit in STM module

Jump to solution
1,062 Views
paulodasilvapin
Contributor III

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 

Labels (1)
1 Solution
886 Views
paulodasilvapin
Contributor III

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

View solution in original post

5 Replies
886 Views
martin_kovar
NXP Employee
NXP Employee

Hello,

could you please clarify, which microcontroller you use? MPC5777C or MPC5777M?

Regards,

Martin

0 Kudos
886 Views
paulodasilvapin
Contributor III

Sorry, I've made a mistake. We use AMP mode for debugging.

Regards

Paulo

0 Kudos
886 Views
martin_kovar
NXP Employee
NXP Employee

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.

pastedImage_1.png

Regards,

Martin

PS: I set STM using Lauterbach only. I did not use C source code.

0 Kudos
887 Views
paulodasilvapin
Contributor III

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

886 Views
paulodasilvapin
Contributor III

Hello Martin.

The used microcontroller is MPC5777M. We use T32 in SMP mode to debug in multi-core.

Regards

Paulo

0 Kudos