View previous topic :: View next topic |
Author |
Message |
haseeb
Joined: 27 Apr 2011 Posts: 19
|
CCS compiler Ver4.130, header file for PIC18F67k22 |
Posted: Wed Mar 07, 2012 6:46 am |
|
|
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: 9243 Location: Greensville,Ontario
|
|
Posted: Wed Mar 07, 2012 6:54 am |
|
|
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
|
|
Posted: Wed Mar 07, 2012 7:07 am |
|
|
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: 1934 Location: Norman, OK
|
|
Posted: Wed Mar 07, 2012 4:08 pm |
|
|
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!!!! |
|
|
|