LPC4337 SDRAM Configuration

cancel
Showing results for 
Search instead for 
Did you mean: 

LPC4337 SDRAM Configuration

199 Views
moller
Contributor II

I have been trying hard to make the correct configs for my SDRAM. All connections are correct and so are the pin muxings.

at http://pastebin.com/YupajrwX it is possible to see my SDRAM config function.

in my main function I run http://pastebin.com/n1UMgbid

Value to write into each address is 0xAB000000
NWords is just set to 32 to begin with.

In this test-function i get:
"Error at counter = 1"
"Error at address 0x28000000"
"Data at address 0x28000000 is 0xABABABAB"

If I select value to be 0xBB000000 i get "Data at address 0x28000000 is 0xBBBBBBBB"

It is always the two digits to the left that gets "mirrored". Any ideas what I am doing wrong?

Labels (1)
0 Kudos
1 Reply

73 Views
soledad
NXP Employee
NXP Employee

Hello,

In general this topic is covered in various software implementations for the LPC1800/4300, also some app notes are available (mostly valid for LPC1800/4300 as well):

http://www.nxp.com/documents/application_note/AN11508.pdf

http://cache.nxp.com/documents/application_note/AN10935.pdf?fsrch=1&sr=1&pageNum=1

For the software side I recommend to have a look into the following packages and into the attachment (relevant files only):

http://cache.nxp.com/files/microcontrollers/software/LPCWare/lpcopen_2_12_keil_iar_hitex_eva_4350.zi...


Have a great day,
Sol

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos