View previous topic :: View next topic |
Author |
Message |
Pekub
Joined: 20 Dec 2005 Posts: 16
|
Could not start target |
Posted: Fri Aug 16, 2013 4:16 am |
|
|
Hi,
I use 18F14K22. It works fine, but I can't get it to debug.
It appears:
Quote: | Could not start target: The target was not halted after reset....... |
I try it with ICD-U40 and ICD-U64. I also changed the processor.
Pin MCLR is connect to 5V via 33k resistor.
For ICD I use the newest software and firmware.
This is my test program:
Code: |
#include <18F14K22.h>
#device ICD=TRUE
#FUSES INTRC //Internal RC Osc, CLKOUT on RA4
#use delay(internal=1000000)
void main(void) {
int x;
x=5;
while(TRUE) {
x++;
x=x+2;
}
} |
The problem I have seen in this forum, but I did not find solution. |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri Aug 16, 2013 10:56 pm |
|
|
Quote: | I use 18F14K22. It works fine, but I can't get it to debug.
|
The 18F14K22 doesn't have built-in support for the ICD debugger.
You need an ICD header.
ICD Debug header for 18F14K22:
http://www.microchipdirect.com/productsearch.aspx?Keywords=AC244033
Processor Extension Pak and Header Specification:
http://ww1.microchip.com/downloads/en/DeviceDoc/51292U.pdf
The header is expensive, compared to an indivual PIC chip. If this is just
a hobby project, develop the project on a similar PIC but use one that has
built-in debug support. Then when development is done, compile the
program for your actual PIC, the 18F14K22. |
|
![](templates/subSilver/images/spacer.gif) |
Pekub
Joined: 20 Dec 2005 Posts: 16
|
Debug 18F14K22 - solved |
Posted: Mon Aug 19, 2013 6:59 am |
|
|
Hello,
PIC18F14K22 is possible to debug with ICD-U64 / maybe with ICD-U40, I have not tried it /.
My problem was a bad installation program PCWHD V4.132.
It was necessary to reinstall the program PCWHD V4.132 and already it works / of course, also debugging /.
Peter |
|
![](templates/subSilver/images/spacer.gif) |
|