Skip to content

Conversation

dojyorin
Copy link
Contributor

@dojyorin dojyorin commented Aug 29, 2024

Pull Request template

Please, Make sure that your PR is not a duplicate.
Search among the Pull request before creating one.

IMPORTANT: Please review the CONTRIBUTING.md file for detailed contributing guidelines.

Thanks for submitting a pull request.
Please provide enough information so that others can review your pull request:

Summary

This PR fixes/implements the following bugs/features

  • ADC/DAC input clock is too high
  • LPUART clock is low
  • Optimize PLL ratio
  • There were no plans to change LPUART, but since it will be lower than current value when I fix ADC/DAC problem, I changed it as described in Incorrect clock settings for NUCLEO-H563ZI #2505.
  • By setting SRC / M = 2 N = 250 for PLL1/2/3 you can flexibly determine clock source frequency and easily calculate division P/Q/R.

e.g. Generic boards and NUCLEO-H563ZI are portable by simply changing value of PLLM.

CubeMX Screenshots
  • for H563ZI
    image

Validation

  • Ensure CI build is passed.
  • Demonstrate the code is solid. [e.g. Provide a sketch]

Code formatting

  • Ensure AStyle check is passed thanks CI

Closing issues

Fixes #2505

@dojyorin dojyorin changed the title Fix H563ZI clock config. (#3) Fix H563ZI clock config. Aug 29, 2024
@fpistm fpistm self-requested a review September 2, 2024 08:44
@fpistm fpistm added the enhancement New feature or request label Sep 2, 2024
@fpistm fpistm added this to the 2.9.0 milestone Sep 2, 2024
Copy link
Member

@fpistm fpistm left a comment

Choose a reason for hiding this comment

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

Clock config is not correct.

Remove all HSI usage. Fix ADC/DAC clock frequency (125MHz). Signed-off-by: Kazuki Ota <ota_droid@live.jp> Co-Authored-by: Frederic Pillon <frederic.pillon@st.com>
@fpistm fpistm merged commit 56655f3 into stm32duino:main Sep 3, 2024
23 checks passed
fpistm added a commit to dojyorin/Arduino_Core_STM32 that referenced this pull request Sep 3, 2024
Complement of stm32duino#2506 Signed-off-by: Kazuki Ota <ota_droid@live.jp> Co-Authored-by: Frederic Pillon <frederic.pillon@st.com>
fpistm added a commit that referenced this pull request Sep 3, 2024
Complement of #2506 Signed-off-by: Kazuki Ota <ota_droid@live.jp> Co-Authored-by: Frederic Pillon <frederic.pillon@st.com>
@dojyorin dojyorin deleted the fix-h563zi-clock branch March 19, 2025 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
2 participants