diff --git a/drivers/timer/stm32_lptim_timer.c b/drivers/timer/stm32_lptim_timer.c index f27b07182cb..bb4e460ec6d 100644 --- a/drivers/timer/stm32_lptim_timer.c +++ b/drivers/timer/stm32_lptim_timer.c @@ -435,6 +435,11 @@ static int sys_clock_driver_init(void) /* ARROK bit validates the write operation to ARR register */ LL_LPTIM_EnableIT_ARROK(LPTIM); stm32_lptim_wait_ready(); +#ifdef CONFIG_SOC_SERIES_STM32U5X + while (LL_LPTIM_IsActiveFlag_DIEROK(LPTIM) == 0) { + } + LL_LPTIM_ClearFlag_DIEROK(LPTIM); +#endif LL_LPTIM_ClearFlag_ARROK(LPTIM); accumulated_lptim_cnt = 0;