When the STM/PIT module of MPC5775E is in freeze mode, will the timer still run in debug mode?

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

When the STM/PIT module of MPC5775E is in freeze mode, will the timer still run in debug mode?

839 Views
yangmingsong
Contributor II

The freeze mode of the PIT timer in MPC5775ERM is described, but in my impression, the PIT is set to freeze mode. During online debugging, the timer will count. Is there a difference between the freeze mode between PIT and STM? In other words, after these two are set to freeze, they will not run during online debugging, or will the operation be suspended only when the online debugging is paused or interrupted?

Tags (1)
0 Kudos
Reply
1 Reply

832 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

petervlna_0-1636617145566.png

The counters are freeze in case you are in debug mode. Once you execute for example step in debug your core is executing instruction the counter will run and stop on next instruction halt. The counter will increment as it would during the instruction execution in real time. So you can see its proper value on next instruction.

So you can see in debug mode how your counters increment. If you require the counter to be off in debug mode then simply disable them in debugger via script or via direct write to register.

Best regards,

Peter

 

 

0 Kudos
Reply