SDRAM and NOR Flash Sample / Reference code for Understanding the functionality

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SDRAM and NOR Flash Sample / Reference code for Understanding the functionality

928 Views
gauravmore
Contributor III

 Hi Jeremy, 

I am using LPC4367 controller with MCU Xpresso 10.3.0_2200. I am using SDRAM and NOR Flash interface in one of our projects. I was working with Evaluation board OM13088 but it that board no SDRAM and NOR flash interface is avialable.  I am using SDRAM and NOR flash both interfaced with EMC lines aviable in LPC4367 controller.

I refered the code in e lpcopen_3_02_lpcxpresso_mcb4357 and also refered periph_memtest and misc_spifi_tst demos. But there is no EMC init routine avialable. Is there any sample code or a reference code for SDRAM with proper intitiatilization routine.

Also I want to allocate one of my Buffer to SDRAM address, I got the information related to it in MCU expresso User guie but still I want to know that as we use 

__at(Address) attribute in Keil to allocate the array or a buffer like

uint16_t Buffer[1024]                     __at(0x28000000) 

In the similar way, how we can use it in MCU Expresso . To conclude I want the sample or a reference code for SDRAM and NOR flash with proper EMC init routine which is not avaialable in the existing reference code

I need this since i want to test my development board which is ready. So please consider it on higher priority. Mean while i am trying to refere other forums as well for my understanding.

Thanks 

Gaurav More

Labels (2)
0 Kudos
Reply
1 Reply

735 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Gaurav More,

Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
As I mentioned before, the lpcopen_3_02_lpcxpresso_mcb4357 has provided the sample code for the SDRAM and Nor Flash interface, they're the periph_memtest and misc_spifi_tst demos (Fig 1).

pastedImage_1.png

                                      Fig 1


During the startup process,  MCU will execute the Board_SystemInit() (In the board_sysinit.c )prior to jumping to the main().

pastedImage_5.png

Fig 2


In the Board_SystemInit(), the Board_SetupExtMemory() will initialize the EMC module to manipulate the SDRAM.
The thread (Placing data into different RAM blocks )demonstrates how to place data into different RAM blocks.

Have a great day,
TIC

 

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

0 Kudos
Reply