Skip to content
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

STM32F7: correct USB_HS_PHYC_TUNE configuration #2380

Closed
wants to merge 1 commit into from

Conversation

davekeck
Copy link

@davekeck davekeck commented Dec 16, 2023

Fix issue #2374 by assigning USB_HS_PHYC_TUNE to the magic value, instead of performing a bitwise-or.

Previously, the bitwise-or caused the default value of the LFSCAPEN bit (bit 2) to be retained, where LFSCAPEN is described by the reference manual as:

LFSCAPEN: Enables the Low Full Speed feedback capacitor.

This capacitor interferes with the D+/D- signals (which makes sense because it appears to be intended for low/full-speed mode, but we're in high-speed mode), which breaks USB comms with ARM-based Macs.

@davekeck
Copy link
Author

This PR was premature, see comments in issue #2374.

@davekeck davekeck closed this Dec 16, 2023
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.

None yet

1 participant