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

Error with new USB Librarys

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







Error with new USB Librarys
PostPosted: Mon Apr 24, 2006 8:55 am     Reply with quote

Hi,

today i�ve got the new USB Librarys from CCS (i�ve got them very quick, thanks for that), but i have some trouble :

For a first test i took the ex_usb_serial2.c from the examples and wanted to compile it with the new librarys, but i ever get an error-message in the usb_cdc.h (the new one). In Line 336 i get the error message "Undefined identifier usb_rx_packet_size make16". The line looks like this :

usb_cdc_get_buffer_status.len=usb_rx_packet_size(USB_CDC_DATA_OUT_ENDPOINT);

I can�t find a routine wich is called "usb_rx_packet_size".


I�m using the PCWH V3.232


Can anybody help?

I want to start a project where i have to do some out-/inputs (digital and analog) via usb and later with MMC-Memory and it crashes at the first step :-((


ciao
Harmi
Harmi
Guest







PostPosted: Mon Apr 24, 2006 2:42 pm     Reply with quote

Nobody who can help?

The older version of the files i can compile without any error! There must be something with the new ones.


ciao
Harmi
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Apr 24, 2006 3:01 pm     Reply with quote

Quote:
I'm using the PCWH V3.232

You don't have the latest version of the CCS USB drivers.

Quote:
I can�t find a routine wich is called "usb_rx_packet_size".

Here's the function declaration from the latest version.
Code:
#define BD0CNT_LOC 0x1A1

#define EP_BDxCNT_O(x)    *(BD0CNT_LOC + x*8)

int16 usb_rx_packet_size(int8 endpoint) {
   return(EP_BDxCNT_O(endpoint));
}


If this doesn't help, then email CCS support and ask them to
email you the latest version of the drivers and supporting files.
Give them your customer number. Maybe they will send them to you.
If not, you'll have to upgrade the compiler.
Guest








PostPosted: Mon Apr 24, 2006 11:54 pm     Reply with quote

OK,

thanks for that, it worked.

I have copied the declaration in my file and it works (i can compile the files without errors). Now i have to wait for my PIC (it�s ordered) to check the hardware.

Many thanks.


ciao
Harmi
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