View previous topic :: View next topic |
Author |
Message |
pic_user
Joined: 25 Aug 2005 Posts: 16
|
device file not recognized in PCW |
Posted: Mon Sep 14, 2009 1:30 pm |
|
|
I am using an older version of the compiler. I can compile a design for 18F4550, but when I change to device to 18F45K20 the error message says the device file cannot be found. However, the .h file is in the devices subdirectory, and I can open it in a text editor.
Anyone had this problem? |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Sep 14, 2009 1:32 pm |
|
|
What version ? To test it, we need the version. |
|
|
pic_user
Joined: 25 Aug 2005 Posts: 16
|
|
Posted: Mon Sep 14, 2009 1:40 pm |
|
|
I am using :
CCS PCH C Compiler, Version 4.064, |
|
|
pic_user
Joined: 25 Aug 2005 Posts: 16
|
|
Posted: Mon Sep 14, 2009 1:43 pm |
|
|
Specifically it says "File can not be opened" in response to:
#include <PIC18F45K20.h> |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Sep 14, 2009 2:00 pm |
|
|
Quote: | #include <PIC18F45K20.h> |
The CCS header files do not have "PIC" in front of the name.
Delete those 3 letters. |
|
|
pic_user
Joined: 25 Aug 2005 Posts: 16
|
|
Posted: Mon Sep 14, 2009 2:05 pm |
|
|
Thank you very much. |
|
|
|