Testing SRAM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2010-05-28 2:48 AM
Posted on May 28, 2010 at 11:48
Testing SRAM
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 4:52 AM
Posted on May 17, 2011 at 13:52
Clearly you can’t be using the stack when doing arbitrary writes in the stack area. Memory testing is best performed on startup or standalone. In either case interrupts are disabled.
Method 1: Don’t use the stack until your memory test completes. Note: on ARM processors you can use subroutines but use assembly, not C. You don’t want compiler generated stack usage. Method 2: Put your stack in high memory while testing low memory. Then put your stack in low memory and test high memory. C can then be used. Processors and internal memory are quite good these days. A trick I used in the past may not be needed but it’s not a bad idea to check for stuck addressing bits. Write a 3 word (or 3 half word or 3 byte) repeating pattern into the RAM you are testing. Verify the pattern. Do the same for the complement of the pattern. Any stuck address line will cause a bad compare.Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 4:52 AM
Posted on May 17, 2011 at 13:52
Note that simplistic memory tests are apt to miss faults!
Seehttp://www.netrino.com/Embedded-Systems/How-To/Memory-Test-Suite-C
for a discussion of the types of faults that can occur in memory systems, and some tests to catch them all!
A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
A complex system designed from scratch never works and cannot be patched up to make it work.
