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

XT/HS

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



Joined: 03 Apr 2009
Posts: 7

View user's profile Send private message

XT/HS
PostPosted: Mon Apr 06, 2009 10:56 am     Reply with quote

Hi. I have a 10MHz oscillator.

If I put

#fuses XT (<4Mhz)

I haven't got any problem. And the PIC works @ 10MHz.

But if I put

#fuses HS (>4Mhz)

I obtain this message: "Could not start target. The target has not........ . Use View | Valid fuses to find the correct clock fuse."

Compiler version: CCS PCH C Compiler, Version 4.023, 25097 03-abr-09 18:39.

Why? Shocked


Best wishes!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Apr 06, 2009 11:37 am     Reply with quote

I compiled the following test program with vs. 4.023 and 4.090.
Code:
#include <18F4620.h>
#device adc=10
#device icd=true
#fuses NOWDT, HS, NOMCLR, NOPROTECT, NOIESO, BROWNOUT,
BORV21, NOPUT, NOCPD, NOSTVREN, DEBUG, NOLVP, NOWRT,
NOWRTD, NOEBTR, NOCPB, NOEBTRB, NOWRTC, NOWRTB, NOFCMEN,
NOXINST, NOPBADEN, NOLPT1OSC, CCP2B3
#use delay(clock=10000000)

//==============================
void main()
{

while(1);
}


The hex values for the Config Bits, given at the end of the .LST files,
are the same for both versions. Also, the HEX files are the same,
except that vs. 4.090 has a comment line added at the end with a CRC
and a "Created on" date.

Your problem is with the ICD-U40 failing to start the target. It's probably
caused by a bug in the IDE for vs. 4.023. Maybe it is.

There is nothing that we on this forum can do to fix this problem.
Chevi



Joined: 03 Apr 2009
Posts: 7

View user's profile Send private message

PostPosted: Mon Apr 06, 2009 12:00 pm     Reply with quote

Sorry, but my english is poor.

Have I to change the ICD-U40?
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Mon Apr 06, 2009 12:18 pm     Reply with quote

Compiler version v4.023 is very bad, even the most basic program will fail. I don't like CCS for releasing such immature products without a large warning message that it is a beta release. For more info see the v4 thread at the top of this forum.

Maybe you can get your program working with v4.023 but safe yourself and everybody else a lot of time and upgrade to at least v4.060
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