LPC1788 write external flash

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

LPC1788 write external flash

299 Views
lorenzogalbiati
Contributor I

Hello,
for my job I have to design a project based on LPC1788 where some data are received by UART and then must be written in memory.
Initially I wanted to use an external SPI EEPROM but because of data size (several Mbits) I need to use an external flash memory connected by EMC.


In the past I have used EMC for SDRAM, never for Flash. How can I write a single buffer of data into external flash? I don't want to write low level read/write functions from external flash because it is complex and I wonder if there is a simple way

Best regards

 

0 Kudos
Reply
1 Reply

277 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Flash are written on pages, unlike SDRAM. For examples, to configure the flash, I found these two post that may be helpful:
Spansion EMC NOR Flash on LPC1788 - NXP Community
EMC + LPC1788 + s29gl064 norFlash - NXP Community

BR,
Omar

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2191580%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELPC1788%20write%20external%20flash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2191580%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3CBR%20%2F%3Efor%20my%20job%20I%20have%20to%20design%20a%20project%20based%20on%20LPC1788%20where%20some%20data%20are%20received%20by%20UART%20and%20then%20must%20be%20written%20in%20memory.%3CBR%20%2F%3EInitially%20I%20wanted%20to%20use%20an%20external%20SPI%20EEPROM%20but%20because%20of%20data%20size%20(several%20Mbits)%20I%20need%20to%20use%20an%20external%20flash%20memory%20connected%20by%20EMC.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EIn%20the%20past%20I%20have%20used%20EMC%20for%20SDRAM%2C%20never%20for%20Flash.%20How%20can%20I%20write%20a%20single%20buffer%20of%20data%20into%20external%20flash%3F%20I%20don't%20want%20to%20write%20low%20level%20read%2Fwrite%20functions%20from%20external%20flash%20because%20it%20is%20complex%20and%20I%20wonder%20if%20there%20is%20a%20simple%20way%3C%2FP%3E%3CP%3EBest%20regards%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2192792%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LPC1788%20write%20external%20flash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2192792%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EFlash%20are%20written%20on%20pages%2C%20unlike%20SDRAM.%20For%20examples%2C%20to%20configure%20the%20flash%2C%20I%20found%20these%20two%20post%20that%20may%20be%20helpful%3A%20%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FLPC-Microcontrollers%2FSpansion-EMC-NOR-Flash-on-LPC1788%2Fm-p%2F517788%22%20target%3D%22_blank%22%3ESpansion%20EMC%20NOR%20Flash%20on%20LPC1788%20-%20NXP%20Community%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FLPCXpresso-IDE%2FEMC-LPC1788-s29gl064-norFlash%2Fm-p%2F530058%22%20target%3D%22_blank%22%3EEMC%20%2B%20LPC1788%20%2B%20s29gl064%20norFlash%20-%20NXP%20Community%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EBR%2C%3CBR%20%2F%3EOmar%3C%2FP%3E%3C%2FLINGO-BODY%3E