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

PCD: Option invalid No PLL option

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







PCD: Option invalid No PLL option
PostPosted: Mon Nov 16, 2009 11:45 am     Reply with quote

This is the settings for PIC24.
Code:

#include <24FJ256GB110.h>
#device ADC=10
#device PASS_STRINGS=IN_RAM

#FUSES NOWDT                    //No Watch Dog Timer
#FUSES NOJTAG                   //JTAG disabled
#FUSES NOPROTECT                //Code not protected from reading
#FUSES NOWRT                    //Program memory not write protected
#FUSES NODEBUG                  //No Debug mode for ICD
#FUSES ICSP1                    //ICD uses PGC1/PGD1 pins
#FUSES NOWINDIS                 //Watch Dog Timer in Window mode
#FUSES WPRES128                 //Watch Dog Timer PreScalar 1:128
#FUSES WPOSTS16                 //Watch Dog Timer PostScalar 1:32768
#FUSES IESO                     //Internal External Switch Over mode enabled
#FUSES NOCKSFSM                 //Clock Switching is disabled, fail Safe clock monitor is disabled
#FUSES NOOSCIO                  //OSC2 is clock output
#FUSES HS                       //High speed Osc (> 4mhz for PCM/PCH) (>10mhz for PCD)
#FUSES NOIOL1WAY                //Allows multiple reconfigurations of peripheral pins
#FUSES WPEND_LOW             
#FUSES NOWPCFG               
#FUSES NOWPDIS               
#FUSES WPFP0   
#FUSES PR_PLL                   //Enable PLL for primary oscillator?
#FUSES PLL2                     //Divide By 2
#FUSES RESERVED                 //Used to set the reserved FUSE bits
#FUSES DISUVREG       

#use delay(clock=24M, crystal=8M)

And this is the error:
Quote:

Executing: "C:\PCD4099\Ccsc.exe" +FD "main.c" +DF +LN +T +A +M +Z +Y=9 +EA
*** Error 99 "C:\test\main.h" Line 28(5,34): Option invalid No PLL option

What I'm trying to do is to change the HW external OSC.
The external osc was 25 MHz but because of testing, I have to switch it to
8MHz. So we made HW changes but when I compile the program I get
error, written above.

O.
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Mon Nov 16, 2009 3:17 pm     Reply with quote

You may have revealed the cause of problem by playing around with the settings...
Basically the below line is wrong:
Quote:
#use delay(clock=24M, crystal=8M)

24M isn't a valid 24FJxxGB core clock, it has to be 32M. Curiously, PCD, that is ignoring all kind of defective settings
otherwise, is very critical in this point. It's also extracting some #fuses values from the #use delay entry, but you
better specify them separately, because some are extracted incorrectly. Omitting #fuse PLL2, that can be extracted
from the delay entry gives a PLL12 value...
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