Cut and paste this URL to share the unmodified register and value:
https://regviz.com/r/stm32/stm32g4/STM32G471/FLASH/ECCR#0x0
Flash ECC register
ECC fail address
BK_ECC
SYSF_ECC
ECCIE
ECC correction
ECC2 detection
ECC detection
https://github.com/modm-io/cmsis-svd-stm32