S32k314 Timer

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32k314 Timer

993 次查看
dpsdprtmvl
Contributor I

Dear All,

Hello, I using S32k314 board (RTD3.0.0), but i have a question about STM in GPT module.

 

According to S32k3xx RM.pdf,  I found S32k314 allowed 2 instances of STM, STM_0 and STM_1 .

dpsdprtmvl_0-1742085963865.png

But, S32k314 don't have a clock about STM_1 in example code at design studio 3.5 version.

 

I wonder "S32K314 also supports STM_1, but why is there no clock configuration for STM_1 in the example code?"

 

Thanks.

 

0 项奖励
回复
3 回复数

891 次查看
dpsdprtmvl
Contributor I

Thank you for your reply.

 

I tested adding the STM1 module, but the S32k314 board doesn’t boot properly when it runs GPT Init.


After looking into it, I found out that the S32K314 doesn’t actually have a clock for STM1.

 

As a result, after removing STM1,  the S32k314 board boot normally,


It operation doesn’t match what’s described in the S32k3xx reference manual.

0 项奖励
回复

882 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Ok, but once you configure clock you also have to enable it to the peripheral.

Did you enabled it in ME module for STM0 and 1?

It is in MCU plugin:

petervlna_0-1745393794182.png

I have tested it here and everything is running as expected:

petervlna_1-1745393824869.png

 

Attached is the example file if you like to test it

Best regards,

Peter

0 项奖励
回复

962 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Example code usually implement only basic demo features to show the functionality.

I wonder "S32K314 also supports STM_1, but why is there no clock configuration for STM_1 in the example code?"

I have just open the example for GPT and simply added STM0 and 1 modules and everything works as expected. Both are supported.

petervlna_0-1744792924522.png

petervlna_1-1744792939153.png

Simply follow the example or screenshot above and add STM1.

Best regards,

Peter

0 项奖励
回复