CyUSB.dll x64 OverflowException

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
biteapple
Level 1
Level 1
5 sign-ins First reply posted First question asked

我在基于.NET Framework 4.7.2使用CyUSB.dll(version3.4.7)的时候,在X86下运行正常,但在x64下运行不正常,会在USBDeviceList devices = new USBDeviceList(CyConst.DEVICES_CYUSB);报错System.OverflowException。具体信息如下:System.OverflowException
HResult=0x80131516
Message=算术运算导致溢出。
Source=CyUSB
StackTrace:
在 CyUSB.PInvoke.CountDevices(Guid g)
在 CyUSB.USBDevice.get_DeviceCount()
在 CyUSB.USBDeviceList..ctor(Byte DeviceMask, App_PnP_Callback fnCallBack)
..................

这个问题似乎与https://community.infineon.com/t5/USB-low-full-high-speed/CyUSB-dll-x64-OverflowException/m-p/211970...样,看题主的回复,最后也没有解决问题。请问如何处理,有没有更新的CyUSB.dll?

0 Likes
1 Solution
JiangJing
Moderator
Moderator
Moderator
First like given 250 sign-ins 250 replies posted

Hi,

          请确保您使用的CyUSB.dll的版本是1.2.3.0(C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\library\c_sharp\lib), 3.4.7.x版本约定用于与旧的Cypress驱动程序(CyUSB)相关的DLL和driver,该driver现已retired。1.2.3.x版本现在被用于与最新Cypress驱动程序(CyUSB3)相关的DLL和驱动程序文件。

View solution in original post

0 Likes
3 Replies
narolkarvarun
Moderator
Moderator
Moderator
5 likes given 100 solutions authored 250 replies posted

Hi Biteapple,

please down load Fx3 SDK from the Below path and install it:

https://www.infineon.com/cms/en/design-support/tools/sdk/usb-controllers-sdk/ez-usb-fx3-software-dev...

please use latest drivers from below path:

C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3

Thank You

Varun Narolkar

0 Likes

您好,我按照您给的链接下载了新的安装文件进行安装,并在C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\driver\bin\Win10\x64目录下找到驱动进行更新,但仍然报相同的错误,即会在USBDeviceList devices = new USBDeviceList(CyConst.DEVICES_CYUSB);这一句报错System.OverflowException。具体信息如下:System.OverflowException
HResult=0x80131516
Message=算术运算导致溢出。
Source=CyUSB
StackTrace:
在 CyUSB.PInvoke.CountDevices(Guid g)
在 CyUSB.USBDevice.get_DeviceCount()
在 CyUSB.USBDeviceList..ctor(Byte DeviceMask, App_PnP_Callback fnCallBack)
..................

您能否让软件工程师在win10+.NET Framework 4.7.2+CyUSB.dll(version3.4.7)+编译为x64程序条件下测试一下,确实会出现这样的错误。

https://community.infineon.com/t5/USB-low-full-high-speed/CyUSB-dll-x64-OverflowException/m-p/211970...个链接的问题一样,而且按照你们的方法也没有解决。

0 Likes
JiangJing
Moderator
Moderator
Moderator
First like given 250 sign-ins 250 replies posted

Hi,

          请确保您使用的CyUSB.dll的版本是1.2.3.0(C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\library\c_sharp\lib), 3.4.7.x版本约定用于与旧的Cypress驱动程序(CyUSB)相关的DLL和driver,该driver现已retired。1.2.3.x版本现在被用于与最新Cypress驱动程序(CyUSB3)相关的DLL和驱动程序文件。

0 Likes