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"
char* pointerToMemoryStart = (char*)someMemoryAddress;
for (int i = 0; i < numberOfBytesTOCheck; i++)
{
// do write test on this byte
// do read test on this byte
pointerToMemoryStart++;
}