Forum Discussion
Altera_Forum
Honored Contributor
9 years agoSDRAM read out of sync
I am testing SDRAM read and write using nios. I wrote a simple function with loops to write to 15 memory locations and read them back. for(i=min; i<max; i++) {
IOWR(SDRAM_BASE,0,i...
Altera_Forum
Honored Contributor
9 years agoYou are using the IOWR macro to read the values back, it should be IORD.
Is the DRAM used in any way in your bsp? If you have the exception table set at the beginning of the DRAM, writing new values to it may give weird results. IIRC there is a memory test example in Eclipse that you can compile and use on your target.