diff options
Diffstat (limited to 'ports/stm32/powerctrl.h')
-rw-r--r-- | ports/stm32/powerctrl.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ports/stm32/powerctrl.h b/ports/stm32/powerctrl.h index 05a70e52c6..724ab58366 100644 --- a/ports/stm32/powerctrl.h +++ b/ports/stm32/powerctrl.h @@ -34,6 +34,12 @@ void stm32_system_init(void); #else static inline void stm32_system_init(void) { SystemInit(); + + #if defined(STM32N6) + // The ROM bootloader uses PLL1 to set the CPU to 400MHz, so update + // the value of SystemCoreClock to reflect the hardware state. + SystemCoreClockUpdate(); + #endif } #endif |