View previous topic :: View next topic |
Author |
Message |
Prefekt
Joined: 21 Oct 2010 Posts: 85
|
CDC USB Driver Windows 7 |
Posted: Sun Oct 13, 2013 3:04 am |
|
|
Hello,
I have a new pc with Windows 7. I can't install the cdc usb driver. The PIC hard and software are ok. I can run the pic on my old pc and on my laptop (both windows 7 home premium).
When I connet the pic to my new pc, the usb driver installation pop up, but windows say I can't find the driver.
Under c:\windows\system32\driver ... the usbser.sys was missing. I have copied from my laptop.
But windows say's there is no driver.
Has anybody an Idea? Are there more files missing?
Volker |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19552
|
|
Posted: Sun Oct 13, 2013 3:15 am |
|
|
You don't want usbser.sys.....
The CDC device, uses the _Windows_ driver. What you need is the file that tells Windows to do this. This is the 'inf' file.
WhereverYourCCSCompilerIs/drivers/NT,2000,XP,VISTA,7
Two files in there (the .inf file, and the security catalog - the latter is what prevents Windows for 'warning' you that this is 'not an approved driver').
Copy these.
When Windows asks for the driver, point it to the inf file.
Hopefully you have not put usbser.sys, anywhere that will cause problems. Windows 7 has it's own version, archived in a .cab file, which it will load as required.
Best Wishes |
|
|
Prefekt
Joined: 21 Oct 2010 Posts: 85
|
|
Posted: Sun Oct 13, 2013 3:44 am |
|
|
I have look at my notebook which driver is used.
So I found the usbser.sys.
After the failed driver installation I have chose update driver. Then I choose the driver directory from ccs.
But windows say ther are no drivers found for the csc rs232 demo!
I'am confused.
How is the inf file name correct?
I can windows point to the inf file, only to the directory! |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19552
|
|
Posted: Sun Oct 13, 2013 8:45 am |
|
|
It is the "NT,2000,XP,VISTA,7" subdirectory you need to point it at.
'Drivers' contains CCS's driver code for the PIC itself. The subdirectory contains the inf file. It won't find the files in the subdirectory unless you point it there.....
Best Wishes |
|
|
Prefekt
Joined: 21 Oct 2010 Posts: 85
|
|
Posted: Sun Oct 13, 2013 9:37 am |
|
|
I have point it directly to the subdirectory where the .inf files are.
But the message from windows is alway the same, could not find a driver.
On my laptop, I have deinstall the driver and install on the same way, works fine.
I think anything is missing, but what? |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19552
|
|
Posted: Sun Oct 13, 2013 10:36 am |
|
|
Are you sure you are genuinely 'administrator'.
In Windows7, a user who is 'administrator', can not always install drivers. You genuinely need 'system admin' permissions.
Also the ability to add drivers can be disabled, using the group policy settings (commonly done on systems where you do not want people to be able to add things. If this has been done, the person who set the system up, will need to give permission to do this.
Best Wishes |
|
|
Prefekt
Joined: 21 Oct 2010 Posts: 85
|
|
Posted: Tue Oct 15, 2013 12:33 am |
|
|
Yes, I'm admin on the system. I have installed all other drivers without problems.
I have tried a pic as hid device. So I connect the pic with the pc, driver installation pupup and the hid device was running. No problems.
Only the usbserial will not working!
|
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19552
|
|
Posted: Tue Oct 15, 2013 12:53 am |
|
|
You are sure that something hasn't been changed in the code you compiled, like the VID/PID?.
Best Wishes |
|
|
|