This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Update RTOS tick after change System Clock

Hi,

I wrote a function to change the core clock at runtime and works ok, but, the osDelay function do the delay wrong with the last clock settings, in other words, if the last frequency was 24MHz and changed to 48Mhz calling the function osDelay(1000) takes only 500ms.

After changing the processor registers to get the new frequency I call SystemCoreClockUpdate(), but, I think, the RTX RTOS need to be restarted or something to get the new frequency working, right?

Some help?

Thanks