Content originally posted in LPCWare by wmues on Mon Apr 07 02:07:10 MST 2014
I am using the LPC1788, and Initialisation of the SDRAM is as follows:
1) Init EMC and SDRAM.
2) Init delay lines to default values.
3) Using a RAM test function, iterate through the delay lines and determine min/max values.
4) Set delay lines to middle values, and store these values at a safe place.
5) measure the delays with the on-chip measurement hardware and store these values at a safe place.
6) Program the MPU if you want to execute code from SDRAM.
7) In regular intervals, do the following recalibration:
a) measure the current delays with on-chip hardware.
b) calculate new values for the delay lines from (original values, original measured values, current measurement).
regards
Wolfgang