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 CCS Technical Support

PIC18F4450 and USB

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



Joined: 11 Sep 2007
Posts: 18

View user's profile Send private message

PIC18F4450 and USB
PostPosted: Tue Dec 18, 2007 5:58 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Dec 19, 2007 12:50 pm     Reply with quote

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.
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