2025-03-07 7:24 AM
Hello!
I am working on Implementing a Uncompressed YUV2 Stream through the Windows Camera Application with an STM32H5 Series Board. I am looking for an example of these values, the HAL_PCDEx_PMAConfig Values, as these are what establish the USB payload buffer to send my images through a stream2.h file found in this project (https://github.com/STMicroelectronics/x-cube-azrtos-h7/tree/main/Projects/NUCLEO-H723ZG/Applications/USBX/Ux_Device_Video/Stream) . The H5 doesn't support USB-OTG, so I have been trying to find an example of a project that is a USBX Video that uses USB FS functionality. (The linked project uses USB-OTG so instead it uses HAL_PCDEx_SetRxFiFo/SetTxFifo to establish a payload)
These values worked with the stream1.h file from that same project linked above. However I am unable to change these values for a YUV2 stream to successfully stream.
HAL_PCDEx_PMAConfig(&hpcd_USB_DRD_FS, 0x00, PCD_SNG_BUF, 0x10);
HAL_PCDEx_PMAConfig(&hpcd_USB_DRD_FS, 0x80, PCD_SNG_BUF, 0x50);
HAL_PCDEx_PMAConfig(&hpcd_USB_DRD_FS,USBD_VIDEO_EPIN_ADDR , PCD_DBL_BUF, 0x01900090);
Any guidance?