Content originally posted in LPCWare by alimicro on Tue May 14 05:46:26 MST 2013Dear Mike
I have a problem with my SDRAM on LPC1788 controller board.
I've used <a style="font-family: Roboto, sans-serif; font-size: 13.63636302947998px; background-color: #ffffff;" href="http://www.embedinfo.com/en/list.asp?id=107">http://www.embedinfo.com/en/list.asp?id=107</a> as a reference design.
My circuit has 2xMT48LC16M16 in 32bit data structure and 64MByte memory space.
When I try to write a value, if I give much time to write (with gap time between each write) it is good but during a loop I will give wrong value on readback.
for example:
for(i=0;i<1000;i++)
*wrptr=i;
has error
but
for(i=0;i<1000;i++){
*wrptr=i;
delayms(1);
}
has no error
would you please help me that what I sould do.
If you could send me your SDRAMinit function which is working properly I would appreciate it.
thanks in advance