Cut and paste this URL to share the unmodified register and value:
https://regviz.com/r/stm32/stm32l4+/STM32L4P5/TIM2/TIM2_CNT_ALTERNATE#0x0
TIM2 counter
Least significant part of counter value
UIF Copy This bit is a read-only copy of the UIF bit of the TIMx_ISR register
https://github.com/modm-io/cmsis-svd-stm32