Reading/Writing to EEPROM for the LPCXpresso54S018

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

Reading/Writing to EEPROM for the LPCXpresso54S018

Jump to solution
828 Views
brian_ungar
Contributor III

I want to reserve an area of BOARD_FLASH in the LPCXpresso54S018 for operational parameters for my application. I am looking for information/examples about how to read/write to BOARD_FLASH.

The SDK API reference manual for the LPCXpresso54S018 indicates that there are EEPROM examples available at <SDK_ROOT>/boards/<BOARD>/driver_examples/iap/iap-_eeprom/. The SDK only comes with a basic example for IAP. Does anyone know where to find an EEPROM read/write example for the LPCXpresso54S018?

Is the BOARD_FLASH where code is normally stored considered as EEPROM or something else?

0 Kudos
Reply
1 Solution
824 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

For the LPC54018, it does not has on-chip EEPROM, for the LPC54018JxM chip, it includes 4MB or 2MB on-chip Quad SPI Serial Flash, for the LPC54018 without JxM, it does not has any on-chip  parallel or serial flash, but it has spifi port, you can connect external spifi flash.

No matter whether you connect internal serial flash or external serial flash via spifi, there is not EEPROM function I suppose.

But I suppose that you can simulate an EEPROM function, you can allocate a page space in both on-chip RAM and serial flash, after Reset, you can copy the page from serial flash to SRAM, then you can write/read the SRAM, you can program the data in SRAM to serial flash with your predefined strategy, in this way, it seems that you operate a EEPROM.

As you know you can execute code in serial flash directly(XIP mode) or copy the code to RAM and execute in RAM, if you operate the serial flash, you have to copy the code which operate the serial flash in RAM and execute in RAM.

Hope it can help you

BR

XiangJun Rong

 

View solution in original post

0 Kudos
Reply
1 Reply
825 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

For the LPC54018, it does not has on-chip EEPROM, for the LPC54018JxM chip, it includes 4MB or 2MB on-chip Quad SPI Serial Flash, for the LPC54018 without JxM, it does not has any on-chip  parallel or serial flash, but it has spifi port, you can connect external spifi flash.

No matter whether you connect internal serial flash or external serial flash via spifi, there is not EEPROM function I suppose.

But I suppose that you can simulate an EEPROM function, you can allocate a page space in both on-chip RAM and serial flash, after Reset, you can copy the page from serial flash to SRAM, then you can write/read the SRAM, you can program the data in SRAM to serial flash with your predefined strategy, in this way, it seems that you operate a EEPROM.

As you know you can execute code in serial flash directly(XIP mode) or copy the code to RAM and execute in RAM, if you operate the serial flash, you have to copy the code which operate the serial flash in RAM and execute in RAM.

Hope it can help you

BR

XiangJun Rong

 

0 Kudos
Reply