hathach / tinyusb

An open source cross-platform USB stack for embedded system
https://www.tinyusb.org
MIT License
5.11k stars 1.07k forks source link

ST Synopsys port lacks SOF support #1684

Open battlesnake opened 2 years ago

battlesnake commented 2 years ago

Related area

ST Synopsys port

Hardware specification

Cortex M7, STM32H750, USB3300, custom board

Is your feature request related to a problem?

The port currently lacks support for USB SOF frames.

Describe the solution you'd like

I will provide a PR with my proposed solution

I have checked existing issues, dicussion and documentation

battlesnake commented 2 years ago

PR: https://github.com/hathach/tinyusb/pull/1685

PanRe commented 2 years ago

Just a short question, the driver in portable/synopsis/dwc2 does not work for you?

battlesnake commented 2 years ago

I didn't use try it. I didn't find info in the docs about which port(s) to use, so I tried st/synopsys (since using ST part), and it worked after adding the SOF feature.

battlesnake commented 2 years ago

Besides (presumably) supporting SOF already, what are other differences of that synopsys/dw2 port vs. st/synopsys?

PanRe commented 2 years ago

It fuses the device driver for multiple MCUs as far as i know. I don't know why the st/synopsis driver is still there, maybe due to backward compatibilities.

battlesnake commented 2 years ago

Thanks, I'll give it a try in an hour or so [once I've hopefully got UAC2 interrupt endpoint working and delivering control-change messages to the host].

battlesnake commented 2 years ago

Using synopsis/dwc2, I get into a crash-loop. Almost certainly due to configuration on my side though.

I'll go back to using st/synopsys for now. Once I've got my UAC2 interrupt status endpoint working, then I'll try synopsys/dwc2 again and see if I can either fix the issue in my code, or file a PR if it's due to a bug in tinyusb.