2021-06-08 03:29 AM
Hello,
I am using the STM32L412, when I activate the HSI clock in the .ioc, HSI Calibration Value is set to 16 (0x10).
Looking at stm32l4xx_hal_rcc.h:
#if defined(RCC_ICSCR_HSITRIM_6)
#define RCC_HSICALIBRATION_DEFAULT 0x40U /*!< Default HSI calibration trimming value 64 on devices other than STM32L43x/STM32L44x/STM32L47x/STM32L48x */
#else
#define RCC_HSICALIBRATION_DEFAULT 0x10U /*!< Default HSI calibration trimming value 16 on STM32L43x/STM32L44x/STM32L47x/STM32L48x devices */
#endif /* RCC_ICSCR_HSITRIM_6 */
So, with STM32L412, the default value set by the device configuration tool should be 60 (0x40).
With default value USART was failing, once changed everything was working good for me.
Solved! Go to Solution.
2021-06-08 06:29 AM
It should be set to 0x40 based on what's in the repo right now:
2021-06-08 06:29 AM
It should be set to 0x40 based on what's in the repo right now:
2021-06-08 07:52 AM
Ups you are right, I've created a new test project with the same target and it is set to 0x40 by default. I don't know what could had happen with the other project.
Thanks for the response :)
2021-06-08 07:55 AM