slerpxcq / openuac2_fw

STM32F446 USB Audio Class 2 USB-I2S Bridge
31 stars 9 forks source link

Stm32 skipping packets in a similar projects #2

Open sx107 opened 4 weeks ago

sx107 commented 4 weeks ago

Hi! I am making something similar on stm32h750 based on your project (I'll open source it once I'll be finished with it, the idea is to add several inputs/outputs), but I have issues with skipping packets even at 32bit / 48kHz at some USB ports that don't have anything high-bandwidth plugged. Did you encounter these issues as well? Did you modify anything in the stm32 usb library core and drivers?

slerpxcq commented 4 weeks ago

Hi, I have never implement this on H750. The core driver is not modified. I have heard the cache is causing some USB issues on H7 chips, maybe you can try to disable the cache?

sx107 commented 4 weeks ago

Yes, I've already fixed that (the cache). Enabling USB DMA slightly made the situation better. Guess I'll dig into it some more. Thank you very much for your answer!

sx107 commented 3 weeks ago

I will order a pcb with your project, but I've got to ask first: Did you have any similar problems? With STM32 straight up missing packets when they are sent in one SOF. Linux, for example, or "bad" usb ports seem to send 2-6 packets in one SOF and then silence. Did you observe similar behaviour? Or just that on some ports your project does not work?