Content originally posted in LPCWare by TheDude on Sun Sep 07 12:17:27 MST 2014
Dear Ramana,
I am sorry, I have misunderstood your problem. I think the best solution for you would be to delete the whole flash before programming via debugger. By this you can check within your debugging session, if the place, where you store the checksum is filled with 0xFF-Bytes. If this is the case, then you can calculate the checksum within the MCU and then store it with IAP in this flash-region. When you make a reset within the same debugging session, then you can check if your checksum algorithm is working properly.
Best Regards,
The Dude.