USB superspeed peripherals Forum Discussions
Greetings,
The GX3 datasheet has maximum time for RESET# assertion. Why is this not infinite? Shouldn't I be able to assert the reset indefinitely?
In Table 18: Trst_pu min=0ms, Max=10ms.
Under Table 20. Reset Timing Parameters: "If the system applications require using hardware reset pin, RESET#, to reset GX3 during device initialization or normal operation after VBUS pin is asserted, the above timing spec (Min = 5 μs, Max =10 ms) of RESET# should be met."
Thanks
Show LessDear 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".
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:
I am not sure what happened. Looks like there is exception uncaught. Is there anyone meet this problem before?
Thanks
Chad
Show LessHello,
I have constructed data receiving module quote from the USBHost example, which is shown below.
In my test, first few minutes, it worked okay but it ends up with "CY_U3P_ERROR_INVALID_SEQUENCE" error which caused by CyU3PUsbHostEpSetXfer function.
FX3 API Guide says the error means "The endpoint is already active" but this is not enough for me.
Can you please explain in more detail in what case, does this error breakout?
Show LessCyU3PReturnStatus_t
CyFxMscRecvBuffer (
uint8_t *buffer,
uint16_t count)
{
CyU3PDmaBuffer_t buf_p;
CyU3PUsbHostEpStatus_t epStatus;
CyU3PReturnStatus_t status = CY_U3P_SUCCESS;
/* Setup the DMA for transfer. */
buf_p.buffer = buffer;
buf_p.count = 0;
buf_p.size = ((count + 0x0F) & ~0x0F);
buf_p.status = 0;
status = CyU3PDmaChannelSetupRecvBuffer (&glMscInCh, &buf_p);
if (status == CY_U3P_SUCCESS)
{
status = CyU3PUsbHostEpSetXfer (glMscInEp,
CY_U3P_USB_HOST_EPXFER_NORMAL, count);
}
if (status == CY_U3P_SUCCESS)
{
status = CyU3PUsbHostEpWaitForCompletion (glMscInEp, &epStatus,
CY_FX_MSC_WAIT_TIMEOUT);
}
if (status == CY_U3P_SUCCESS)
{
status = CyU3PDmaChannelWaitForCompletion (&glMscInCh, CYU3P_NO_WAIT);
}
if (status != CY_U3P_SUCCESS)
{
CyFxMscErrorRecovery ();
}
return status;
}
When multiple format descriptors are configured continuously having same sub type, CV test fails
Sample:
Using Y8 and Y16 format as format 1 and format 2 respectively.. No other formats used. In this configuration CV test fails with error in Input header descriptor as
Uncompressed Format Descriptor Test Errors:
The cy7c1062dv33 was used on the CYUSB3KIT-003 board that I have used and tested with. Now I am trying to develop my own board and the SRAM IC is obsolete. What would be the recommended SRAM IC to use? For context I am mostly using the synchronous 32 bit FIFO where the FPGA is only writing data to the CYUSB3014.
Show LessHello all
I am currently attempting to automate and a plug-in to the Cypress EZ USB Suite this is an older IDE version 2012
I keep getting a popup when attempting to connect to the marketplace
"Connection failed
This is most often caused by a problem with your internet connection. Please check your internet connection and retry.
Read timed out"
is there any way to direct this to the correct location. the build server I am on clearly has internet access as I am typing this email.
regards
joshua
Show LessHello all
i am currently trying to automate the build and compile of the Cypress EZ USB IDE and 3 associated projects.
At present I can open the IDE to a certain Workspace, but I cannot find a way to Clean, Build, Compile via Command Line.
Is there a reference document somewhere >?
thanks
joshua
Show LessHello,
I'm using the Cypress example code projects to try to get data from an accelerometer (ADcmXL3021). I'm using the UsbSpiDmaMode project, where I've merged GPIO functionality into it.
When I'm trying to communicate with the accerlerometer, I'm using SPI communication. The UsbSpiDmaMode already has functions set up for this; CyFxSpiTransfer (programmer application), which uses the two functions CyU3PSpiTransmitWords and CyU3PSpiReceiveWords.
Currently, I've tried making my own functions to write and read data over the SPI interface. They look as follows:
with startSampling() and readData().
As you can see I pass in 0x3E, 0x08, 0x00 as my input, which you can also read in the datasheet for the accelerometer are the registers that start recording data. The datasheet can be found here:
(where 0x3E is the address for GLOB_CMD and 0x08 (0x0800) is the address to start recording).
My output gives the same values, which implies that I'm using the functions incorrectly. Below, my data value (200 entries) are seen from the UART debugger:
It would obviously be best if I could use the given function, CyFxSpiTransfer, but I get stuck in the CyFxSpiWaitForStatus() function when I try using it with the call: CyFxSpiTransfer(0x003E, 0x0800, 4, CyFalse)
(I'm unsure what the 3rd parameter means (*buffer).
I've seen you're employee, juchong, has made a GitHub FX3 API which includes this accelerometer, but I can't seem to understand it and how it works (I'm new to this world). It's found here:
Moreover, can I use the CyU3PSpiTransferWords function to combine the two (transmit and recieve) into one? If so, that would be much better of course.
If you could tell me where I go wrong, in the calls of the given functions, it would help me out very much! I hope it's a simple fix. All I want to do is invoke the RTS mode (later the MFFT mode) of the ADcmXL3021 accelerometer, and get a single reading of the mode for each iteration call from the main function of my program (located in the AppThread_entry function). The AppThread_entry function looks like below:
Hope I've provided enough information, other please tell me if you need more information. I've also attached the C-file to this message.
Sincerely,
Søren
Show LessHi All,
I'm feeling very stupid asking this question, here goes. I'm using Visual Studio 2019, have used the functions in CyAPI.lib without any problem.
I'm now using CyU3PDeviceGpioOverride and CyU3PGpioSetSimpleConfig but these don't exist in CyAPI.lib.
So in a pure Windows environment how do I link with these functions or must I write them myself as they are overrides?
I've downloaded everything from the downloads page, still none the wiser.
Simon
Show LessDear Sir,
I designed a custom board with CY3014+FPGA for slavefifo stream-out function for printer purpose.
The config are : GPIF interface external PCLK 48Mhz,32bits,slave fifo out.
While testing,all works OK but sometimes my PC side application(C) showed a problem of transfer failed,err code =997 and could not send data anymore,once close program and re-run ,and it could send again.Unstable.
I verified it by download USBBulkLoopAuto.img to cy3014 , and tested by Bulk Loop.exe for loopback test , no problem .like pictures attached.(sorry,I found I have no permission to upload images yet).
So,means PC->driver->usb 3.0 cable ->CY3014 chip loop back are all normal.
Then,I switched back to my slavefifo.img and run Cypress Streamer.
At first,it worked fine,however, some minutes later, the receiving is stopped and the error message is "Xfer request rejected. NTSTATUS = c0000001".
The interface between CY3014 and FPGA are simple :
32bits data(could be ignored here before problem cleared).2 bits address.
/CS and /OE are GND.
PCLK= supplied by FPGA 48Mhz.
My side,only control /RD ,depend on FX3 /empty signal.
No matter controlled /RD signal,or simply treated /RD=!/EMPTY , all have problem as above red text.
One more clue,before I click steamer START,I select end point and it showed"BULK OUT,16384 bytes,15 maxburst"
Once problem occurred, the end point change back to default "IN...".
Any idea will be appreciated.
Thanks.
BR
Steven
Show Less