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 support@ccsinfo.com

PIC18F4620 in debugger not stop in breakpoints

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



Joined: 29 Nov 2013
Posts: 26

View user's profile Send private message

PIC18F4620 in debugger not stop in breakpoints
PostPosted: Fri Nov 29, 2013 4:37 pm     Reply with quote

Hi,

I have a problem with the PIC18F4620 in Debugger using the MPLAB ICD3. I created a very simple code (flashing LED). This code without breakpoints working perfectly. But if I put some breakpoints, the ICD3 not stop in these breakpoints. And if I force stop the following message:

Running...
Halting...
ICD3Err0019: Failed while reading emulation registers Target halted

I disabled the power-up, the watchdog time, brown-out, and the problem persists... Can someone help me?
I use the MPLAB v8.83.

Thank you.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Nov 29, 2013 11:12 pm     Reply with quote

I noticed you posted this over on the Microchip forum. I wonder if you
have the CCS compiler ? That's what this forum is about.

But anyway, you should look at the MPLAB help file for the ICD3. I have
MPLAB vs. 8.91. It has a Help menu. Click on that and go to Topics, and
click on MPLAB ICD 3. On the Contents tab, go to Troubleshooting
and then Troubleshooting First Steps. Read everything in there.
Especially read the section on "Top reasons why you can't debug".
ICD3 comes with a "Test interface board". Look up to use it in that Help
file.

If you can't solve the problem, open a Trouble Ticket on Microchip.com.
They will either help you to fix it or they will replace it.

And maybe update MPLAB. You have an older version. Then update
the firmware in the ICD3. The latest version of MPLAB will have the
latest firmware for it. And avoid MPLAB-X for now.
tEaM



Joined: 29 Nov 2013
Posts: 26

View user's profile Send private message

PostPosted: Sat Nov 30, 2013 4:27 am     Reply with quote

Thanks for your help.

I use MPLAB IDE, but use the CCS compiler. I think the problem is not the IDE. I think this problem is related to the configuration bits...

I have tested various configurations and the result is always the same ...

Regards
Ttelmah



Joined: 11 Mar 2010
Posts: 19359

View user's profile Send private message

PostPosted: Sat Nov 30, 2013 5:25 am     Reply with quote

You also need to tell us the compiler version?.

However this is triggering a faint 'memory'. I think you may find a thread here about the debug setting on this chip, reserving less space than the ICD actually needs when using MPLAB. Possibly mid year sometime.
You can change this if you have the CCS IDE, or reserving the space also fixed the problem.

Best Wishes
tEaM



Joined: 29 Nov 2013
Posts: 26

View user's profile Send private message

PostPosted: Sat Nov 30, 2013 7:02 am     Reply with quote

I use the CCS C compiler v5.012.

I have given up using this PIC18F4620. Is always the same error.
Now I will use PIC18F46K22. More ROM, more RAM...
Twisted Evil

Thanks for all.
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