hello,
I'm trying to config a STM0 timer with S32K322 ,
when I set StmFreezeEnable true, the STM0's CNT is always 0,do not change .
when I set StmFreezeEnable false ,the STM0's CNT can update;
I compare the two setting's code, the difference just this
can some help me to fix this issue? Did I miss something?
Thank you
已解决! 转到解答。
Hi @KidhRobin,
The S32K322 has CM7_0 and CM7_1 decoupled.
Are both cores out of debug mode?
Have you tried with DCMRWD8[10] = 1, (STM_0 remains functional and unimpacted when the Cortex-M7_1 core enters Debug mode)?
Regards,
Daniel
Hello @KidhRobin,
It is spected that the STM stops its operation in Debug mode when FRZ = 1.
By default, all the STM_n timers stop when any of the cores enters the debug mode.
This can be changed in these registers:
DCMRWD6 - DCMRWD9
For example:
DCMRWD6[10]
DCMRWD8[11]
Regards,
Daniel
hi ,@danielmartyneak
Thanks for your replay.
Currently, I am using S32K322, and the related driver code is configured using EB, with the debugger being PE.
My understanding is that when configuring the StmFreezeEnable to true (below picture)in the GPT STM modules, entering a breakpoint during debugging should pause the STM CNT counter.
When running, the STM CNT should count normally.
Is my understanding correct?
Thank you for reply.
What the issue is when I set the StmFreezeEnable to true , but the STM0 Cnt always 0, do not update anymore,
can you tell me how to solved this issue?
I'm using PE and S32DS V3.5 now.
Thank you
Hi @KidhRobin,
The S32K322 has CM7_0 and CM7_1 decoupled.
Are both cores out of debug mode?
Have you tried with DCMRWD8[10] = 1, (STM_0 remains functional and unimpacted when the Cortex-M7_1 core enters Debug mode)?
Regards,
Daniel