-
Notifications
You must be signed in to change notification settings - Fork 2k
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
pkg/tinyusb: fix USB speed selection for STM32 boards with HS PHY #18926
Merged
benpicco
merged 3 commits into
RIOT-OS:master
from
gschorcht:pkg/tinyusb_fix_speed_stm32
Nov 18, 2022
Merged
pkg/tinyusb: fix USB speed selection for STM32 boards with HS PHY #18926
benpicco
merged 3 commits into
RIOT-OS:master
from
gschorcht:pkg/tinyusb_fix_speed_stm32
Nov 18, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gschorcht
requested review from
aabadie,
fjmolinas,
DipSwitch and
vincent-d
as code owners
November 17, 2022 13:21
github-actions
bot
added
Area: cpu
Area: CPU/MCU ports
Area: pkg
Area: External package ports
Platform: ARM
Platform: This PR/issue effects ARM-based platforms
labels
Nov 17, 2022
gschorcht
added
Type: bug
The issue reports a bug / The PR fixes a bug (including spelling errors)
Impact: minor
The PR is small in size and might only require a quick look of a knowledgeable reviewer
CI: ready for build
If set, CI server will compile all applications for all available boards for the labeled PR
labels
Nov 17, 2022
benpicco
approved these changes
Nov 17, 2022
sure! |
Oops, the error in Murdock is completely unrelated to this PR 🤔 How can this happen? |
gschorcht
requested review from
smlng,
leandrolanzieri and
MichelRottleuthner
as code owners
November 18, 2022 06:33
I pushed a fix for it as part of this PR. |
gschorcht
added
CI: ready for build
If set, CI server will compile all applications for all available boards for the labeled PR
and removed
CI: ready for build
If set, CI server will compile all applications for all available boards for the labeled PR
labels
Nov 18, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Area: cpu
Area: CPU/MCU ports
Area: pkg
Area: External package ports
Area: tests
Area: tests and testing framework
CI: ready for build
If set, CI server will compile all applications for all available boards for the labeled PR
Impact: minor
The PR is small in size and might only require a quick look of a knowledgeable reviewer
Platform: ARM
Platform: This PR/issue effects ARM-based platforms
Type: bug
The issue reports a bug / The PR fixes a bug (including spelling errors)
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Contribution description
This PR again fixes the USB speed selection for STM32 boards with HS PHY, which was still incorrect with PR #18906. It fixes also the problem after
CLOCK_HSE
has been renamedCONFIG_CLOCK_HSE
.If the HS port of the STM32 is used together with a HS-PHY enabled by the module
periph_usbdev_hs_utmi
orperiph_usbdev_hs_ulpi
,OPT_MODE_HIGH_SPEED
must be set asCFG_TUSB_RHPORT1_MODE
. Otherwise the built-in on-chip FS-PHY is used andOPT_MODE_DEFAULT_SPEED
should be set asCFG_TUSB_RHPORT1_MODE
.Using
CFG_TUD_MAX_SPEED
for this selection, as provided in PR #18906, works forstm32f429i-disc1
where the HS port is used with the on-chip FS PHY, but not for boards such asstm32f746g-disco
orstm32f723e-disco
where the HS port is used with an HS PHY.Testing procedure
The HS port should work for all three mentioned boards with this PR:
Without this PR, the test works for
stm32f429i-disc1
but not forstm32f723e-disco
andstm32f746g-disco
Issues/PRs references
Fixes PR #18906