Cut and paste this URL to share the unmodified register and value:
https://regviz.com/r/STMicroelectronics/STM32G474xx/HRTIM_TIMB/CPT2BR#0x0
Timerx Capture 2 Register
Timerx Capture 2 value
Timerx Capture 1 Direction status
https://github.com/cmsis-svd/cmsis-svd-data