--- Quote Start ---
originally posted by mrzol+oct 19 2005, 06:20 am--><div class='quotetop'>quote (mrzol @ oct 19 2005, 06:20 am)</div>
--- quote start ---
the memory is a 128kbyte and is 65536 words by 16bits.[/b]
--- quote end ---
<!--quotebegin-mrzol@Oct 19 2005, 06:20 AM
while im doing this memory test im using the onchip ram for prorgram drives and stack. --- Quote End ---
"Program drives"?
Do you mean the .text, .rodata, .rwdata, and .bss segments?
Your code would require that none of the compiled code or data be in the external SRAM or it's going to get corrupted.
// Adress size is 65536 = 0x8AD0
// EXT_SRAM_BASE is 0x00020000
memory_size = 0x8AD0;
65536 != 0x8AD0. 65536 == 0x10000, 0x8AD0 == 35536
In any case, memory_size should be 128K (131072 or 0x20000), since your code is using byte addresses, not word addresses.