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 support@ccsinfo.com

CDC driver problem with Vista

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



Joined: 05 Mar 2010
Posts: 2

View user's profile Send private message

CDC driver problem with Vista
PostPosted: Fri Mar 05, 2010 2:05 pm     Reply with quote

Hello ,

I have problem using the CDC class with CDC code sample and the pic18f2550 on Vista. This all works great on XP...and after taking two weeks to get it working reliably on XP, now it fails on Vista. I tried the CCS supplied inf file for the CDC class, and I tried the Microchip supplied (digitally signed) inf file but I have always get this error:
"This device cannot start. (Code 10)"

Thank you.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Mar 05, 2010 2:27 pm     Reply with quote

This is in the forum archives. You can find it with the forum's search engine:
http://www.ccsinfo.com/forum/viewtopic.php?t=38092
Guest








PostPosted: Sat Mar 06, 2010 3:07 am     Reply with quote

Thank you but there is no solution in this topic
Ttelmah
Guest







PostPosted: Sat Mar 06, 2010 3:59 am     Reply with quote

There are a lot of different possible 'reasons'.

On the thread, have you taken the advice at the end, and got the newer CDC driver?.
Then, have you tried the actual _unit_ onto an XP machine?. Not just the a 'duplicate', but the actual unit involved. It is surprisingly common to have a unit with problems without realising it....
Next, has the actual hardware of the Vista machine been tried with XP?. There are known problems/oddities with some chipsets. Try installing the motherboard manufacturers drivers, rather than the ones that come with Vista. Unfortunately, MS has some major driver faults (particularly cmmon with Intel chipsets....).
Have you tied both with and without a hub?.
Have you tried different cables?.
If this is a desktop/tower PC, try the USB sockets closest to the keyboard connector.

A lot then depends on how technical you are. I'd install a USB sniffer, and record the packets involved when the device is attached.

The CDC driver, does work.

Best Wishes
rblode



Joined: 05 Mar 2010
Posts: 2

View user's profile Send private message

PostPosted: Mon Mar 08, 2010 1:38 pm     Reply with quote

Thank you for the reply.
I tried to test every possibility that you asked me to do, but its still not working.

Here the .inf file that I use:
Code:

; Windows 2000, XP and Vista setup File for CCS CDC demo
; see examples ex_usb_serial.c and ex_usb_serial2.c

[Version]
Signature="$Windows NT$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%CCS%
LayoutFile=layout.inf

[Manufacturer]
%CCS%=CCS

[CCS]
%CCS_CDC%=Reader, USB\VID_0461&PID_0033
%CCS_CDCBOOT%=Reader, USB\VID_0461&PID_0034

[Reader_Install.NTx86]
;Windows2000

[DestinationDirs]
DefaultDestDir=12
Reader.NT.Copy=12

[Reader.NT]
Include=mdmcpq.inf
CopyFiles=Reader.NT.Copy
AddReg=Reader.NT.AddReg

[Reader.NT.Copy]
usbser.sys

[Reader.NT.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,usbser.sys
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

[Reader.NT.Services]
AddService = usbser, 0x00000002, Service_Inst

[Service_Inst]
DisplayName = %Serial.SvcDesc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\usbser.sys
LoadOrderGroup = Base

[Strings]
CCS = "Custom Computer Services, Inc."
CCS_CDC = "USB to UART"
CCS_CDCBOOT = "CCS CDC Bootloader"
Serial.SvcDesc = "USB Serial emulation driver"
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