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 support@ccsinfo.com

Unknown device type -- Try PCH

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



Joined: 31 Mar 2011
Posts: 51
Location: Mexico

View user's profile Send private message

Unknown device type -- Try PCH
PostPosted: Mon Dec 05, 2016 12:30 pm     Reply with quote

I'm using MPLAB 8.56 and I wrote this:
Code:

#include <18f4550.h>
#device adc=10
#use delay(clock = 8MHz)
#fuses INTRC, NOWDT, NOBROWNOUT, NOLVP
void main()
{}
After compilation:
Error 24 "C:\Program Files (x86)\PICC\devices\18f4550.h" Line 2(9,19): Unknown device type -- Try PCH

In the 18f4550.h header file it's written:
//////// Standard Header file for the PIC18F4550 device ////////////////
device PIC18F4550
#nolist
//////// Program memory: 16384x16 Data RAM: 2048 Stack: 31
//////// I/O: 35 Analog Pins: 13

So, I think the right device is included....... I don't understand what happens.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Dec 05, 2016 12:41 pm     Reply with quote

Go to the Configure / Select Device menu in the top right side of the
menu bar in MPLAB. What device is selected there ? It must be set
to 18F4550. You probably currently have it set to a 16F PIC.
rfjhh



Joined: 31 Mar 2011
Posts: 51
Location: Mexico

View user's profile Send private message

PostPosted: Wed Dec 07, 2016 8:12 am     Reply with quote

Thanks, that's fixed. It works well.
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