Cannot connect Debugger to Optimised Code

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Cannot connect Debugger to Optimised Code

417 次查看
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 项奖励
回复
0 回复数