If you've got HAL libraries available something like this seems to work: HAL_SuspendTick(); LL_Init1msTick( 8000000 ); HAL_ResumeTick();I'm working with the STM32F030CC and dynamically changing system clock source between 48 MHz PLL and 8 MHz HSI....