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

Could not start target

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



Joined: 20 Dec 2005
Posts: 16

View user's profile Send private message Send e-mail

Could not start target
PostPosted: Fri Aug 16, 2013 4:16 am     Reply with quote

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.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Aug 16, 2013 10:56 pm     Reply with quote

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.
Pekub



Joined: 20 Dec 2005
Posts: 16

View user's profile Send private message Send e-mail

Debug 18F14K22 - solved
PostPosted: Mon Aug 19, 2013 6:59 am     Reply with quote

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
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