NAND Flash interface support in LPC4367

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

NAND Flash interface support in LPC4367

1,318 Views
akhilesh_sreedh
Contributor III

Hello,

The External memory controller section in LPC4367's datasheet specifies only SRAM, ROM, NOR flash and SDRAM devices to be connected to the EMC. 

However, is there any way to interface a NAND Flash to LPC4367 having the following interface?

pastedImage_1.png

Thanks and Regards,

Akhilesh Sreedharan

0 Kudos
6 Replies

916 Views
leecoakley
Contributor III

Waveshare make a 4357-based board with a NAND chip on it and they provide an example driver in their demo package.  Could be a useful example to look at.

0 Kudos

916 Views
akhilesh_sreedh
Contributor III

The link doesn't seem to be working, please share the files. 

0 Kudos

916 Views
leecoakley
Contributor III

I will share it, but you can just google "Waveshare Open4357-C" for the site.

See attached zip. The NAND code is under /examples waveshare/EMC/EMC_NANDFLASH/

0 Kudos

916 Views
akhilesh_sreedh
Contributor III

Hello Bernhard Fink,

Thanks a lot for the reply. 

The OP of the link which you have suggested asks if an SDRAM and NAND both can be interfaced simultaneously to the EMC. We have a similar system which will have a SDRAM and NAND.

Can you please let us know if there will be a need to re-initialize the EMC register when there is a switch between SDRAM and NAND as NAND read/write is a software controlled process and SDRAM read/write will be managed by the External memory controller. 

Thanks,

Akhilesh Sreedharan

0 Kudos

916 Views
bernhardfink
NXP Employee
NXP Employee

On the LPC4300 SDRAM and SRAM interface are two different instances with own register settings. No problem to connect a memory device to both, no dynamic changes are required at runtime.

Regards,

Bernhard.

916 Views
bernhardfink
NXP Employee
NXP Employee

It should be possible to interface a NAND flash, as long as you find a driver for it.

But it's a sw managed read/write process, you will not be able to boot or execute from it.

There is a NAND driver for the LPC1788, which could most likel y be adapted to the LPC4300 platform:

https://community.nxp.com/thread/418534 

Regards,

Bernhard.

0 Kudos