|
|
View previous topic :: View next topic |
Author |
Message |
Ramey
Joined: 11 Sep 2007 Posts: 18
|
PIC18F4450 and USB |
Posted: Tue Dec 18, 2007 5:58 pm |
|
|
I can compile the CCS example ex_usb_kbmouse2.c out of the box without problem. When I make the following change:
replace
#include <18F4550.h>
with
#include <18F4450.h>
I get Code: |
Clean: Deleting intermediary and output files.
Clean: Deleted file "ex_usb_kbmouse2.ERR".
Clean Warning: File "C:\Projects\bigkeys\Code\ex_usb_kbmouse2.o" doesn't exist.
Clean: Done.
Executing: "C:\Program Files\PICC18\Ccsc.exe" "ex_usb_kbmouse2.c" +FH +DF +LN +T -A +M +Z +Y=9 +EA
>>> Warning 215 "C:\PROGRA~1\PICC18\drivers\pic18_usb.h" Line 165(1,1): Undefined identifier USB_EP3_TX_SIZE
>>> Warning 215 "C:\PROGRA~1\PICC18\drivers\pic18_usb.h" Line 165(1,1): Undefined identifier USB_EP3_RX_SIZE
>>> Warning 215 "C:\PROGRA~1\PICC18\drivers\pic18_usb.h" Line 165(1,1): Undefined identifier USB_EP4_TX_SIZE
>>> Warning 215 "C:\PROGRA~1\PICC18\drivers\pic18_usb.h" Line 165(1,1): Undefined identifier USB_EP4_RX_SIZE
>>> Warning 215 "C:\PROGRA~1\PICC18\drivers\pic18_usb.h" Line 165(1,1): Undefined identifier USB_EP5_TX_SIZE
>>> Warning 215 "C:\PROGRA~1\PICC18\drivers\pic18_usb.h" Line 165(1,1): Undefined identifier USB_EP5_RX_SIZE
>>> Warning 215 "C:\PROGRA~1\PICC18\drivers\pic18_usb.h" Line 165(1,1): Undefined identifier USB_EP6_TX_SIZE
...
|
This doesn't seem right - there might be more changes required to make it work, but it should at least compiler - Or shouldn't it? Any help appreciated.
Robet Ramey |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Dec 19, 2007 12:50 pm |
|
|
I tested it with vs. 4.064, and it doesn't compile. It gives the same
errors. CCS has some #if and #elif statements in pic18_usb.c
to configure the code for the 18F4450. Apparently, it needs to be
fixed for the Ex_usb_kbmouse2.c example. I suggest that you
contact CCS Tech support and ask them about it. |
|
|
|
|
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
|