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

stm32: set USB clock source to PLLQ for STM32G0B0 #5341

Merged
merged 1 commit into from
Mar 9, 2022

Conversation

bigtreetech
Copy link
Contributor

  • The USB clock source of STM32G0B0 have not HSI48 but only PLLQ, So we set the USB clock source to PLLQ. In this way, both STM32G0B0 and STM32G0B1 can use the same firmware.bin file

Signed-off-by: Alan.Ma from BigTreeTech [email protected]

Signed-off-by: Alan.Ma from BigTreeTech [email protected]
@KevinOConnor KevinOConnor merged commit d75154d into Klipper3d:master Mar 9, 2022
@KevinOConnor
Copy link
Collaborator

Thanks. I committed this along with 4ce2d37 on top.

Separately, this sets USBSEL=2 which is in contrast to the reference manual https://www.st.com/resource/en/reference_manual/rm0444-stm32g0x1-advanced-armbased-32bit-mcus-stmicroelectronics.pdf which states USBSEL=1 should be used to enable PLLQCLK. In the past I tried enabling the PLLQ for USB and could never get it to work - I guess this is why. Do you have any further information on this discrepancy?

-Kevin

@bigtreetech bigtreetech deleted the stm32g0b0-usb branch March 11, 2022 08:18
@github-actions github-actions bot locked and limited conversation to collaborators Mar 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants