USB HS problem when enable DMA for video stream
Hi,
i created a project to connect the STM32F407VGTX by USB High Speed to a PC. It is enumerated as a Camera in the device manager. When start the windows camera app or VLC the videostream (Format MJPEG 400x240 pixel) starts. I use two picture toggeling. I can close and open the camera app without any problem when DMA is disabled (usb_otg.c):
hpcd_USB_OTG_HS.Init.dma_enable = DISABLE;
Problem:
When I enable the DMA:
hpcd_USB_OTG_HS.Init.dma_enable = ENABLE;
It works only the first time. When the camera app is closed and start again it seems that the messages are not send.
Here a link to the complete project:
I attached the Wireshark file so you can see the commmunication.
Thanks a lot for your help!
STM32F407VGTX
PHY USB3310
STM32CubeIDE Version: 1.14.0
STM32CubeMX Version 6.10.0
