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

CCS compiler Ver4.130, header file for PIC18F67k22

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



Joined: 27 Apr 2011
Posts: 19

View user's profile Send private message

CCS compiler Ver4.130, header file for PIC18F67k22
PostPosted: Wed Mar 07, 2012 6:46 am     Reply with quote

Hi

I'm using CCS compiler version 4.130 with MPLAB IDE ver 8.56.

I wish to program the PIC18F67k22. So i use the provided
header file with the CCS compiler, and when I compile, the
compiler gives error saying 'no such device exists'.

I have also tried copying the header file from the 'devices' folder
to my project folder, but still the same error occurs.

Should I be using the PIC18F6722 header file instead? If so
then why is it not recognizing the device PIC18F67k22 even though
the CCS website clearly states that the 'k' part is supported.

Can someone please explain this to me?

Thanks

Haseeb
temtronic



Joined: 01 Jul 2010
Posts: 9173
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Mar 07, 2012 6:54 am     Reply with quote

1) you should post a small program that fails....

2) have you tried other PIC types,with the same program?
haseeb



Joined: 27 Apr 2011
Posts: 19

View user's profile Send private message

PostPosted: Wed Mar 07, 2012 7:07 am     Reply with quote

This simple test program keeps failing right at the start.
The compiler gives the error at compile time saying that no such
'PIC18F67k22' device exists.

Code:

#include <18F67k22.h>
#include <stdio.h>

#fuses INTRC_IO,NOWDT,NOPROTECT,NOLVP,NOPUT

#use delay(clock=4000000)

void main(void)
{
    while(true);
}



Please can you explain this?

Haseeb
dyeatman



Joined: 06 Sep 2003
Posts: 1924
Location: Norman, OK

View user's profile Send private message

PostPosted: Wed Mar 07, 2012 4:08 pm     Reply with quote

If it was a problem with the header file the error would be FILE NOT
FOUND. Device not found sounds like corrupted compiler files,
(i.e. the devices.dat file is wrong or bad)

It compiles fine under 4.130 if I remove the NOLVP fuse.

Code:

#include <18F67k22.h>
#include <stdio.h>

#fuses INTRC_IO,NOWDT,NOPROTECT,NOPUT

#use delay(clock=4000000)

void main(void)
{
    while(true);
}


I would remove and re-install your compiler.
_________________
Google and Forum Search are some of your best tools!!!!
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