View previous topic :: View next topic |
Author |
Message |
pieter
Joined: 16 Jan 2011 Posts: 27
|
USB to Com driver cdc_NTXPVista78.inf not working |
Posted: Sun Dec 28, 2014 8:09 am |
|
|
Hi,
My Pic18F14K50 board installed:
On older Windows 7 32 bit - works 100%
On new Windows 7 64 bit - driver Not recognized
On new Windows 8 64 bit - driver Not recognized
Many discussions on the internet about the cdc USB to Com driver but no solution that windows will not load or recognize the driver even when I set integrity check to off.
Any idea or new driver in place of the CCS provided cdc_NTXPVista78.inf driver?
|
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19537
|
|
Posted: Sun Dec 28, 2014 8:36 am |
|
|
You don't want/need the driver.
From early this year, Windows includes internally the driver for the CCS CDC class. Compilers from about V5.013 onwards code directly to run with this internal driver.
I suspect you are using an older compiler?.
If so, you need to change the VID/PID.
The VID needs to be 0x2405, and the PID 0x000B |
|
|
pieter
Joined: 16 Jan 2011 Posts: 27
|
|
Posted: Sun Dec 28, 2014 9:31 am |
|
|
Thanks for the reply Ttelmah
I am using the latest CCS compiler 5.032.
Windows 64b reports USB device not recognized, Unknown Device, Device driver was not sucessfully installed.
The Pic18F14K50 usb is set on full speed with the pull-up resistor. Will change that and see. |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19537
|
|
Posted: Sun Dec 28, 2014 3:38 pm |
|
|
OK.
Some machines seem to accept it straight away, others need the driver. Are you copying the driver or using it where CCS puts it?. If copying it, you need to copy the .cat file as well. This is the security signing file that tell Windows to accept the driver. Without this it won't be accepted. Needs to be in the same location you have the .inf file. |
|
|
pieter
Joined: 16 Jan 2011 Posts: 27
|
|
Posted: Mon Dec 29, 2014 11:19 am |
|
|
I have done all that...
I wrote 3 different applications including using ccs examples etc.
My Win 7 32 works immediately
Win 7 64 USB device not recognised
Win 8 64 USB device not recognised
I suspect this has to do with Windows... |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9241 Location: Greensville,Ontario
|
|
Posted: Mon Dec 29, 2014 12:08 pm |
|
|
maybe something like NOT being the administrator ?
odd that 32bit is fine, 64 bit fails....
jay |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19537
|
|
Posted: Tue Dec 30, 2014 2:46 am |
|
|
Remember (as an extension to this), that 'being' logged on as administrator _does not_ automatically mean you are running as 'administrator'. In Windows MS generate the permission you are using from the combination of your user rights, the program itself, and the mode. By default even if logged in as 'administrator', you will be running in 'user mode'. This is where 'right clicking' and selecting 'run as administrator' changes things, switching operations to 'administrator mode'.
It was done because so many users ran permanently 'as administrator', to help prevent them from 'shooting themselves in the foot' with this....
The driver definately does install in W8, and in W7 64. |
|
|
gpsmikey
Joined: 16 Nov 2010 Posts: 588 Location: Kirkland, WA
|
|
Posted: Tue Dec 30, 2014 10:31 am |
|
|
Well, yes, M$ is trying to prevent "shooting themselves in the foot", but then they turned around and added things like the "virtual store" where windows tells you it did what you told it to do (save license files etc. in the Program Files), but actually hid it in a virtual store under your user account, put in a hidden soft link to there that you can't see. I have been bitten by that one before (with my CCS license key for example). Make sure the Virtual Store thing is not somehow biting you on installing the driver files.
mikey _________________ mikey
-- you can't have too many gadgets or too much disk space !
old engineering saying: 1+1 = 3 for sufficiently large values of 1 or small values of 3 |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19537
|
|
Posted: Tue Dec 30, 2014 11:57 am |
|
|
Yes, a very true point. Some of these little 'nasties' behind the scenes make the OS's at times less and less useable!. |
|
|
ELCouz
Joined: 18 Jul 2007 Posts: 427 Location: Montreal,Quebec
|
|
Posted: Wed Dec 31, 2014 9:31 am |
|
|
In VCP mode you could save a lot of headache by using the FTDI FT232R chip or equivalent.
Drivers support are awesome! (98,2000,xp,vista,7,8,8.1 both x86 and 64) also linux , android, wince, winRT!
No need to use most of the ram and rom of the pic to run a virtual comport. _________________ Regards,
Laurent
-----------
Here's my first visual theme for the CCS C Compiler. Enjoy! |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19537
|
|
Posted: Wed Dec 31, 2014 10:24 am |
|
|
You have the wrong idea about how much space is used by the drivers. They have been 'shrunk' a lot from the early days (several things are optimised down for simple CDC comms now). A complete project handling a stepper, hardware serial and USB, on the 2550, compiles to just on 1/4 the memory space. On bigger chips like the 18XJ50, it falls to less than 10%. |
|
|
ELCouz
Joined: 18 Jul 2007 Posts: 427 Location: Montreal,Quebec
|
|
Posted: Wed Dec 31, 2014 12:04 pm |
|
|
Ttelmah wrote: | You have the wrong idea about how much space is used by the drivers. They have been 'shrunk' a lot from the early days (several things are optimised down for simple CDC comms now). A complete project handling a stepper, hardware serial and USB, on the 2550, compiles to just on 1/4 the memory space. On bigger chips like the 18XJ50, it falls to less than 10%. |
Good ... last time I've used the USB CDC Drivers from CCS was in 2007 (with the early v4 release)... never looked back..
BTW, the 2550 (double flash and triple RAM amount) is still a beast compared to the PIC18F14K50 the OP is using.
The only thing I could find better with this chip is this:
High Performance PIC18 Core
C Compiler optimized architecture
I don't know what's the difference for CCS Compiler on that compared to the old 2550 veteran. _________________ Regards,
Laurent
-----------
Here's my first visual theme for the CCS C Compiler. Enjoy! |
|
|
|