Content originally posted in LPCWare by MarcVonWindscooting on Sat Apr 26 04:14:24 MST 2014
Re-invoke ISP is a cleaner solution than mine, because it can't be interrupted by a premature RESET or power down like my approach (at program execution time). Also, my code 'returns' to erased FLASH contents. This is effectively a FLASH full of NOPs (branch . +2) and quickly the program counter runs across the FLASH upper limit...
@usb10185:
I do prefer binary images rather than source code here to eliminate the risk of a compilation/linking error.