There is a exception when I start the Control Center in EZ-USB suite

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

cross mob
Ascs_4819156
Level 3
Level 3
10 replies posted 10 sign-ins 5 replies posted

Dear sir,

I am debugging the CY3014. Now the firmware is stream example, and I also enable the CDC.

When I tring to control it in control center, I got an Error dialog about the ".net framework".

Error dialogError dialog

about the details:

有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。

************** 异常文本 **************
System.NullReferenceException: 未将对象引用设置到对象的实例。
在 CyUSB.CyUSBInterface.get_Tree()
在 CyUSB.CyUSBConfig.get_Tree()
在 CyUSB.CyUSBDevice.get_Tree()
在 CyControl.Form1.RefreshDeviceTree()
在 CyUSB.USBDeviceList.PnP_Event_Handler(IntPtr pnpEvent, IntPtr hRemovedDevice)
在 CyUSB.MsgForm.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** 已加载的程序集 **************
mscorlib
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.9151 (WinRelRS6.050727-9100)
基本代码: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
mscorlib.resources
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.9151 (WinRelRS6.050727-9100)
基本代码: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
CyControl
程序集版本: 1.2.3.0
Win32 版本: 1.2.3.0
基本代码: file:///D:/Program%20Files%20(x86)/Cypress/EZ-USB%20FX3%20SDK/1.3/bin/CyControl.exe
----------------------------------------
System.Windows.Forms
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.9136 (WinRelRS6.050727-9100)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.9147 (WinRelRS6.050727-9100)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.9136 (WinRelRS6.050727-9100)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
CyUSB
程序集版本: 1.2.3.0
Win32 版本: 1.2.3.0
基本代码: file:///D:/Program%20Files%20(x86)/Cypress/EZ-USB%20FX3%20SDK/1.3/bin/CyUSB.DLL
----------------------------------------
System.Windows.Forms.resources
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.9136 (WinRelRS6.050727-9100)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** JIT 调试 **************
要启用实时(JIT)调试,
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
jitDebugging 值。
编译应用程序时还必须启用
调试。

例如:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

启用 JIT 调试后,任何无法处理的异常
都将被发送到在此计算机上注册的 JIT 调试器,
而不是由此对话框处理。

 

If I closed this dialog, and try to run the Control center again, the Control Center could not run.

There is another warning:

02.png

I am not sure what happened. Looks like there is exception uncaught. Is there anyone meet this problem before?

Thanks

Chad

0 Likes
1 Solution
YiZ_31
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

So can you try the firmware attched in this KBA which is slavefifo+CDC? I think it may be your firmware that caused this. 

https://community.cypress.com/t5/Knowledge-Base-Articles/Adding-Communication-Device-Class-Interface...

 

View solution in original post

0 Likes
6 Replies
YiZ_31
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hi,

 

Are you trying to use the streamer C++ application? There are no firmware in SDK called streamer. In this situation, I suggest you check the Windows environmet. The C++ application contained in FX3 SDK contains source code which can be run in most of the Windows PC.

0 Likes

Sorry, it is my mistake.

I means I used this example"EZ-USB FX3 SDK\1.3\firmware\basic_examples\cyfxgpiftousb", and the device will be "Cypress FX3 USB StreamerExample Device". And based on this example, I add the CDC according to the offical method.

Thanks

Chad

0 Likes
YiZ_31
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hi Chad,

 

Can you successfully send data to bulk out endpoint before you add the CDC interface?  Or can you try other firmware in the SDK like BulkSourceSink?

0 Likes

Thanks for your reply.

Yes, I can send data to bulk out endpoint without CDC interface.

Is this problem possible with the Operating System?

Thanks

Chad

0 Likes
YiZ_31
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

So can you try the firmware attched in this KBA which is slavefifo+CDC? I think it may be your firmware that caused this. 

https://community.cypress.com/t5/Knowledge-Base-Articles/Adding-Communication-Device-Class-Interface...

 

0 Likes

Thanks, I will try your KBA and re-check my code later. Now I am busying with other functions.

Thanks again.

0 Likes