S32k314 Timer

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

S32k314 Timer

962 Views
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 Kudos
Reply
3 Replies

860 Views
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 Kudos
Reply

851 Views
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 Kudos
Reply

931 Views
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 Kudos
Reply