View previous topic :: View next topic |
Author |
Message |
mobility
Joined: 21 Jun 2007 Posts: 2
|
Compile error - How can solve it?? (Unknown Device Type) |
Posted: Fri Jun 22, 2007 3:53 am |
|
|
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 - 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
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.. |
|
![](templates/subSilver/images/spacer.gif) |
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
|
|
Posted: Fri Jun 22, 2007 11:57 am |
|
|
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. |
|
![](templates/subSilver/images/spacer.gif) |
mobility
Joined: 21 Jun 2007 Posts: 2
|
|
Posted: Fri Jun 22, 2007 12:23 pm |
|
|
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.. |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri Jun 22, 2007 12:32 pm |
|
|
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 ? |
|
![](templates/subSilver/images/spacer.gif) |
rnielsen
Joined: 23 Sep 2003 Posts: 852 Location: Utah
|
|
Posted: Fri Jun 22, 2007 1:38 pm |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
|