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

Can not start target PIC16F690

 
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

Can not start target PIC16F690
PostPosted: Thu Mar 13, 2008 5:44 pm     Reply with quote

Colleagues,

I can't start my PIC16F690. I'm getting the following message: "Could not start target: The target was not halted after reset. Check 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've checked the hardware. Vcc is +3.3V. MCLR is pulled up to Vcc and it exibits normal behavior during programming. My external oscillator is oscillating (12.288MHz), and it's connected to pin 2.

Here are the fuses:
Code:
#include <16F690.h>
#device ICD=TRUE
#device adc=8
#FUSES NOWDT //No Watch Dog Timer
#FUSES EC_IO //External clock
#FUSES NOPROTECT //Code not protected from reading
#FUSES BROWNOUT //Reset when brownout detected
#FUSES MCLR //Master Clear pin enabled
#FUSES NOCPD //No EE protection
#FUSES NOPUT //No Power Up Timer
#FUSES IESO //Internal External Switch Over mode enabled
#FUSES FCMEN //Fail-safe clock monitor enabled


Here's the description if my development environment:
- PCWH 3.240 (it's relatively old, but it has an entry for 16F690 and an .h file for it)
- ICD firmware V 1.39
- ICD control program V 2.87

What do you think could be causing my problem?

Thanks,
Nick
_________________
Read the label, before opening a can of worms.
PCM programmer



Joined: 06 Sep 2003
Posts: 21078

View user's profile Send private message

PostPosted: Thu Mar 13, 2008 6:21 pm     Reply with quote

http://www.ccsinfo.com/forum/viewtopic.php?t=25342

Even if you had a modern version of the compiler, and the special -ICD
version of the chip, CCS still doesn't support debugging that PIC at
+3.3v. See the entry for 16F690 on this page:
http://www.ccsinfo.com/devices.php?page=icddevices
ECACE



Joined: 24 Jul 2006
Posts: 94

View user's profile Send private message

PostPosted: Fri Mar 14, 2008 7:38 am     Reply with quote

Take a look at the datasheet for the 16F690...that part does not have a debug module in it. You can serial program it, but that's it.

Here is a clip from the 16F872 datasheet. Notice the third point:

• In-Circuit Serial Programming™ (ICSP™) via two
pins
• Single 5V In-Circuit Serial Programming capability
• In-Circuit Debugging via two pins

Now from the 16F690:

• In-Circuit Serial ProgrammingTM (ICSPTM) via two
pins

Also can be seen in the special features section of the datasheets.

You need to use a smarter PIC if you want the debug function. That chip just recently got me too. I figured that one out after I had already designed it in.
_________________
A HW Engineer 'trying' to do SW !!! Run!!!
Trent___



Joined: 20 Jun 2007
Posts: 11
Location: London, UK

View user's profile Send private message MSN Messenger

PostPosted: Fri Mar 14, 2008 12:05 pm     Reply with quote

I fell for it aswell.

The dev board Microchip have which offer's the Debug has some strange behaviour's too.

If you can use something else with debug ability do it.
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