Cut and paste this URL to share the unmodified register and value:
https://regviz.com/r/stm32/stm32h5/STM32H523/TIM6/TIM6_CNT#0x0
TIM6 counter
Counter value
UIF copy
https://github.com/modm-io/cmsis-svd-stm32