View previous topic :: View next topic |
Author |
Message |
Carcosa
Joined: 03 Mar 2017 Posts: 4
|
Driver Problem and Installer |
Posted: Fri Mar 03, 2017 3:59 am |
|
|
Hello everyone,
I have a control board which communicates with PC via USB.
My board using 18F2550 and I am using usb_cdc.h to communicate so I have to install driver comes with usb_cdc.h to Windows. I can do it from Device Manager/Update Driver Software etc.
This procedure was enough for me and my users until CCS Compiler v5.048. After that version when I compile new version of hex , my board seen under Other Devices instead of Ports (COM & LPT) so I have to declare type of my device before install the driver. This problem occurs at pre WIN10 computers. There is no problem at WIN10 , even I don't have to install a driver at WIN10.
My other question is how can I create a installer which installs device drivers automatically and create shortcut for my application.
Thank you |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19546
|
|
Posted: Fri Mar 03, 2017 4:44 am |
|
|
VID.
Historically CCS supplied their examples using a Microchip VID. Then when W10 came along, in order to get a certified driver, they bought their own.
In the driver directory, there are now two separate directories. One for NT etc., and one OLD,NT etc..
Code compiled before the new VID, needs to use the drivers from the 'old' directory, while code compiled after this needs to use the newer version.
You can simply install both, but if you try to install the old drivers on a reasonably recent W7, or W8 install, you will get the complaint that this is not a certified driver. |
|
|
Carcosa
Joined: 03 Mar 2017 Posts: 4
|
|
Posted: Fri Mar 03, 2017 8:39 am |
|
|
Thank you for reply Ttelmah.
I was already using NTXPVista.inf driver for pre-WIN10 systems but problem is my board was listed under Ports (COM&LPT) until v5.048. Now it is listed under Other Devices. So I have to declare the type of my device (COM&LPT) to computer before I install the driver.
I used to follow "Update Driver Software/Browse my computer for driver software/selecting driver ".
Now I have to follow "Update Driver Software/Browse my computer for driver software/Let me selecft from list/Ports(COM&LPT)/Have Disk/USB to UART/etc." .
Also I dont want to bother people with these procedures. How can I create a installer which installs drivers and my application ? |
|
|
|