2025-06-16 10:57 PM - edited 2025-06-16 11:03 PM
Hello,
I'm trying to run the Ux_Host_VIDEO example from STM32CubeN6 on the STM32N6570-DK board, but UVC camera streaming does not work. The USB device is detected, but no video stream starts.
Board: STM32N6570-DK
Example: Ux_Host_VIDEO (from STM32CubeN6 package)
IDE: STM32CubeIDE 1.18.1
Camera models tested: Logitech C270
Connection: USB-C OTG (HS) port using USB-A adapter
USB host stack detects the device and logs:
**** USB OTG HS in HS VIDEO Host ****
USB Host Video library started.
Starting VIDEO Application
Connect your VIDEO Device
USB Video Device Inserted
PID: 0x825
VID: 0x46d
USB Video Host App...
Video Device is ready...
No streaming happens after that.
Function _ux_host_class_video_alternate_setting_locate() filters out most alternate settings.
The condition:
causes only a few alternate settings (e.g., >= 7) to be selected, but those don’t work either.
Has anyone successfully tested this example with a specific UVC camera model?
Why is the payload size condition (payload_size >= max_payload_size) required? Can I safely bypass it?
What’s the correct way to manually select an alternate setting or override wMaxPacketSize?
Is there any known issue with Logitech C270 compatibility in USBX Ux_Host_VIDEO?
Let me know if I should share logs or control packet dumps. Any help would be greatly appreciated.
Thanks!