Content originally posted in LPCWare by lpcxpresso-support on Thu Nov 27 05:55:20 MST 2014
Using your image, I can replicate but not consistently. My suspicion is that this is something to do with the way the debug tools take control of the board for debugging a RAM image - particularly if you have something in flash which is getting run before the debugger connects.
Can you try the following and see if any of them make any difference to the behaviour you are seeing:
1) When you turn on the board (or reset it), ensure that you pull ISP to stop any code in flash being run. Now try debugging your RAM image.
2) Set the boot pins for your boot so that the MCU comes up in DFUboot mode (rather than running any code in flash). Now try debugging your image.
3) If you have your board configured to boot from SPIFI flash, create a simple non-lpcopen C project (and don't link to any driver libraries), configure this to be download and run from your flash. Debug this. Then try debugging your RAM image.
Regards,
LPCXpresso Support