View previous topic :: View next topic |
Author |
Message |
tEaM
Joined: 29 Nov 2013 Posts: 26
|
PIC18F4620 in debugger not stop in breakpoints |
Posted: Fri Nov 29, 2013 4:37 pm |
|
|
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
|
|
Posted: Fri Nov 29, 2013 11:12 pm |
|
|
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
|
|
Posted: Sat Nov 30, 2013 4:27 am |
|
|
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: 19535
|
|
Posted: Sat Nov 30, 2013 5:25 am |
|
|
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
|
|
Posted: Sat Nov 30, 2013 7:02 am |
|
|
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...
Thanks for all. |
|
|
|