Hi
the SDK of LPC80x series product haven't includes FALSH driver.
In fact, the LPC802 flash driver use IAP command, so you can refer to the Code Bundle code:
LPC802 Example Code Bundle MCUXpresso
Also there is a Application about using EEPROM on LPC802, you can refer to the code and how to
using IAP command to erase, write flash, etc.
https://www.nxp.com/docs/en/application-note/AN12125_LPC802.zip
or
LPC804 SPI Secondary Bootloader
Have a great day,
Jun Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------