Reading/Writing to EEPROM for the LPCXpresso54S018

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Reading/Writing to EEPROM for the LPCXpresso54S018

跳至解决方案
865 次查看
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 项奖励
回复
1 解答
861 次查看
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 项奖励
回复
1 回复
862 次查看
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 项奖励
回复