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

ICD-U40 debugger problem [solved]

 
Post new topic   Reply to topic    CCS Forum Index -> CCS ICD / Mach X / Load-n-Go
View previous topic :: View next topic  
Author Message
TL



Joined: 15 Sep 2003
Posts: 75

View user's profile Send private message

ICD-U40 debugger problem [solved]
PostPosted: Mon Jan 04, 2010 6:26 am     Reply with quote

Hi, I have the following:

PCWH: V3.249
ICD-U40: firmware V2.62, hardware Rev 4
CCSLOAD: V4.022

I have programmed a hex file into the target (PIC18F2620) using CCSLOAD successfully. However, when I tried to use the debugger in PCWH, I got the following error message:

"Could not start target: The target was not halted after reset. Check the target oscillator and MCLR. Make sure the target clock match the clock fuse and that the target is oscillating. Use View | Valid fuses to find the correct clock fuse."

I have checked the target which uses a 4MHz resonator and therefore selected "XT" fuse setting in my C program.

Also, I have an ICD-S40 (serial) and this programs hex files onto the same target using CCSLOAD and operates the debugger in PCWH without any programs. This shows that the target clock is working and matches the program fuse setting "XT".

Can someone please explain why I'm getting the above error message? Thank you.
TL



Joined: 15 Sep 2003
Posts: 75

View user's profile Send private message

PostPosted: Mon Jan 04, 2010 6:29 am     Reply with quote

Sorry, the second last paragraph should read:

Also, I have an ICD-S40 (serial) and this programs hex files onto the same target using CCSLOAD and operates the debugger in PCWH without any problems. This shows that the target clock is working and matches the program fuse setting "XT".
TL



Joined: 15 Sep 2003
Posts: 75

View user's profile Send private message

PostPosted: Tue Apr 13, 2010 8:52 am     Reply with quote

Hi,

I have found the cause of the problem. There was a 0.1uF decoupling capacitor on the MCLR pin. When I removed it, the ICD works for programming and as a debugger within PCWH.
Jim Lai



Joined: 20 Jul 2010
Posts: 4

View user's profile Send private message

I have the same problem, it doesn't work without capacitor
PostPosted: Tue Aug 03, 2010 6:52 am     Reply with quote

I use internal clock, 1MHz, here is my configuration:

#include <18f4320.h>
#device ICD=TRUE
#fuses HS, INTRC_IO, NOLVP, NOWDT
#use delay(internal=1Mhz)

I have tried with capacitors: 0nF, 10nF, both don't work. any suggestions?
Jim Lai



Joined: 20 Jul 2010
Posts: 4

View user's profile Send private message

i use ICD-U64
PostPosted: Tue Aug 03, 2010 7:08 am     Reply with quote

by the way, I use ICD-U64, bought two weeks ago,
software: 4.026
Firmware: 2.85
Hardware: Rev.2

There are no problems to load codes into the target PIC.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Aug 03, 2010 8:51 am     Reply with quote

Quote:
I use internal clock, 1MHz, here is my configuration:

#include <18f4320.h>
#device ICD=TRUE
#fuses HS, INTRC_IO, NOLVP, NOWDT
#use delay(internal=1Mhz)

You are using both HS and INTRC_IO. That is not correct. You should
use only one oscillator fuse. Since you want the internal oscillator, you
should use INTRC_IO. Delete the HS fuse.
Jim Lai



Joined: 20 Jul 2010
Posts: 4

View user's profile Send private message

PostPosted: Wed Aug 04, 2010 8:50 am     Reply with quote

Thanks PCM Programmer! I have removed HS, the error is still there.
I have used the ccsload 'diagnostics':

Debugger Test

FAIL - A test program was loaded however the debugger would not start. The most likely cause is the wrong oscillator selection.

Details: Could not start target: the target was not halted after reset Check the target oscillator and MCLR. Make sure the target clock match the clock fuse and that the target is oscillation. Use View | Valid fuses to find the correct clock fuse.

By the way, my configuration can run in Dev. kit from ccs pic18F8722, but can't run in my pcb (target pic18F4322)!
Please help!
Thanks
Jim
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Aug 04, 2010 2:26 pm     Reply with quote

Quote:

target pic18F4322

When I search for this PIC on the Microchip website, I get this response:
Quote:

Your search PIC18F4322 did not match any documents.


I can't help any more on this. I don't have the CCS ICD debugger.
I use the Microchip ICD2.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> CCS ICD / Mach X / Load-n-Go 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