STM did not work?

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

STM did not work?

553 Views
xiexiaopeng
Contributor II

I have configuration the STM of s32f74 like this

STM_0.CR.R = 0x80F00000; 
STM_0.CHANNEL[0].CCR.R = 0x80000000;

but I read the count ,but they always are zero.

TIME_READ[2]=STM_0.CNT.R; 

where is wrong?

pastedImage_1.png

0 Kudos
1 Reply

392 Views
martin_kovar
NXP Employee
NXP Employee

Hello,

if you want to set FRZ and TEN bits, you must write STM_0.CR.R = 0x00000003; Numbering in reference manual could be confusing.

If you have any other questions, please feel free to write back.

Regards,

Martin

0 Kudos