i.MX RT 1170 Systick internal/external source (CLKSOURCE)

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

i.MX RT 1170 Systick internal/external source (CLKSOURCE)

757 Views
mjbcswitzerland
Specialist V

Hi All

Does anyone know what the SYSTICK source is when CLKSOURCE is set in SYST_CSR?
From initial quick test it looks like it is clocked by the ARM PLL output (rather than M7_SYSTICK_ROOT).
Is this specified anywhere?

Regards

Mark

 

Tags (1)
0 Kudos
2 Replies

740 Views
mjbcswitzerland
Specialist V

Hi Omar

Yes, I have also measured that the core clock looks to be selected when CLKSOURCE  is selected (meaning use the core clock) and when not (external reference clock) I can choose from one of the other sources.

What surprised me is that when using all other i.MX RT parts the CLKSOURCE is usually set to 1 (which is also the core clock, which makes sense, but without further muxing possibilities). Other i.MX RT parts have their external clock source fixed at 24MHz / 240 (100kHz), which makes it unlikely to be used from this source in most cases

At the end of the day it does in fact make sense after the initial surprise at the standard/most typical setting being reversed. I didn't find any SYSTICK example in the 1176 SDK so it made me curious as to why.

Regards

Mark

 

0 Kudos

743 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello
Hope you are well.
ARMv7-M documentation suggests that when CLKSOURCE is set the systick uses the processor's clock; this means that if the core is fed from ARM_PLL the systick will also use this source:

Omar_Anguiano_0-1641424716093.png

If CLKSOURCE is cleared, the systick is fed from any of these sources:

Omar_Anguiano_1-1641424999283.png

If you have more questions do not hesitate to ask me.
Best regards,
Omar

0 Kudos