If i try to debug using the ICD-U, directly after the ICD-U has loaded the code to the pic the following message occurs:

"Could not start target: The target was not halted after reset Check the target oscillator and MCLR."

I checked the connection (using the "avanced options", all is connected directly without anything else to the ICD-U), MCLR and the oscillator - i checked all like described in the troubleshoot file - but it still doesnīt work.

What i found out is, that the configuration seems not to be written correctly. I use the "HS" fuses but if i read the configuration after programming, it shows "H4" ?!?

Because i did not find a way to get this right, i changed the delay from 8000000 to 32000000 and fuses "HS" to "H4" which should correct that. But it didnīt help...

If i start the program using the ICD-U control programm (v2.24) i can run and halt the PIC like i want - but the debugger doesnīt function...

I also tried "setup_oscillator(OSC_8MHZ, 0);" but that didnīt change anything.

Does anybody has an advice or me ?!?

Tom-H-PIC

Joined: 08 Sep 2003Posts: 98Location: New Castle, DE

Some things that I have learned the hard way!

Posted: Fri Feb 25, 2005 3:11 pm

I have been using the 18F2620 and the 18F4620 for some time now.
The first thing that I see is that you need to put the ICD = True on its own line.
You can take out the *=16 this is only for 14 bit parts.
Below are the first few lines of my program that I'm working.
I have also had the issues with the configuration words not programming.
In my system I can get around this by moving the oscillator fuse all the way to the end of the line.
Then for some reason it will program correctly.

If i try to debug using the ICD-U, directly after the ICD-U has loaded the code to the pic the following message occurs:

"Could not start target: The target was not halted after reset Check the target oscillator and MCLR."

I checked the connection (using the "avanced options", all is connected directly without anything else to the ICD-U), MCLR and the oscillator - i checked all like described in the troubleshoot file - but it still doesnīt work.

What i found out is, that the configuration seems not to be written correctly. I use the "HS" fuses but if i read the configuration after programming, it shows "H4" ?!?

Because i did not find a way to get this right, i changed the delay from 8000000 to 32000000 and fuses "HS" to "H4" which should correct that. But it didnīt help...

If i start the program using the ICD-U control programm (v2.24) i can run and halt the PIC like i want - but the debugger doesnīt function...

I also tried "setup_oscillator(OSC_8MHZ, 0);" but that didnīt change anything.