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 CCS Technical Support

Driver Problem and Installer

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



Joined: 03 Mar 2017
Posts: 4

View user's profile Send private message Send e-mail

Driver Problem and Installer
PostPosted: Fri Mar 03, 2017 3:59 am     Reply with quote

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 Smile
Ttelmah



Joined: 11 Mar 2010
Posts: 19552

View user's profile Send private message

PostPosted: Fri Mar 03, 2017 4:44 am     Reply with quote

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

View user's profile Send private message Send e-mail

PostPosted: Fri Mar 03, 2017 8:39 am     Reply with quote

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 ?
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