Hi @Sbagh.2 ,
The STM32L151xxx devices don’t support the LCD controller.
This is valid for all STM32L1 devices: LCD is supported only in STM32L152xxx.
For example:
In fact, the LCD controller is physically present also in STM32L151xxx devices, but for marketing reasons we differentiate the STM32L1 family to 2 groups: with LCD (STM32L152) and without LCD.
If you are using the LCD on STM32L151xxx devices, then ST do not guarantee the functionality of the LCD controller.
Please mark my answer as best by clicking on the "Select as Best" button if it fully answered your question.
Imen
In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks