LOL
Makes me happy somebody got something out of that post so long ago... Thank you Mike :-)
Hi, I wrote my SDRAM init code in cortex M3 assembler; is that any good to you.
For various reasons, I am not able to post a complete canned compilable example,
but you might be able to get 'magic numbers' and the sequence of operations from it.
I also recommend you read this post by the awesome Dave http://www.lpcware.com/content/forum/dk-57vts-lpc1788-configuring-emc-sdram
I haven't been around this forum much the last month or so, but I will check for the next few days to see if you want anything from me.
Regards, Mike
Dear 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