SG wrote:
We are required to do a walk pat test of the RAM area every 3 seconds.
Wow. That seems extreme. How do you do that without shutting down the application?
I run memory and bus pattern tests on power-up, but that is before the application is running and the ram is in use. The stack seems especially problematic with interrupts enabled.
But if you can shut down the application every three seconds, here is how I would do it:
Set aside some ram for a temporary buffer. Maybe 32 bytes.
Write a routine that can thoroughly test any 32 byte (or whatever) block of ram.
Test the temporary buffer first.
One at a time, move a block of ram to the temp buffer.
Test the block that the data was just moved from.
Replace the original data from the temp buffer after the test.
Move on to the next block of ram, until all blocks are tested.
You would have to make sure no subroutines are called and no interrupts occur while testing the stack area.