This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LP23XX Correct Write Embbeded Flash Sequence

As I did not manage to write to 512 Ko Flash using FL-Flash. I coded routines from the LPC23XX manual that make use of IAP commands.
I use the CCLK wired to 12MHz XTAL : CCLK is 48000 kHz.
I coded the following sequence to write to a sector :

prepare
erase
prepare
write
return compare.

I have 2 questions :

1) Do I Have to Erase the sector before writing. I ask this because it make much time, for example erase a 4K flash takes 400 ms, while writing 256 bytes taks 1.1 ms.

2) As writing disable Flash access, how can I know I my code is executed from flash or RAM ?

Thanks.

0