Flash ECC ON STM32G0C1
I’m currently working on implementing and testing Flash ECC on my controller. According to the datasheet, the device supports ECC, and I can see that it is managed through the FLASH_ECCR register.
However, I’m facing some difficulty verifying whether ECC is functioning correctly. Specifically:
- I am unable to find any ECC-related flags in the FLASH status register.
- I’m not sure how to intentionally generate an ECC error to validate my implementation (e.g., to confirm that error handling via NMI/interrupt is working as expected).
Could anyone please guide me on how to reliably trigger a Flash ECC error for testing purposes on this controller? Any suggestions, references, or example approaches would be really helpful.