When configuring an STM32L452RE on the NUCLEO-L452RE, there is a difference in the HSI16 clock speed depending on whether configuration is done by HAL or LL.
Configuring the NUCLEO-L452RE via HAL using nothing but the default values for the board in STM32CUBEIDE and setting PA8 as the master clock output to monitor HSI16, the clock frequency at PA8 is 16MHz. When configuration is done via LL (Project Manager -> Advanced Settings), the clock frequency at PA8 is 14.7MHz. The ICSCR register has these values:
HAL: HSITRIM 0x0
HSICAL 0x9b
LL: HSITRIM 0X10
HSICAL 0X6b
The Reference manual shows that the HSICAL value is read only, so I assume it should be loaded at reset by the hardware, and not under software control. I need to set the HSICAL to the correct value while using LL. How can I do this? Note that by setting the HSITRIM to its maximum value only brings the HSI16 up to 15.4MHz while the HSICAL value is 0x6b.
