S32G399A - System timer module frequency

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

S32G399A - System timer module frequency

Jump to solution
1,764 Views
Matteo_Zini
Contributor III

Good morning,

I have an S32G399-RDB3 board with a setup derived from the GoldVIP package. The M7 binary and the Linux kernel images were changed, but the bootloader configuration is practically the same of the original configuration.

I'm using one of the system timer instances to collect measurements, and I wanted to ask whether there is a practical way to read the STM frequency without following the entire chain of clock signals.

Thank you.

Labels (1)
0 Kudos
Reply
1 Solution
1,683 Views
Joey_z
NXP Employee
NXP Employee

hi,Matteo_Zini

Thank you for your reply.

If you want to know the exact STM timer time, you must know that the XBAR_DIV3_CLK default is 133.33Mhz, the frequency division factor CPS and CMP values.

BR

Joey

View solution in original post

0 Kudos
Reply
6 Replies
1,755 Views
Joey_z
NXP Employee
NXP Employee

hi,Matteo_Zini

Thank you for contacting us.
May I ask why you want to read the STM frequency without following the entire chain of clock signals?
In addition, You can refer to the attachment to check the clock of M core STM.

0 Kudos
Reply
1,745 Views
Matteo_Zini
Contributor III
Hi, thank you for the reply.
Because for example if you need to do it at runtime, there are multiple possible sources of the XBAR_DIV3_CLK clock and reconstructing the full chain is not trivial.
0 Kudos
Reply
1,717 Views
Joey_z
NXP Employee
NXP Employee

hi,Matteo_Zini

Thank you for your reply.

There are multiple possible sources of the XBAR_DIV3_CLK clock, so you need to configure the same value of XBAR_DIV3_CLK for the M core and A core, to avoid conflicts.

BR

Joey

0 Kudos
Reply
1,701 Views
Matteo_Zini
Contributor III

I'm using Linux on the Cortex-A cores, so I'm not sure how to configure it.

Anyway, I would just need to understand the frequency to transform the ticks into seconds, not to set it to any specific value.

Thank you.

0 Kudos
Reply
1,684 Views
Joey_z
NXP Employee
NXP Employee

hi,Matteo_Zini

Thank you for your reply.

If you want to know the exact STM timer time, you must know that the XBAR_DIV3_CLK default is 133.33Mhz, the frequency division factor CPS and CMP values.

BR

Joey

0 Kudos
Reply
1,656 Views
Matteo_Zini
Contributor III

Perfect, thank you for your help.

0 Kudos
Reply