Solution: FX3 USB3.0 slavefifosync mode will interrupt transmission when the usb cable is too long

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

cross mob
chinanier
Level 1
Level 1
First question asked Welcome!

dma uses auto mode, and the dma data link is configured as follows
gpif(FPGA)->CY_U3P_PIB_SOCKET_1->CY_U3P_UIB_SOCKET_CONS_1

 

The usb ports are defined as follows:
#define CY_FX_EP_PRODUCER 0x01 /* EP 1 OUT */
#define CY_FX_EP_CONSUMER 0x81 /* EP 1 IN */

 

Use the tool streamer that comes with fx3 sdk to perform data acquisition test. When the usb extension cable is short enough, the acquisition test is normal; when the usb extension cable is lengthened to 5 meters, the streamer starts to report an error after collecting for a period of time, and no data can be collected after that.

streamer异常.jpg

By reading the DMA Socket and Descriptor Registers, it is found that the UIB status register (SCK_STATUS) is automatically set to 0x04e00000,But the PIB P-PORTDMA register seems to be normal.

寄存器异常.jpg

When the usb extension cable is too long, what should my program do to transmit data normally (allowing to reduce the transmission speed)?

0 Likes
1 Solution
JayakrishnaT_76
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hello,

Please refer to the following KBA:

https://community.infineon.com/t5/Knowledge-Base-Articles/Maximum-Cable-Length-of-USB-3-0-KBA87012/t...

We recommend to use a certified USB cable of less than 3m length for data transmission. However, you can extend the length by using USB 3.0 hubs or active repeater cables as mentioned in the above KBA.

Best Regards,
Jayakrishna

View solution in original post

0 Likes
1 Reply
JayakrishnaT_76
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hello,

Please refer to the following KBA:

https://community.infineon.com/t5/Knowledge-Base-Articles/Maximum-Cable-Length-of-USB-3-0-KBA87012/t...

We recommend to use a certified USB cable of less than 3m length for data transmission. However, you can extend the length by using USB 3.0 hubs or active repeater cables as mentioned in the above KBA.

Best Regards,
Jayakrishna
0 Likes