Debug runs immediately after downloading

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

Debug runs immediately after downloading

1,397 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by JGold on Tue Sep 14 07:03:39 MST 2010
I am having a problem on some of my boards.  The one in particular was working fine, then after chaning code and downloading, the code runs immediately in the debugger.  When I try to stop the execution, it fails to show the stepping code.  I have two boards that did this right after assembly.  This board was running fine, then the problem started.  I can not find a way to return it to the previous working state.
[ATTACH]181[/ATTACH]
0 Kudos
Reply
5 Replies

1,389 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Tue Sep 14 08:13:01 MST 2010
You are right - it sounds like a hardware problem. However, given that no errors are reported, I don't think it is the debug connection (SWD - not JTAG!). You should check power.
0 Kudos
Reply

1,389 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by JGold on Tue Sep 14 07:58:50 MST 2010
Thanks for the suggestion, but it still does it.  If I hit the RESET button to reset the debug session, it runs immediately.  Upon stopping, it gives no information.  It does not even stop at the "[SIZE=2][B]ResetISR" [/B]that I set as the stop point.  The other board does.  [/SIZE]
[SIZE=2][/SIZE]
[SIZE=2]Could it be a JTAG problem?  It seems to be related to hardware, not software since I have a good working board.
[/SIZE]
0 Kudos
Reply

1,389 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Tue Sep 14 07:39:43 MST 2010
Hi,

It looks like you might have a stack problem. I suggest that you change the initial breakpoint to be the Reset Handler and then step through your code to see where it is going wrong. See:
http://lpcxpresso.code-red-tech.com/LPCXpresso/node/48

You might also like to read this article too:
http://lpcxpresso.code-red-tech.com/LPCXpresso/node/52

HTH,
0 Kudos
Reply

1,386 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by JGold on Tue Sep 14 07:31:02 MST 2010
This is what I get when I hit PAUSE:
[ATTACH]182[/ATTACH]
0 Kudos
Reply

1,386 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Tue Sep 14 07:25:12 MST 2010
Hit the Suspend (Pause) button and you'll see where it is.

My guess is that you have hit an exception somewhere before the breakpoint on main().
0 Kudos
Reply