Closed KamilDuljas closed 10 months ago
Hi @KamilDuljas,
You are right about the fact that the UIF
bit in the SR
is set upon setting bit UG
in the EGR
by software. This point will be forwarded to our development teams. They will conclude whether it is a bug that should be fixed or whether this is to serve a certain purpose. I will keep you informed. Thank you for having reported.
With regards,
ST Internal Reference: 169543
Fixed in commit 0495bf0fda6f592b034a4267f8e7c7b816e4196e
After invoke TIM_Base_SetConfig SR register contains set update event flag. This flag is generate by line:
https://github.com/STMicroelectronics/stm32f7xx_hal_driver/blob/8c7077398fb8c4481f7d843e25b4f1471971b442/Src/stm32f7xx_hal_tim.c#L6967
It should be cleared by HAL before giving up control to main code.
Proposal fix: