Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

variant(g4): Fix clock config of WeAct STM32G474CoreBoard#2619

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fpistm merged 2 commits intostm32duino:mainfromALTracer:fix/variant_WEACT_G474CE
Jan 6, 2025

Conversation

ALTracer
Copy link
Contributor

@ALTracerALTracer commentedJan 6, 2025
edited by fpistm
Loading

Summary

This PR fixes the following bugs:

  • HSE_VALUE defaulting to 24'000000 from hal_conf, override to 8'000000 in variant.h
  • USB clocksource was HSI48 without CRS, enable CRS

Not touching generic_clock.cpp, that looks fine (HSI16 div4 into 150 MHz and CRS HSI48). I would like to rename itsRCC_CRSInitTypeDef pInit toRCC_CRSInitStruct like in this patch but it's up to naming convention, not relevant to compiled code.
LPUART1 clocksource defaults to Pclk1, I think, no need to switch it to Sysclk or HSI or LSE (because LSE XTAL is behind DNI solderbridges).

Validation

  • Ensure CI build is passed.
  • Tested with Blink and RTT SpeedTest sketches, also USB Serial (CDC-ACM)

Code formatting

  • InvokedCI/astyle/astyle.py locally.

Closing issues

Follow-up to#2615

* Override HSE value to 8 MHz not 24* Keep PLL input above 2.66 MHz spec* Set VCO to a multiple of USB48 and feed that from PLL, sysclk becomes 144
* Enable CRS and switch USB to HSI48, decoupling it from PLL* Increase VCO multiplier to reach 170 MHz max spec
@fpistmfpistm self-requested a reviewJanuary 6, 2025 08:38
@fpistmfpistm added the fix 🩹Bug fix labelJan 6, 2025
@fpistmfpistm added this to the2.10 milestoneJan 6, 2025
Copy link
Member

@fpistmfpistm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM

@fpistmfpistm merged commit91b29fb intostm32duino:mainJan 6, 2025
24 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@fpistmfpistmfpistm approved these changes

Assignees
No one assigned
Labels
fix 🩹Bug fix
Projects
Milestone
2.10.0
Development

Successfully merging this pull request may close these issues.

2 participants
@ALTracer@fpistm

[8]ページ先頭

©2009-2025 Movatter.jp