View previous topic :: View next topic |
Author |
Message |
eric
Joined: 16 Sep 2003 Posts: 21
|
Debugger /cpu reset after continuing from a breakpoint |
Posted: Tue Aug 04, 2009 11:51 am |
|
|
Not sure if this is a familiar topic or not.
I'm using the CCS TCPIP stack for tx/rx udp packets on PIC18F67J60 and it works quite well enough.
But when I have had coding issues, and set breakpoints on any given line, it stops nicely but when hit "Go" to continue or single step, the CPU resets- program counter goes to 00. This of course makes debugging somewhat limited... pretty much reduced to printing to monitor.
Is there something that the debugger outputs as a trace that I could look at or set up to solve this?
This happens on two different projects, though both with the TCP/IP code. |
|
|
n-squared
Joined: 03 Oct 2006 Posts: 99
|
|
Posted: Tue Aug 04, 2009 5:39 pm |
|
|
Make sure you have NOWDT among the fuses. _________________ Every solution has a problem. |
|
|
Franck26
Joined: 29 Dec 2007 Posts: 122 Location: Ireland
|
|
Posted: Wed Aug 05, 2009 3:04 pm |
|
|
Hello,
I had a similar problem with a pic18F2520.
The program counter was jumping everywhere when using single step.
This was happening only if the ICD-U firmware was 2.51 or higher.
The issue was that one of the ICD output (PCD or PCG, I don't remember) was not able to give 5V (~4V).
The ICD firmware 2.51 and higher have a faster communication bus than earlier firmware. I suppose that it was not compatible with my low output voltage. I changed the ICD, it fixed the problem.
Good luck,
Franck. |
|
|
|