Hi,
I want to connect LPC54607 with W9864G6KH-5(64Mbits, 4 banks x 16 bits).
My schematic is attached.
I have already created PCB board and placed the MCU and the SDRAM.
I tested memory-write-read the SDRAM.
Test is passed in first bank(0xa00000000 ~ 0xa0200000).
But, there are garbage data all in second bank(0xa0200000~0xa0400000) test.
I probed A13 address line in testing second bank. I can not see any movements. But A14 pin has something moving. I can not understand why MCU sends some signal to A14.
My setting values are
#define SDRAM_MODEREG_VALUE (0x33u)
#define SDRAM_DEV_MEMORYMAP (0x25u) /* 64Mbits (4M*16, 4banks, 12 rows, 8 columns)*/
and
DYNAMICCONFIG[0] is 0x00081280(I captured this value by SWD).
I guess MCU believed that bank selection[0:1] are connected A13,A14. But, It must be A12,A13.
Please tell me anything my mistake or misunderstanding.
Thank you.
Hi @Lex2,
Are you using lpcxpresso54608_emc_sdram as base for the setup of an external SDRAM? If not, I highly recommend you download the SDK example and use it as template in order to properly communicate with your SDRAM.
BR,
Edwin.