File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ void powerctrl_config_systick(void) {
52
52
SysTick_Config (HAL_RCC_GetHCLKFreq () / 1000 );
53
53
NVIC_SetPriority (SysTick_IRQn , IRQ_PRI_SYSTICK );
54
54
55
- #if !BUILDING_MBOOT && (defined(STM32H7 ) || defined(STM32L4 ) || defined(STM32WB ))
55
+ #if !BUILDING_MBOOT && (defined(STM32H5 ) || defined( STM32H7 ) || defined(STM32L4 ) || defined(STM32WB ))
56
56
// Set SysTick IRQ priority variable in case the HAL needs to use it
57
57
uwTickPrio = IRQ_PRI_SYSTICK ;
58
58
#endif
@@ -236,6 +236,10 @@ void SystemClock_Config(void) {
236
236
// Switch the system clock source to PLL1P.
237
237
LL_RCC_SetSysClkSource (LL_RCC_SYS_CLKSOURCE_PLL1 );
238
238
239
+ // Reconfigure clock state and SysTick.
240
+ SystemCoreClockUpdate ();
241
+ powerctrl_config_systick ();
242
+
239
243
// Configure PLL3 for use by USB at Q=48MHz.
240
244
LL_RCC_PLL3_SetSource (LL_RCC_PLL3SOURCE_HSE );
241
245
LL_RCC_PLL3_SetM (MICROPY_HW_CLK_PLL3M );
You can’t perform that action at this time.
0 commit comments