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 "18F2450"

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



Joined: 04 Jul 2008
Posts: 2

View user's profile Send private message

Unknown device type "18F2450"
PostPosted: Fri Jul 04, 2008 4:40 am     Reply with quote

I get the following error message when I try to build my project:
--- Info 300 "D:\Clients\In10did\Projects\In10did\PIC18F2450 Source\18F2450.h" Line 2(9,15): More info: Device database: "E:\PICC\devices4.dat"
*** Error 24 "D:\Clients\In10did\Projects\In10did\PIC18F2450 Source\18F2450.h" Line 2(9,17): Unknown device type "18F2450"

When I build a 16C745 project I have no problem.
When I run CCSC +Q from the command line it does not list any 18F parts.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Fri Jul 04, 2008 8:08 am     Reply with quote

Most likely you have a compiler package which doesn't support PIC18 processors.

CCS sells different command-line compilers for the different PIC families:
- PCB: for the PIC12 series
- PCM: for the PIC16 series
- PCH: for the PIC18 series

Then there are compiler packages with a Windows environment:
- PCW == Windows IDE + PCB + PCM
- PCWH == Windows IDE + PCB + PCM + PCH
See also http://www.ccsinfo.com/content.php?page=ideoverview

To check which compiler package you have you can execute 'CCSC +v'
GeorgeHS



Joined: 04 Jul 2008
Posts: 2

View user's profile Send private message

PostPosted: Fri Jul 04, 2008 8:54 am     Reply with quote

'CCSC +v' list both PCM and PCH
Guest








PostPosted: Fri Jul 04, 2008 9:01 am     Reply with quote

The problem was that I had specified #DEVICE 18F2450 and it need to be
#DEVICE PIC18F2450
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jul 04, 2008 12:26 pm     Reply with quote

You should never have to type in that statement. You just "include"
the header file for the PIC in your program. The header file contains
the correct #device statement for the PIC, as well as all the constants
used by the built-in CCS functions. This example shows how it should
be done:
Quote:

#include <18F2450.h>
#fuses HS,NOWDT,NOPROTECT,BROWNOUT,PUT,NOLVP
#use delay(clock=20000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7, ERRORS)

//=================================
void main()
{

printf("Hello World\n\r");

while(1);
}
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