Hi,
I ran the example exactly as is: http://www.ti.com/lit/ug/tidu853/tidu853.pdf
Type: SDRAM
Starting Address: 0x60000000
End Address: 0x61ffffff
Data: 16-bit
Size: 64MB (32Meg x 16bits)
SDRAM Initial Data:
Mem[0x6000.0001] = 0x1234
Mem[0x6000.0001] = 0x8bcd
Mem[0x603F.FFFE] = 0x4321
Mem[0x603F.FFFF] = 0xdcba
SDRAM Write:
SDRAM Read:
Mem[0x6000.0000] = 0x1234
Mem[0x6000.0001] = 0x8bcd
Mem[0x603F.FFFE] = 0x4321
Mem[0x603F.FFFF] = 0xdcba
Read and/or write failure! Check if your SDRAM card is plugged in..
-- as you can see it randomly replaced the 'a' with an '8' somehow -- and this seems to be a systematic problem - it's always 8 instead of a.
When I modified the program, this is the output
Type: SDRAM
Starting Address: 0x60000000
End Address: 0x61ffffff
Data: 16-bit
Size: 64MB (32Meg x 16bits)
SDRAM Initial Data:
Mem[0x6000.0000] = 0x 0
Mem[0x6000.0000] = 0x1111
Mem[0x6000.0000] = 0x 222
Mem[0x6000.0000] = 0x1333
Mem[0x6000.0000] = 0x4444
Mem[0x6000.0000] = 0x5555
Mem[0x6000.0000] = 0x4666
Mem[0x6000.0000] = 0x5777
Mem[0x6000.0000] = 0x8888
Mem[0x6000.0000] = 0x9999
Mem[0x6000.0000] = 0x8aaa
Mem[0x6000.0000] = 0x9bbb
Mem[0x6000.0000] = 0xcccc
Mem[0x6000.0000] = 0xdddd
Mem[0x6000.0000] = 0xceee
Mem[0x6000.0000] = 0xdfff
SDRAM Write:
SDRAM Read:
Mem[0x6000.0000] = 0x1111
Mem[0x6000.0000] = 0x 222
Mem[0x6000.0000] = 0x1333
Mem[0x6000.0000] = 0x4444
Mem[0x6000.0000] = 0x5555
Mem[0x6000.0000] = 0x4666
Mem[0x6000.0000] = 0x5777
Mem[0x6000.0000] = 0x8888
Mem[0x6000.0000] = 0x9999
Mem[0x6000.0000] = 0x8aaa
Mem[0x6000.0000] = 0x9bbb
Mem[0x6000.0000] = 0xcccc
Mem[0x6000.0000] = 0xdddd
Mem[0x6000.0000] = 0xceee
Mem[0x6000.0000] = 0xdfff
Mem[0x6000.0000] = 0x1110
Read and/or write failure! Check if your SDRAM card is plugged in.
--- you notice a cascading effect on the first half-bye position from the second last position. -- so there is some systematic issue here - and I just cannot figure out how this happens.
The example screenshot in the PDF linked above shows the read back perfectly fine - so I have no idea what happens here.
--- PLUS, funny thing, since it's reading back 8bcd instead of abcd -- I programmed it instead to write 8bcd and it read back 8bcd successfully - and did the speed test portion of the example -- but changing it back to abcd then again produces 8bcd.
Can I please get some help on this!
Thanks,
Nabeel