Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > FXLP2 and Virtual COM port example

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



FXLP2 and Virtual COM port example
Moderator:
RSKV

Post Reply
Follow this topic



FXLP2 and Virtual COM port example

Deni posted on 25 Nov 2010 1:41 PM PST
Member
6 Forum Posts

I've tried to download Virtual COM port example but it won't load WinXP driver.

Device enumerates (seemingly) correctly and then prompts for driver. I've pointed to the attached INF file, but WinXP can't load the driver. It's visible in the device manager as unknown(other) device.

Did anyone tried to test it? I've checked on two PC's - the same result...




Re: FXLP2 and Virtual COM port example

Deni posted on 26 Nov 2010 11:57 PM PST
Member
6 Forum Posts

I've forgot to mention - it's bassed on AN58764...



Re: FXLP2 and Virtual COM port example

inakic posted on 17 Dec 2010 07:28 AM PST
Member
3 Forum Posts

Hi.

Please check that the Device ID that you get from Cypress console matches the one you read on your INF file.

Probably they dont match. The easier way to solve this is just to change the INF file to match the one you have in your device. Then un-plug an re-plug again the device.

 

 

 



Re: FXLP2 and Virtual COM port example

Shub posted on 11 Jan 2011 03:11 AM PST
Cypress Employee
27 Forum Posts

Hi Deni,

 

You will need to add the VID PID information in the .inf file before pointing to the file for biding with the driver.

-shub



Re: FXLP2 and Virtual COM port example

kalohimal posted on 30 Mar 2011 11:22 PM PST
Member
4 Forum Posts

I have the same problem. As mentioned by the original poster, xp couldn't find any driver after selecting "CyUsbCOM.inf" as instructed in AN58764 (page 4).

In device manager, the device is identified as "EZ-USB FX2 Virtual COM port", with VID=04B4 & PID=4717.

CyUsbCOM.inf has the following content:

; Windows INF File for a USB virtual COM-port device
; in the communication devices class (CDC)


[Version]
Signature="$Windows NT$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%CYPRESS%
LayoutFile=layout.inf
DriverVer=08/17/2001,5.1.2600.0


[Manufacturer]
%MFGNAME%=Cypress
[DestinationDirs]
DefaultDestDir=12
DriverCopyFiles=12


[Cypress]
%DESCRIPTION%=DriverInstall, USB\VID_04B4&PID_4717&MI_00
[DriverInstall.nt]
include=mdmcpq.inf
CopyFiles=DriverCopyFiles
AddReg=DriverInstall.nt.AddReg
[DriverCopyFiles]
usbser.sys
[DriverInstall.nt.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,usbser.sys
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
[DriverInstall.nt.Services]
include=mdmcpq.inf
AddService=usbser, 0x00000002, DriverService
[DriverService]
DisplayName=%SERVICE%
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\usbser.sys
[Strings]
Cypress="Cypress COM Port"
MFGNAME="Cypress COM Port"
DESCRIPTION="USB COM Port"
SERVICE="USB COM-port Driver"



Re: FXLP2 and Virtual COM port example

kalohimal posted on 30 Mar 2011 01:17 AM PST
Member
4 Forum Posts

And here is the log entry from setupapi.log:

 

[2011/03/30 15:54:18 6320.4047]
#-198 Command line processed: "C:\WINDOWS\system32\mmc.exe" C:\WINDOWS\system32\devmgmt.msc /s
#I060 Set selected driver.
#-019 Searching for hardware ID(s): usb\vid_04b4&pid_4717&rev_0000,usb\vid_04b4&pid_4717
#-018 Searching for compatible ID(s): usb\class_02&subclass_02&prot_01,usb\class_02&subclass_02,usb\class_02
#-019 Searching for hardware ID(s): usb\vid_04b4&pid_4717&rev_0000,usb\vid_04b4&pid_4717
#-018 Searching for compatible ID(s): usb\class_02&subclass_02&prot_01,usb\class_02&subclass_02,usb\class_02
#-166 Device install function: DIF_SELECTBESTCOMPATDRV.
#W059 Selecting best compatible driver failed. Error 0xe0000228: There are no compatible drivers for this device.
#W157 Default installer failed. Error 0xe0000228: There are no compatible drivers for this device.
 



Re: FXLP2 and Virtual COM port example

kalohimal posted on 30 Mar 2011 02:01 AM PST
Member
4 Forum Posts

Ok I solved the problem. There seems to be an error in the CyUsbCOM.inf file that Cypress provide:

 

[Cypress]
%DESCRIPTION%=DriverInstall, USB\VID_04B4&PID_4717&MI_00

 

I removed the interface number "MI_00" and it worked:

 

[Cypress]
%DESCRIPTION%=DriverInstall, USB\VID_04B4&PID_4717

 

The driver is installed properly once this is done. :)



Re: FXLP2 and Virtual COM port example

kalohimal posted on 31 Mar 2011 12:30 AM PST
Member
4 Forum Posts

Just taken a closer look at AN58764 and the accompanying source code. The AN is, IMHO, quite badly done. It offers no explanation on the CDC, nor on the example source code. There are quite a lot of errors in the source code as well.






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: KXP; Secondary Owner: VWA; Sunset Date: 01/01/20