Cut and paste this URL to share the unmodified register and value:
https://regviz.com/r/stm32/stm32h5/STM32H523/RTC/RTC_OR#0x0
OUT2_RMP=B_0x0
RTC option register
RTC_OUT2 mapping
0 (B_0x0): RTC_OUT2 is mapped on PI8
1 (B_0x1): RTC_OUT2 is mapped on PB2
https://github.com/modm-io/cmsis-svd-stm32