CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Debugger /cpu reset after continuing from a breakpoint

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
eric



Joined: 16 Sep 2003
Posts: 21

View user's profile Send private message

Debugger /cpu reset after continuing from a breakpoint
PostPosted: Tue Aug 04, 2009 11:51 am     Reply with quote

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

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Tue Aug 04, 2009 5:39 pm     Reply with quote

Make sure you have NOWDT among the fuses.
_________________
Every solution has a problem.
Franck26



Joined: 29 Dec 2007
Posts: 122
Location: Ireland

View user's profile Send private message

PostPosted: Wed Aug 05, 2009 3:04 pm     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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