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 CCS Technical Support

Could not start target. The target was not halted after...

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



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

Could not start target. The target was not halted after...
PostPosted: Wed Jun 22, 2005 11:55 am     Reply with quote

Colleagues,

I have made 2 identical PCBs with PIC18F6720 on them. One programs fine with the ICD-U. The other one doesn?t, and it gives the following message:
Quote:

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

Checked the oscillator ? it?s oscillating. Checked the MCLR ? it's at +5V, and there is continuity. Re-flowed the RB6, RB7 etc. pins.

My fuses are the following:
Code:

#include <18F6720.h>
#device ICD=TRUE
#device adc=8
#use delay(clock=11000000)
#fuses NOWDT,WDT128,HS, NOPROTECT, NOOSCSEN, BROWNOUT, BORV25, NOPUT, NOCPD, STVREN, DEBUG, NOLVP, NOWRT, NOCPB, NOEBTRB, NOEBTR, NOWRTD, NOWRTC, NOWRTB
#use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=9)
#use i2c(Master,Fast,sda=PIN_C4,scl=PIN_C3)

What could go wrong?

Thanks,
Nick
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Wed Jun 22, 2005 12:22 pm     Reply with quote

Quote:

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


Typical hardware problem in the target board. Same problem when
inadvertidely I left a capacitor in the MCLR pin.

1) Re-recheck for good connections form ICD to target.
2) Re-recheck the MCLR circuit.
3) Measure if the 47K resistor is connected.
4) If you have two target boards, keep the board wich is running and
swap the microcontrollers.
5) Good luck.

Confused
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

Found it
PostPosted: Wed Jun 22, 2005 10:16 pm     Reply with quote

The voltage at MCLR was +4.0V. I have a 0.1uF cap (SMT 0805) between MCLR and GND. When I removed it, the PIC allowed to run itself. When I have put the cap back, the PIC kept working. I guess there was a solder bridge under the cap.

Nick
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Thu Jun 23, 2005 4:54 am     Reply with quote

Quote:


When I removed it, the PIC allowed to run itself. When I have put the cap back, the PIC kept working.



All the info I have regarding this issue told the same:
to connect an ICD, the capacitor in the MCLR circuit must be removed.
After found the error you reconected it again. Question Question Question Confused

Do I miss something ? if so pls let me know.

Quote:


I guess there was a solder bridge under the cap.



If you assume this, you wouldn´t read 4.0V in this point !!!

Keep well,

Humberto
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

PostPosted: Thu Jun 23, 2005 11:20 am     Reply with quote

Humberto,

I'll remove the cap anyways, because it will make the ICD work more reliably.

But the cause of my immediate problem might have been a short with resistance of about 190k. It could have been some flux residue for example. Together with a 47k resistor it formed a voltage divider, which brought the voltage down to +4.0V

Nick
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