How to simulate RAM ECC function?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-20 4:56 AM
I am using STM32H745.
Among the functions of STM32H745, RAM ECC function is used.
The product that I develop should stop working when the RAM has an abnormality.
So, if something goes wrong with RAM, I want to check if the function I implemented is working normally.
I want to simulate an abnormality in RAM through the debugger and generate a RAMECC Interrupt. How can I do this? Or let me know if there are any documents that might help.
Solved! Go to Solution.
- Labels:
-
RAM
-
STM32H7 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-20 6:50 AM
As far as I know there is no documented way to do this explictily. However, after power-on or wake up from standby RAM contents should be indeterminate. Simply don't initalize the various RAM sections completely (e.g. modify the linker script so that a block at the end is not touched), and then do read accesses to these uninitialized areas. Chances are high you will hit some ECC errors.
But: The RAM should be unpowered for several minutes as the memory cells might keep their previous contents for some time even after power off.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-20 6:50 AM
As far as I know there is no documented way to do this explictily. However, after power-on or wake up from standby RAM contents should be indeterminate. Simply don't initalize the various RAM sections completely (e.g. modify the linker script so that a block at the end is not touched), and then do read accesses to these uninitialized areas. Chances are high you will hit some ECC errors.
But: The RAM should be unpowered for several minutes as the memory cells might keep their previous contents for some time even after power off.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-20 7:59 AM
Thank you very much.
It was very helpful.
​
​
