-
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
cpu/stm32: fix KConfig modeling for STM32F1 / usbdev_synopsys_dwc2 #18741
Conversation
Murdock results✔️ PASSED ea53b35 cpu/stm32: fix KConfig modeling for STM32F1 / usbdev_synopsys_dwc2
ArtifactsThis only reflects a subset of all builds from https://ci-prod.riot-os.org. Please refer to https://ci.riot-os.org for a complete build for now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK.
cpu/stm32/Makefile.dep
Outdated
ifneq (,$(filter stm32f103%,$(CPU_FAM))) | ||
USEMODULE += usbdev_synopsys_dwc2 | ||
endif | ||
ifneq (,$(filter stm32f105%,$(CPU_FAM))) | ||
USEMODULE += usbdev_synopsys_dwc2 | ||
endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ifneq (,$(filter stm32f103%,$(CPU_FAM))) | |
USEMODULE += usbdev_synopsys_dwc2 | |
endif | |
ifneq (,$(filter stm32f105%,$(CPU_FAM))) | |
USEMODULE += usbdev_synopsys_dwc2 | |
endif | |
ifneq (,$(filter stm32f105% stm32f107%,$(CPU_FAM))) | |
USEMODULE += usbdev_synopsys_dwc2 | |
endif |
???
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
STM32F103 has to use periph/usbdev_fs
driver.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it also has to be CPU_MODEL
not CPU_FAM
:/ Another CI round 😢
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it also has to be
CPU_MODEL
notCPU_FAM
Oops, yes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like I'm getting erratic. But this time I think the fix is correct.
63a5754
to
763bb58
Compare
This fixes incorrect module selection for STM32F1 boards with feature periph_usbdev, a regression introduced by RIOT-OS#17812
763bb58
to
ea53b35
Compare
# MODULE_USBDEV_SYNOPSYS_DWC2 | ||
select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && !HAS_CPU_STM32WB && !HAS_CPU_STM32F3 && !HAS_CPU_STM32F1 | ||
# NOTE: In STM32F1 family STM32F105xx and STM32F107xx also use | ||
# MODULE_USBDEV_SYNOPSYS_DWC2. Add those MCUs once the are added to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At least STM32F105xC and STM32F107xC seem to be modeled already. They are not used by any board for the moment.
# In STM32F1 family STM32F105xx and STM32F107xx also use synopsys_dwc2 | ||
ifneq (,$(filter stm32f105% stm32f107%,$(CPU_MODEL))) | ||
USEMODULE += usbdev_synopsys_dwc2 | ||
endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uh cpu/stm32/periph/Makefile
will also need that fix
Let's do the remaining issues as follow up. Right now there are no boards with STM32F105xx and STM32F107xx MCU in RIOT, so this will not cause any issues for now. I will open a PR to address #18741 (comment) and #18741 (comment) right after the feature freeze. |
Actually, no need to wait: Follow up is #18742 |
Thx :) |
Contribution description
This fixes incorrect module selection for STM32F1 boards with feature periph_usbdev, a regression introduced by #17812
Testing procedure
In
master
This PR
Issues/PRs references
#17812