cancel
Showing results for 
Search instead for 
Did you mean: 

SysTick Maths

officialkesh
Associate III
Posted on December 04, 2013 at 05:22

Hello ,

            I have configured systick for 1 ms in Discovery Board using Systick_config function.

But I am not getting properly 1 ms...

SystemCoreClock = 144 MHz...

Urgent Help needed ......

                

#stm32-systick
1 REPLY 1
Posted on December 04, 2013 at 17:50

http://www.catb.org/~esr/faqs/smart-questions.html#urgent

Help needed ......

The math is simple, perhaps it is the clock settings that are wrong? Check your PLL settings/sources in system_stm32f4xx.c, and output clocks via MCOx or TIM pins to confirm the core is actually running at the speed you want.

Or avoid hard coded values?

  uint32_t SystemCoreClock = ((HSE_VALUE / PLL_M) * PLL_N) / PLL_P;               

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..