iliasam / STM32_HOST_UVC_Camera

Example of connecting USB Web camera to STM32F4 USB HOST
http://we.easyelectronics.ru/STM32/zahvat-izobrazheniya-s-usb-kamery-pri-pomoschi-stm32.html
GNU Lesser General Public License v3.0
137 stars 64 forks source link

The descriptor read by STM32 not same as read by PC, YUY2 not detected #8

Open jinfeng-zhuang opened 2 years ago

jinfeng-zhuang commented 2 years ago

Hi Thanks for your code, but while class started, always receive USB_OTG_GINTSTS_PXFR_INCOMPISOOUT interrupt and SOF interrupt. No frame received. Another issue is descibe in title.

iliasam commented 2 years ago

"descriptor read by STM32 not same as read by PC" Looks like PC is using usb 2.0 (high speed), while STM32 supports only USB1.1 (full speed). Descriptors could be different for FS and HS mode. Some cameras do not work n FS mode correctly. You can try to switch USB of your PC to USB1.1 in BIOS and check if camera could work in YUY2 in FS mode.