System clock configuration issue in STM32H573I-DK OEMiROT_Boot sample project #4
Labels
bug
Something isn't working
internal bug tracker
Issue confirmed and reported into a ticket in the internal bug tracking system
projects
Projects-related (demos, applications, examples) issue or pull-request.
Projects
Milestone
Hello,
It seems that there is an issue in the PLL1M configuration in Projects/STM32H573I-DK/Applications/ROT/OEMiROT_Boot/Src/system_stm32h5xx.c file SetSysClock() function. RCC_PLL1CFGR_PLL1M_Pos was used as the value.
STM32CubeH5/Projects/STM32H573I-DK/Applications/ROT/OEMiROT_Boot/Src/system_stm32h5xx.c
Line 298 in 3d723b2
Also, I think the values for reaching 250MHz should be like this:
Screenshot
![image](https://private-user-images.githubusercontent.com/86543823/257849585-5cd8af91-2a29-4540-a311-31d945124c29.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA4MzYwNTIsIm5iZiI6MTcyMDgzNTc1MiwicGF0aCI6Ii84NjU0MzgyMy8yNTc4NDk1ODUtNWNkOGFmOTEtMmEyOS00NTQwLWEzMTEtMzFkOTQ1MTI0YzI5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzEzVDAxNTU1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFmNTZhMmYzYjE1NWJjNDQzMmEwOTE4MDM5ZGJjZmFiZGVmMDE4NjAzMjMxNDVlNDBjMzRjYzhhNzhmYTE3MzMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.q7BY42X7BP5ZNhrHKjSxRa_wzXi0ai7YHAryYQiGqPY)
Furthermore, it might be better to use:
RCC_PLL1_VCORANGE_WIDE instead of RCC_PLL1VCOWIDE
RCC_PLL1_VCIRANGE_2 instead of RCC_PLL1CFGR_PLL1SRC_1
RCC_SYSCLKSOURCE_PLLCLK instead of (RCC_CFGR1_SW_1 | RCC_CFGR1_SW_0)
STM32CubeH5/Projects/STM32H573I-DK/Applications/ROT/OEMiROT_Boot/Src/system_stm32h5xx.c
Line 297 in 3d723b2
The text was updated successfully, but these errors were encountered: