STM32L0 bug fixing