USB superspeed peripherals Forum Discussions
text.format{('custom.tabs.no.results')}
Hi,
I am starting a new project based on FX3 configured as slave FIFO. I have read KBA223338 plus other references as part of design preparation.Still not clear about it. A SS BULK OUT + AUTO DMA channel will be set up for U2P byte transfers. How to ensure data is fully committed in case of smaller and larger loads than DMA buffers size?.
I am modifying my UVC descriptors to enable MJPEG streaming in addition to uncompressed but am encountering an error where the device cannot enumerate. Using USB Tree View, I cannot see the specific error being encountered, only that it is not enumerating. This started occuring once I started modifying the wTotalLength field of my Class-specific VS Interface Input Header Descriptor so I think my calculation for this value is correct. My current way to calculate that value is the following:
...
VC-Specific VS Video Input Header Descriptor (size=0x0F)
0x01 larger than with 1 format b/c 1 extra format
VS Uncompressed Format Type Descriptor (size=0x1B)
VS Uncompressed Frame Type Descriptor (size=0x1E)
VS Color Matching Descriptor Descriptor (size=0x06)
Video Streaming MJPEG Format Type Descriptor (size=0x0B)
Video Streaming MJPEG Frame Type Descriptor (size=0x1E)
VS Color Matching Descriptor Descriptor (size=0x06)
...
So I am calculating that the wTotalLength field should be 7D. Is this correct? I am not sure if the Color Matching descriptors should be included in wTotalLength field.
Thanks
Show LessA schematic diagram was drawn for the CYUSB3014 chip, and a PCB board was made. When using the USB interface B port to connect to the USB 3.0 interface of the computer, the driver download was completed, but the computer could not recognize the device. It is suspected that it is a hardware problem. Regarding my hardware configuration, as shown in the schematic, the I2C port power supply and JTAG are suspended, and I am not sure if there will be a problem. The mode configuration is selected as USB boot mode, but I am not sure why WIN11 cannot recognize the serial port.
Show Less
Hello, I am trying to get the CX3 working with a Time of Flight sensor. I believe I have everything configured properly but I am not seeing any DMA buffer call backs, or any kind of producer events triggering. I have summarized some high level information below:
- FX SDK Version: 1.3.5
- FW: Autogenerated FW from EZ USB Suite, configured for streaming on BULK endpoint, no UVC.
- MIPI Clock type: Gated
- MIPI Configuration:
- H blanking and V blanking are not filled in here as they do not affect the mipi configuration output. I measured the H blank time and the V blank time directly with a scope:
- Hblanking: 230 uS
- Vblanking: 9.29 mS
- My THS prepare and THS-zero times were measured directly using a scope so I am pretty confident in the value I have for PHY Time Delay.
- MIPI clock frequency from the imager confirmed directly with a scope.
Imager output:
My imager outputs its data one line at a time. Each line is comprised of 3 long packets filled with metadata (data type = 0x31) followed by 24 long packets of pixel data (RAW12), each long packet contains 8 pixels worth of data. An example is shown below:
There are 56 packet sets (3 metadata + 24 RAW12) per frame. As shown below:
Test process:
- Flash the CX3 RAM with my FW.
- Initialize MIPI block and apply interface settings with CyU3PMipicsiSetIntfParams
- Set PHY Time Delay with CyU3PMipicsiSetPhyTimeDelay and configure GPIF bus width:
- Call CyCx3AppStart(), configure imager, and then start MIPI stream.
UART log from startup using FW generated by EZ USB suite with small additions of some print statements:
UART log after starting MIPI stream with a print statement added to my thread entry for MIPI errors (code added for printing MIPI errors shown below):
As you can see, I am getting a bunch of Multi data lane sync errors and an occasional FrmErr.
I have tried tuning my PHY delay time and I can’t really make things better than this. I can produce more errors when I set PHY delay time below 6 or so. But I never get less errors than what is shown above. I also never see a DMA call back or any producer events.
I have confirmed that the layout of my board is up to MIPI specifications in terms of inter lane length differences, total trace length, and differential pair impedance. I am at a loss for what the issue could be here…
Any assistance on this issue would be greatly appreciated. I have attached my full project for your review. Please note that all imager configuration code is handled outside of the CX3 so you will not see any code for that in the CX3 FW.
Show Less1、SEGGER-Jlink时无法打断点
我在配置好JTAG后,将程序下载到RAM中后可以运行,但无法打断点和暂停。我是用的SDK包时1.3.5,基于cycx3_uvc_ov5640工程进行的修改。DEBUG配置如下
2、我基于cyfxuartlpregmode工程在cycx3_uvc_ov5640中创建了串的收发,主要配置代码如下
CyU3PDmaChannelSetupSendBuffer这个函数在使用debug的时候出现了67的错误,请问这是什么原因导致的呢?并且,我想询问一下,在任何USB设备下,假如某一个端点设置成INT模式,主机是否会轮询这个端点,从而每当此端点有数据的时候,在主机的轮询下就会发送给主机??我需要完成这个功能,但是我的代码配不出这种效果,请大家帮助我。谢谢
Show Less我想对CyBootprogrammer.img这个固件新加一条命令,所以我想知道这个固件的源码在哪里
Hello,
I am searching for a solution, for my task.
I want transfer a video signal from USB 3 to a 24 bit RGB-signal for a display. At first glance the EZ-USB™ FX3 chip seems to be suitable, but is it really possible?
I'm not sure, I found only a solution in the other direction (from a Image Sensor to the Host).
I'm new to the subject, so I was searching for a long time, but I haven't found a solution. If it works upstream, why shouldn't it work downstream too?
Can you tell me whether it works and how? If yes, can you send me any instructions or user guides?
Thanks and Best Regards
Jakob
Unit has been in production for 6 years. Device will be listed in the Device Manager with Intel(R) 3.0 eXtensible Host controller. But has sporadic link training with Intel(R) 3.1 eXtensible Host controller or 3.2.
Show LessHi.
I use the cyusb3014 in slavefifo mode to connect with the fpga chip, and after the power up , the system works well, but if i send vendor command to soft reset the cyusb3014, then i find that the cyusb3014 can reset and re-enumeration normally , but i can not transfer data through cyusb3014 anymore both in in and out direction, it seems the slavefifo mode of cyusb3014 does not work again.
The below is the code of soft rest in cyusb3014, the code is in function SlFifoAppThread_Entry, and i can send vendor command to set the flag of glResetDevice to true.
if (glResetDevice)
{
/* Disconnect from the USB host and reset the device. */
glResetDevice = CyFalse;
CyU3PThreadSleep (1000);
CyU3PConnectState (CyFalse, CyTrue);
CyU3PThreadSleep (1000);
CyU3PDeviceReset (CyFalse);
for (;;);
}
I wonder how to fix it, if i want to reset cyusb3014 and the slavefifo mode work normally?
smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/%E8%B6%85%E9%AB%98%E9%80%9FUSB%E5%A4%96%E8%AE%BE/Why-does-the-slavefifo-transfer-not-work-after-the-soft-reset-of-the-cyusb3014/td-p/500478
Show Less