Hi,
I enabled SDRAM with EMIF on a TMS570LS31x Hercules Development Kit, with the help of this post
http://e2e.ti.com/support/microcontrollers/hercules/f/312/t/237341.aspx
But I seem to have trouble with accessing the data. I believe it has something to do with the fact that this SDRAM is connected over a 16 bit bus.
My litlle test program:
volatile uint16 *p = (volatile uint16*)0x80000000;
for (int i = 0; i < 16; i++) {
*p++ = 0xABC0 + i;
}
But in the debugger I see this data in the memory window:
80000000 abc0 abc0 abc2 abc2 abc4 abc4 abc6 abc6
80000010 abc8 abc8 abca abca abcc abcc abce abce
Every second write seems to go wrong somehow. Changing to 32bit pointer access does not help.
Any help is appreciated. Thanks.