Content originally posted in LPCWare by bavarian on Thu Apr 28 06:40:18 MST 2016
If the debugger offers to connect to the target without a reset (no hardware reset, no verctor reset c etc), then you should be able to catch the core in its current state and look at the system flags. LPCXpresso, IAR, Keil, Lauterbach, they all can do this.
I didn't read through the whole thread, but when it comes to stack/heap usage and IAP routines, are you sure that you excluded the bytes in RAM which are used by IAP from the available space for the linker? If this overlaps, then you might experience problems.
User manual, chapter "RAM used by IAP command handler"
"Flash programming commands use the top 32 bytes of on-chip RAM. The maximum stack
usage in the user allocated stack space is 128 bytes, growing downwards."
Regards,
NXP Support Team