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
LPC2388 IAP Flash Write
Started by ●May 6, 2010
Reply by ●May 7, 20102010-05-07
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
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
Reply by ●May 7, 20102010-05-07
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
>
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
>