- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
-
Hardware
-
host: tinker board 2s(rk3399),kernel 5.13
-
slave: sg130gs(1280*720, YUYV, 30fps) + fpga(spartan 6) + cyusb3014, isochronous mode
-
-
Problem
-
Run this script on host
#!/bin/bash
while :
do
yavta -c30 /dev/video0
sleep 2
yavta -c30 /dev/video1
sleep 2
done -
After random time(from minutes to hours), one of these cameras would be stuck
-
USB packets captured by tcpdump indicate that the host keeps polling(isochronous) the slave while the slave keeps responding with a data packet with zero-length
-
After this, if I restart the test script, the device that is stuck will be missed
-
-
some trials on other settings also failed
-
ov5640(1280*720, YUYV,30fps) + cyusb3014, bulk mode
-
sg130gs(1280*720, YUYV, 30fps) + fpga(spartan 6) + cyusb3014, bulk mode
-
-
In addition, test with a single camera is fine
Any ideas? thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Thank you for confirming that the issue was not seen when CyU3PSysEnterSuspendMode was commented out from the firmware.
Please note that commenting out the CyU3PSysEnterSuspendMode will not allow the device to go to low power mode when USB host sends a suspend. The device will come out of the suspend state only when there is some activity on bus (CY_U3P_SYS_USB_BUS_ACTVTY_WAKEUP_SRC). Commenting out the CyU3PSysEnterSuspendMode will not cause any harm.
In addition to this, we do not recommend to call CyU3PSysEnterSuspendMode when JTAG debugging is done. Please refer to this KBA https://community.infineon.com/t5/Knowledge-Base-Articles/Segger-J-Link-Known-Issues-with-FX3-CX3-FX...
To check how is CyU3PSysEnterSuspendMode affecting, please share the UART prints for the following conditions:
- CYUSB3KIT-003 - CyU3PSysEnterSuspendMode (not commented off) - JTAG debugging not done
- CYUSB3KIT-003 - CyU3PSysEnterSuspendMode (commented off) - JTAG debugging not done
Rashi