Content originally posted in LPCWare by lpcxpresso-support on Tue Jan 19 07:09:38 MST 2016
The LPCXpresso IDE flash drivers effectively program in chunks of a sector (basically by erasing the sector, and then programming the pages within it).
I wouldn't expect to see any garbage programmed though - the buffers passed to the flash driver code should be padded to an appropriate size with the flash erase value (i.e. 0xFF) if the remaining portion of the image to be programmed doesn't fill the complete buffer. So what exactly are you seeing with regards to "garbage"?
And what version of LPCXpresso IDE are you using, and with which debug probe, and to which target MCU?
Regards,
LPCXpresso Support