Bollo
Joined: 01 Dec 2010 Posts: 25
|
USB CDC Win7 64 "This device cannot start. (Code 10) |
Posted: Tue Dec 14, 2010 12:48 pm |
|
|
Hello, I'm using a PIC18F27J53 with CCS 4.114. I'm attempting to use the CCS CDC driver but I keep getting the message in the subject when using Win7 64. On an old XP computer the driver installs and functions correctly. The following is the code I'm using to test the connection.
Code: | void main(){
initialise();
BYTE i;
usb_init_cs();
do
{
usb_task();
if (usb_enumerated())
{
if (msg==0){
printf(lcd_putc,"\fEnumerated!");
msg=1;
}
if (usb_cdc_kbhit())
{
i = toupper(usb_cdc_getc());
if (i == 'R')
{
printf(usb_cdc_putc, "Sending a R Back");
}
if (i == 'W')
{
printf(usb_cdc_putc, "Sending a W Back");
}
}
}
else {
if (msg==1){
printf(lcd_putc,"\fWaiting...");
msg=0;
}
}
} while (TRUE);
} |
There are lots of posts in the forum saying different things regarding the compatibility of the CDC driver with Win7 64. I would like to know if the driver bundled with CCSC 4.114 should work on Win7 64 and if so does anyone know why I get "This device cannot start. (Code 10)" in device manager for "USB to UART" |
|