Test readability and writability of volatile memory

Hi,
I am working with embedded software and our software need to satisfy a standard requirements

"Volatile memory shsall be monitored by procedures that test the readability and writability of the memory cells. Areas of the volatile memory which are not used for saftey relevant data may be excluded from this test. Internal registers of the microprocessor, e.g. program counter, may be excluded from the test"

How do I loop throught the memory?

Regards

1
2
3
4
5
6
7
char* pointerToMemoryStart = (char*)someMemoryAddress;
for (int i = 0; i < numberOfBytesTOCheck; i++)
{
  // do write test on this byte
  // do read test on this byte
  pointerToMemoryStart++;
}
Topic archived. No new replies allowed.