Question
There is a bug in stm32l1xx_hal_conf.h. The MSI_VALUE value is wrong.
DeviceId = STM32L151RETx
FirmwarePackage = STM32Cube FW_L1 V1.10.2
Bug in: stm32l1xx_hal_conf.h
On row 110. The MSI_VALUE is defined as 16000000. It should be defined as 2097152 Hz
/**
* @brief Internal Multiple Speed oscillator (MSI) default value.
* This value is the default MSI range value after Reset.
*/
#if !defined (MSI_VALUE)
#define MSI_VALUE ((uint32_t)16000000) /*!< Value of the Internal oscillator in Hz*/
#endif /* MSI_VALUE */