stm32duino / Arduino_Core_STM32

STM32 core support for Arduino
https://github.com/stm32duino/Arduino_Core_STM32/wiki
Other
2.85k stars 979 forks source link

Optimize H573RI/H503KB/H503RB clock config. #2507

Closed dojyorin closed 2 months ago

dojyorin commented 2 months ago

Basically same as "Optimize PLL ratio" in #2506.

Summary

This PR fixes/implements the following bugs/features

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.

CubeMX Screenshots - for H503KB/H503RB ![image](https://github.com/user-attachments/assets/8e44616c-eb6d-4a9e-aab4-26c23b7dc6c3) - for H573RI ![image](https://github.com/user-attachments/assets/732b20cc-ecf8-4099-8254-152f99cf04ed)