EmbeddedRelated.com
Forums

LPC2388 IAP Flash Write

Started by davidxytac May 6, 2010
Hi,

I want to write Flash more than 4096 bytes. I was writing in 256 blocks size. After 16's write, which is 16*256@96 bytes, IAP commands still writes all the blocks (over 100) without error. But data was written incorrectly.

Anyone has any idea what is wrong? How to write more than 4096 bytes data easily?

Thank you,
David Zhou

An Engineer's Guide to the LPC2100 Series

Two things can happen, Either the Clock Frequency that has been input to the
IAP function is wrong or the block has not been erased. When you write
without erasing the block data is wrongly written, because in a flash while
writing 1s are reduced to 0s, but 0s cannot be changed to 1s, so has to be
erased.

On Thu, May 6, 2010 at 8:17 PM, davidxytac wrote:

> Hi,
>
> I want to write Flash more than 4096 bytes. I was writing in 256 blocks
> size. After 16's write, which is 16*256@96 bytes, IAP commands still
> writes all the blocks (over 100) without error. But data was written
> incorrectly.
>
> Anyone has any idea what is wrong? How to write more than 4096 bytes data
> easily?
>
> Thank you,
> David Zhou
>
>
>

--
With Regards,
Nishant Agrawal
Hi

Check carefully the details of the FLASH interface:
http://www.utasker.com/forum/index.php?topic6.0
http://tech.groups.yahoo.com/group/lpc2000/message/2681

Regards

Mark

--- In l..., "davidxytac" wrote:
>
> Hi,
>
> I want to write Flash more than 4096 bytes. I was writing in 256 blocks size. After 16's write, which is 16*256@96 bytes, IAP commands still writes all the blocks (over 100) without error. But data was written incorrectly.
>
> Anyone has any idea what is wrong? How to write more than 4096 bytes data easily?
>
> Thank you,
> David Zhou
>