It seems like I am facing the same issue, with an LPC11C24.
If I understand 'LPC WARE' correctly, an sector erase should always be executed prior to writing to flash.
However in the UM10398 (26.5.7) point 3 states that an erase should be executed after 16 writes.
This is kind of confusing, now it this seems like it is contradicting one-another.
Can someone please explain the correct procedure on how to write to flash?
Kind regards,
Harrie