Hi,
I need to fill data memory both internal and external with known patterns and read back to verify the entire C51 RAM. I prefer doing this in C instead of assembly but have not seen a good example to follow. Any suggestions?
Thanks
In Short. It is unlikely that you will be able to do the Memory Test using C. You would need to be very knowledgeable about how the compiler uses memory to convince it to do what you want to do, if it is even possible. The Keil Compiler does not use a real parameter stack. You can not just change the stack pointer. You could Test the PDATA and XDATA areas if you chosse the correct memory model. For the 256 byte internal memory ASM is the way to go.
Thank you all.