Is STM32L4Cube v1.16.0 RCC_HSICALIBRATION_DEFAULT set up properly for STM32L432KC?
On STM32L4Cube v1.16.0 the RCC_HSICALIBRATION_DEFAULT is set to 0x40, but was 0x10 with v1.15.1 HAL versions. My UART module is using the HSI, hence I need quite precise frequency and it was alright with v1.15.1 (around 0.1% accurate), but after I have updated to v1.16.0, I have around 5% error in the baud rate. I have tracked down the issue and what I see is that RCC_ICSCR register HSITRIM value is set to 0x40 instead of 0x10.
What is more interesting that the datasheet says that the HSITRIM bits shall be set to 64 (0x40), however I read out 0x10 from the MCU after reset.
I am totally confused now. Is the datasheet correct? Is the RCC_HSICALIBRATION_DEFAULT is correct?
As we have around 20 devices which were working properly with the previous Cube version and I read out 0x10 for that register value, I think the datasheet and maybe therefore the Cube implementation is bad.
