STM cannot work in S32K344

Showing results for 
Search instead for 
Did you mean: 

STM cannot work in S32K344

NXP Employee
NXP Employee


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. 



Best Regards,
Harry Zhou
0 Kudos
0 Replies