STM32G0x series ECCD error after flash memory read
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-14 02:37 AM
Hi,
I want to read flash memory to determine whether or not valid data is in the flash.
And if this data can be used in my application.
in my code, if I deference a Flash memory address I immediately get a ECCD error.
Why is this happening?
Thanks,
Solved! Go to Solution.
- Labels:
-
STM32CubeMX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-19 06:52 AM
Hello @danielbathtub
If an ECCD error occurs and is not properly managed, it can lead to the program entering an NMI interrupt when trying to read the memory at a specific address. The ECCD error indicates that the Flash memory at the read address contains corrupted data that could not be corrected by the ECC mechanism, which is designed to correct single-bit errors but not multiple-bit errors.
The recommended approach to handle an ECCD error includes checking the ECCD bit in the FLASH_ECCR register and taking appropriate actions such as erasing and reprogramming the affected Flash sector.
Thanks
Omar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-19 06:52 AM
Hello @danielbathtub
If an ECCD error occurs and is not properly managed, it can lead to the program entering an NMI interrupt when trying to read the memory at a specific address. The ECCD error indicates that the Flash memory at the read address contains corrupted data that could not be corrected by the ECC mechanism, which is designed to correct single-bit errors but not multiple-bit errors.
The recommended approach to handle an ECCD error includes checking the ECCD bit in the FLASH_ECCR register and taking appropriate actions such as erasing and reprogramming the affected Flash sector.
Thanks
Omar