|
|
View previous topic :: View next topic |
Author |
Message |
soundscu
Joined: 29 Jun 2007 Posts: 62 Location: Raleigh, NC
|
dsPIC33 works when ICD programmed, but not when ICD debugged |
Posted: Thu Dec 03, 2009 10:09 am |
|
|
This one has me stumped. I have code that works when programmed into the dsPIC33 with an ICD3. But the same code does not work when trying to debug using the ICD3. The environment is MPLAB 8.40, and CCS PCD Compiler 4.101. (I also have the CCS IDE, but I can't get debugging to work for any project with it.)
I hit RUN, the target is indicated as "Running", nothing happens to indicate it actually is running, then I the message "Target Halted" appears, and the debugger stops.
A simple test program works correctly -- this is not a hardware or setup issue. At one point, it seemed that adding code to a timer interrupt routine was causing the problem -- a short routine that just incremented a counter worked fine, but additional code would not work.
Again, everything compiles fine, and works *perfectly* when programmed (not in debug mode). So my programming would seem to be correct.
Now I'm adding routines and debugging is required, and I can't do it. ARGHHHHH.
Any tips? Help very much appreciated.
Jim |
|
|
soundscu
Joined: 29 Jun 2007 Posts: 62 Location: Raleigh, NC
|
|
Posted: Thu Dec 03, 2009 11:48 am |
|
|
Even more strange:
I can debug successfully with an ICD2. So the problem seems to rest with the ICD3. |
|
|
r00x
Joined: 19 Mar 2010 Posts: 1
|
|
Posted: Fri Mar 19, 2010 7:39 am |
|
|
Hi there - did you ever resolve this problem?
I'd love to know how if you have. I'm trying to program a PIC18F4620 via a Pickit 2 and am having the exact same issues: software works fine when programmed, but no chip response followed immediately by "Target Halted" under debug.
When I hit Animate, the Pickit 2 output window spams "Stepping Target - Pickit 2 Ready - Stepping Target - Pickit 2 Ready" but the chip does nothing. |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|