View previous topic :: View next topic |
Author |
Message |
TL
Joined: 15 Sep 2003 Posts: 75
|
ICD-U40 debugger problem [solved] |
Posted: Mon Jan 04, 2010 6:26 am |
|
|
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
|
|
Posted: Mon Jan 04, 2010 6:29 am |
|
|
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
|
|
Posted: Tue Apr 13, 2010 8:52 am |
|
|
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
|
I have the same problem, it doesn't work without capacitor |
Posted: Tue Aug 03, 2010 6:52 am |
|
|
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
|
i use ICD-U64 |
Posted: Tue Aug 03, 2010 7:08 am |
|
|
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
|
|
Posted: Tue Aug 03, 2010 8:51 am |
|
|
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
|
|
Posted: Wed Aug 04, 2010 8:50 am |
|
|
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
|
|
Posted: Wed Aug 04, 2010 2:26 pm |
|
|
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. |
|
|
|