|
|
View previous topic :: View next topic |
Author |
Message |
Chevi
Joined: 03 Apr 2009 Posts: 7
|
XT/HS |
Posted: Mon Apr 06, 2009 10:56 am |
|
|
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?
Best wishes! |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Apr 06, 2009 11:37 am |
|
|
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
|
|
Posted: Mon Apr 06, 2009 12:00 pm |
|
|
Sorry, but my english is poor.
Have I to change the ICD-U40? |
|
|
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
|
|
Posted: Mon Apr 06, 2009 12:18 pm |
|
|
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 |
|
|
|
|
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
|