• AVR Freaks

Answered[Solved] How to get PIC32 USB to use Windows built in CDC driver

Author
LostInSpace
Super Member
  • Total Posts : 269
  • Reward points : 0
  • Joined: 2016/03/11 22:47:59
  • Location: 0
  • Status: offline
2017/07/09 15:19:21 (permalink)
0

[Solved] How to get PIC32 USB to use Windows built in CDC driver

Hello All - I have gotten the CDC Com Port Single demo to work with My PIC32MZ-EF device and I started my own project and have that working fine. Device enumerates a Com port and I can talk to it. This is on my development computer. When I take my board to another computer and plug it in it starts looking for a driver (That driver appears to be on my development computer because I have MPLAB-X, etc. Installed). I can find the Microchip driver (INF files) and sure I can give this to my users, but that isn't as clean as I would like it.
 
Isn't there some project setting(s) that will make my device look 'generic' to Windows so that when I plug it in it will use the Windows built in CDC driver and where I don't have have a separate driver for my users?
 
Thanks for the help.
post edited by LostInSpace - 2017/07/09 17:10:27
#1
jtemples
عُضْوٌ جَدِيد
  • Total Posts : 11396
  • Reward points : 0
  • Joined: 2004/02/13 12:31:19
  • Location: Southern California
  • Status: offline
Re: How to get PIC32 USB to use Windows built in CDC driver 2017/07/09 15:49:34 (permalink) ☼ Best Answerby LostInSpace 2017/07/09 17:10:38
4.67 (3)
On Windows 10, yes.  It recognizes CDC without prompting for a driver.
 
Earlier Windows versions require a .inf.  I don't know anything about Windows driver development, but I would imagine you could get some sort of signed driver that's registered with Windows Update that handles it transparently.  But it's probably not free.
 
I think HID is the only option for earlier versions if you don't want to have a driver prompt.
#2
newfound
Super Member
  • Total Posts : 1849
  • Reward points : 0
  • Joined: 2003/11/07 12:35:49
  • Status: offline
Re: How to get PIC32 USB to use Windows built in CDC driver 2017/07/09 16:47:37 (permalink)
4 (1)
And windows 8 understands an extended microsoft descriptor set that you may be able to enable in the framework (I don't know if it is present or not). Any version of Windows prior to that then you need the .inf file. 
#3
LostInSpace
Super Member
  • Total Posts : 269
  • Reward points : 0
  • Joined: 2016/03/11 22:47:59
  • Location: 0
  • Status: offline
Re: How to get PIC32 USB to use Windows built in CDC driver 2017/07/09 17:09:53 (permalink)
3 (1)
Oh, thanks folks that makes sense. I found some Microsoft info that says for Win 10,
 
Set: USB-IF class code = Communications and CDC Control (02h) to use the built in driver.
 
Now that makes sense.
 
I appreciate the help! :-)
 
Edit: I also found that Microchip puts the INF files in a nice convenient place,
 
C:\microchip\harmony\v1_11\apps\usb\device\cdc_com_port_single\inf
post edited by LostInSpace - 2017/07/09 19:29:42
#4
RISC
Super Member
  • Total Posts : 5379
  • Reward points : 0
  • Status: offline
Re: How to get PIC32 USB to use Windows built in CDC driver 2017/07/10 11:49:55 (permalink)
4 (1)
Hi,
It took 15 years to Microsoft to fix their USBSER.SYS file...which was also the reason why .inf file was needed
http://www.solvusoft.com/en/files/bsod-blue-screen-error/sys/windows/microsoft/msdn-disc-0947/usbser-sys/
Regards
#5
Jump to:
© 2019 APG vNext Commercial Version 4.5