STMicroelectronics / STM32CubeH5

Full firmware package for STM32H5 series containing CMSIS, HAL-LL, BSP drivers, MW libraries plus a set of projects.
https://www.st.com/en/embedded-software/stm32cubeh5.html
Other
39 stars 9 forks source link

System clock configuration issue in STM32H573I-DK OEMiROT_Boot sample project #4

Open CuriousSaman opened 11 months ago

CuriousSaman commented 11 months ago

Hello, It seems that there is an issue in the PLL1M configuration in _Projects/STM32H573I-DK/Applications/ROT/OEMiROT_Boot/Src/systemstm32h5xx.c file SetSysClock() function. RCC_PLL1CFGR_PLL1M_Pos was used as the value. https://github.com/STMicroelectronics/STM32CubeH5/blob/3d723b2467cdb13c2d780ceaa583b269680b67a4/Projects/STM32H573I-DK/Applications/ROT/OEMiROT_Boot/Src/system_stm32h5xx.c#L298

Also, I think the values for reaching 250MHz should be like this:

Screenshot image

Furthermore, it might be better to use: _RCC_PLL1_VCORANGEWIDE instead of _RCCPLL1VCOWIDE _RCC_PLL1_VCIRANGE2 instead of _RCC_PLL1CFGR_PLL1SRC1 _RCC_SYSCLKSOURCEPLLCLK instead of _(RCC_CFGR1_SW_1 | RCC_CFGR1_SW0)

https://github.com/STMicroelectronics/STM32CubeH5/blob/3d723b2467cdb13c2d780ceaa583b269680b67a4/Projects/STM32H573I-DK/Applications/ROT/OEMiROT_Boot/Src/system_stm32h5xx.c#L297

HBOSTM commented 11 months ago

ST Internal Reference: 158775