Problem with IAP on LPC1110

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Problem with IAP on LPC1110

583件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tungsys on Mon Mar 05 00:36:43 MST 2012
Hi ,

I want to use a small memory space (32bytes) on LPC1110 to save 2  non-volatile variables
But the problem is that LPC1110 only have 4KB flash which is only 1 sector size.

And implement IAP on LPC1110, every times write is at least 4KB (1 sector) , it will overwrite my code ! is there any solution to use 32 bytes flash on LPC1110 to save my non-volatile variable ?

Thanks
Tung
0 件の賞賛
返信
1 返信

573件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gbm on Mon Mar 05 01:45:59 MST 2012
Not possible. You need to have at least one flash sector not used for program storage to implement nonvolatile data storage. LPC1110 and LPC1111 flash have only one Flash sector, so it will be always used by program. It can still be used for write-once data provided that you have at least 256 bytes of Flash free, as this the minum size of write data block, but it's not possible to erase and update data in this case.
So, either wait for LPC11Exx, use LPC11U2x, or connect an I2C EEPROM to your LPC1110.
0 件の賞賛
返信