STM cannot work in S32K344

cancel
Showing results for 
Search instead for 
Did you mean: 

STM cannot work in S32K344

262 Views
Harryzhou
NXP Employee
NXP Employee

Hello,

Now I am developping the STM module of S32K344. I have some trouble.

I make sure I have set the clock source for STM0 and STM1. The clock is 40MHz from FXOSC. But I cannot set the value of related registers. The code is error when go till setting registers, such as "STM_0->CR |= STM_CR_CPS(0);". I have no idea to figure that.

I just set the system clock and core clock. But I'm not sure is the configuration is correct.  When I set GPIO to output high, it works. 

 

Thanks!

Best Regards,
Harry Zhou
0 Kudos
0 Replies