LPC flash characteristics (erased state, erase/prog size, endurance, etc)

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

LPC flash characteristics (erased state, erase/prog size, endurance, etc)

660 Views
phatpaul
Contributor III

Can someone at NXP please help me fill out this table?  I'm trying to port my EEPROM emulation algorithm to support several LPC chips, and they seem to behave differently, even within the LPC8xx series.

Also please point me to the documentation of this if it exists.

LPCxx flash characteristics (erased state, erase/prog size, endurance, etc)

MCU FamilyFlash erased state as readProg size min / maxErase size min / maxProg/erase endurance min 
LPC802     
LPC8040x0064B / 1024B64B / 1024B200,000 
LPC81x     
LPC82x     
LPC83x     
LPC84x0xFF64B / 1024B64B / 1024B10,000 
others...     

 

I found a note on LPC55xx that said that you shouldn't even be able to read erased (unprogrammed) flash (hard-fault!).  Is this also true for LPC8x?  https://community.nxp.com/t5/LPC-Microcontrollers-Knowledge/LPC55xx-Erased-Memory-State-0-or-1/ta-p/...

BTW, I've already found out that I can't write to the flash in units smaller than 64B page on LPC804: https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-write-flash-single-word/m-p/1400358

A follow-up question:  Based on my observations with LPC804, it seems that it is unnecessary to call "Erase page" before call "Copy RAM to flash" since the latter seems to erase the page before programming anyway.  Is it recommended or would it count to unnecessary Prog/Erase cycles?  Is this true for all LPC variants, or just LPC804?

 

Labels (1)
Tags (4)
0 Kudos
3 Replies

638 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @phatpaul 

1. About erase/program size, you can find in RMs, for example lpc802:

Alice_Yang_0-1675328483589.png

 2. For "endurance", can find in DS:

Alice_Yang_1-1675328531280.png

3 "Is it recommended or would it count to unnecessary Prog/Erase cycles?"

->> Recommend erase before program, you can refer to  IAP_FLASH demo under SDK, download SDK from: https://mcuxpresso.nxp.com/en/select  

 

Alice

 

 

 

 

0 Kudos

631 Views
phatpaul
Contributor III

Thanks for your reply, Alice.

It is mainly the erased state that I'm asking for.  I know I can get the other information from the documentation.  Can you please tell me what is the erased state of flash memory for each of the LPC chips? 

And can you even read the erased state?

 

 

0 Kudos

624 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @phatpaul 

If not specified, the default value after erase is 1, so first recommend check RM,

For lpc80x, you can get from RM, "The blank (erased) state of a page flash memory is a logic 0.".

You can also test on chip.

 

BR

Alice

0 Kudos