FRZ bit in STM module

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

FRZ bit in STM module

ソリューションへジャンプ
1,074件の閲覧回数
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 

ラベル(1)
1 解決策
898件の閲覧回数
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

元の投稿で解決策を見る

5 返答(返信)
898件の閲覧回数
martin_kovar
NXP Employee
NXP Employee

Hello,

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

Regards,

Martin

0 件の賞賛
898件の閲覧回数
paulodasilvapin
Contributor III

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

Regards

Paulo

0 件の賞賛
898件の閲覧回数
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 件の賞賛
899件の閲覧回数
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

898件の閲覧回数
paulodasilvapin
Contributor III

Hello Martin.

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

Regards

Paulo

0 件の賞賛