2023-01-08 09:53 PM
Hello, I have a stm32wb55 nucleo board,
I want to know that whats is the logic behind that , In reference manual it says
After a system reset, the MSI oscillator, at 4 MHz, is selected .
Lets say I want to use HSI or HSE for specific application and I want to set SYSCLK, HCLKs and other clocks .
How can I implement a code that configure HSI,HSE selection and SYSCLK etc.
I want to do that using LL(low layer libraries).
Thanks for your helps
Solved! Go to Solution.
2023-01-09 03:33 AM
In CubeMX, Project manager tab->advanced, select to use HAL or LL for RCC code.
2023-01-09 12:23 AM
Read the RefMan section on RCC module. See the description of control register and PLL configuration register.
Write the code:
Each item above translates to a single C statement. That's it. No HAL or LL needed. To determine the values for PLL config, you may use CubeMX clock configuration tab.
2023-01-09 02:29 AM
When we configure project via using cube ide or MX configuration manager we can easily set clock speeds.I saw some funcitons in low layer LL libraries like LL_RCC_HSI_Enable (void ). I want to do that steps with low layer library is there some functions to set clock configs?.
2023-01-09 03:33 AM
In CubeMX, Project manager tab->advanced, select to use HAL or LL for RCC code.
2023-01-09 07:39 AM
Thanks