LPC1343 Problem write to Flash with IAP command

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

LPC1343 Problem write to Flash with IAP command

598 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tungsys on Sun May 01 11:43:41 MST 2011
Hi all,

In order to write to flash with IAP command, do i need to follow these steps:

Prepare - Erase - Prepare - Write

Can i just Prepare - Write without Erase step ?

I look into the user manual but they did not mention the step how to write to Flash.

My actual problem is i have 2 arrays 128 bytes need to write into 1 block in flash at difference time. So if i write arrays1 first then i write array2, the data in array1 will be gone because i follow the 1st step, need to erase every time write. Can i write to flash without erase command ?
0 Kudos
Reply
2 Replies

534 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by george079 on Thu May 05 21:27:35 MST 2011
Hi tungsys,

To change bit 0 to bit 1 in flash, there is only "ERASE" could do that.
And in LPC1343, Erasing memory is on a per-sector basis .( says in AN11008 )

So you always your another array after you ERASE ,unless using different sector in flash.

Also AN11008 is a good reference for use FLASH as EEPROM.

george



Quote: tungsys
Hi all,

In order to write to flash with IAP command, do i need to follow these steps:

Prepare - Erase - Prepare - Write

Can i just Prepare - Write without Erase step ?

I look into the user manual but they did not mention the step how to write to Flash.

My actual problem is i have 2 arrays 128 bytes need to write into 1 block in flash at difference time. So if i write arrays1 first then i write array2, the data in array1 will be gone because i follow the 1st step, need to erase every time write. Can i write to flash without erase command ?

0 Kudos
Reply

534 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tungsys on Thu May 05 19:46:01 MST 2011
anybody can give me some advices on this problem ?
thank you very much !
0 Kudos
Reply