Skip to content

Fix isochonous IN endpoint transfers #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kaidokert
Copy link

For IN endpoint transfers, it's required to set EVEN/ODD frames
correctly. Otherwise 50% of the frames do not get delivered.

This is not well documented in STM manual ( RM0402 ) but is clearly present in stm32f4xx-hal-driver.

See USB_OTG_DIEPCTL_SODDFRM/USB_OTG_DIEPCTL_SD0PID_SEVNFRM in https://github.com/STMicroelectronics/stm32f4xx-hal-driver/blob/v1.8.4/Src/stm32f4xx_ll_usb.c

kaidokert added 2 commits May 26, 2025 08:36
For IN endpoint transfers, it's required to set EVEN/ODD frames
correctly. Otherwise 50% of the frames do not get delivered.
Add back a cortex-m feature, as usb-device depends on it
@kaidokert
Copy link
Author

Oh wow, i didn't check - #38 is already pending along with #29

Either way - this works here for the limited testing i've done on my microphone setup.

@kaidokert kaidokert marked this pull request as ready for review May 26, 2025 15:43
@kaidokert
Copy link
Author

Note this is still the root cause of kiffie/usbd-audio#4

A patch was landed in a fork esp-rs-compat#1 but not here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant