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

Compile error - How can solve it?? (Unknown Device Type)

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



Joined: 21 Jun 2007
Posts: 2

View user's profile Send private message

Compile error - How can solve it?? (Unknown Device Type)
PostPosted: Fri Jun 22, 2007 3:53 am     Reply with quote

Hi everyone,

I'm facing with an error like that :
"Unknown Device Type -- Try PCM"

That error seems to be occured because of the first line of the project :

Code:
#include <PIC16F84.h>


I tried writing
Code:
#include <PIC16F84.h>
, even
Code:
#include <PIC16C84.h>
and
Code:
#include <16C84.h>
- because the manual said that the mid-letter should be C it does not matter what it really is..
Actually, I have read all the manual, too, from beginning to end Smile

What should I do, anyone to help me?

I know that's not a big deal, could be a trick or something basic at all, but I used to program .NET or Java and just beginning for PIC programming..

Thanks for anyone to give me a hand!..

NOTE : System configuration is Windows Vista Home Premium, running the program with Administrator Privilages..
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Fri Jun 22, 2007 11:57 am     Reply with quote

Look in this directory:
C:\Program Files\PICC\Devices
It contains the *.h files that your compiler has.
_________________
The search for better is endless. Instead simply find very good and get the job done.
mobility



Joined: 21 Jun 2007
Posts: 2

View user's profile Send private message

PostPosted: Fri Jun 22, 2007 12:23 pm     Reply with quote

Yep, all the .h files stay there - even i tried renaming the 16F84.h file to PIC16F84.h or testing.h, and tried to import those files but nothing changes -

always the same error..
I mean, there can't be a problem within the .h files..
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jun 22, 2007 12:32 pm     Reply with quote

1. What compiler version are you using ?

2. Are you using the demo ?

3. Are you using the full CCS IDE ? Or are you using a command line
compiler within MPLAB ?
rnielsen



Joined: 23 Sep 2003
Posts: 852
Location: Utah

View user's profile Send private message

PostPosted: Fri Jun 22, 2007 1:38 pm     Reply with quote

There are three compilers available - PCB, PCM and PCH. Each one is for a different series PIC. Make sure you are using the correct one.

Ronald
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