“AN10851 Using CRP with the LPC1700" has an IAP software example. You can download the application note from http://www.nxp.com/documents/application_note/AN10851.zip