Cannot connect Debugger to Optimised Code

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cannot connect Debugger to Optimised Code

415 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ian Stroud on Tue Mar 15 09:51:17 MST 2011
Using LPCXPRESSO 3.6 I have built an application with -O1 / -O2 compiler flags.

The code initially downloads OK and seems to run as expected. However if I subsequently disconnect the debugger, power cycle the target, and then attempt to re-attach the debugger it fails with a warning stating "03: Failed on chip setup: Em(12)....":
[ATTACH]350[/ATTACH]

This does not happen if non-optimised debug code is loaded on the target.
I can work around this problem if I turn on the debugger option "Vector Catch" but this does not help colleagues who are trying to update code using the command line utilities.
0 Kudos
Reply
0 Replies