STM32N6570-DK Ux_Host_VIDEO example not working with UVC cameras (e.g. Logitech C270)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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.
Test Environment:
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:
if (payload_size >= max_payload_size)causes only a few alternate settings (e.g., >= 7) to be selected, but those don’t work either.
Questions:
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?
- Some UVC alternate settings use high-bandwidth isochronous endpoints with multiple transactions (wMaxPacketSize > 1024). Are these supported in the Ux_Host_VIDEO example?
Let me know if I should share logs or control packet dumps. Any help would be greatly appreciated.
Thanks!
- Labels:
-
STM32N6 Series
