Cut and paste this URL to share the unmodified register and value:
https://regviz.com/r/stm32/stm32h5/STM32H523/TIM2/TIM2_CNT#0x0
TIM2 counter
Least significant part of counter value
Value depends on IUFREMAP in TIMx_CR1.
https://github.com/modm-io/cmsis-svd-stm32