lpcware

[LPC1788] [LPCOpen] Bug in EMC initialisation with SDRAM in RBC configuration

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by pgr on Tue Jun 24 01:45:49 MST 2014
Hi all,

I am using LPCOpen last revision with on a LPC1788 with external SDRAM configured as RBC (Row Bank Column).

I have found that there is a bug when configuring SDRAM mode register, according to the LPC1788 user manual:


Quote:
Determine the shift value OFFSET to shift the mode register content by. This shift
value depends on the SDRAM device organization and it is calculated as:
OFFSET = number of columns + total bus width + bank select bits (RBC mode)
OFFSET = number of columns + total bus width (BRC mode)



The bank select bits are never added to the Col_len variable in initDynMem() function so the mode register is wrongly initialized.

PGR

Outcomes