LCD display of STM32L-Discovery using HAL library
Hello.
I found several other people asking similar questions, but none of them have been resolved, so I will ask you a new question.
I am developing using STM32L-Discovery.Specifically, we would like to display on the LCD mounted on this evaluation board using the HAL library.
However, apparently I may not have set the LCD correctly in CubeMx.
This is because an error has occurred in the initialization function of the output LCD, HAL_LCD_Init ().
Specifically, TIMEOUT occurs in the following code and an error has occurred.
while (__ HAL_LCD_GET_FLAG (hlcd, LCD_FLAG_RDY) == RESET) {
if ((HAL_GetTick ()-tickstart)> LCD_TIMEOUT_VALUE) {
hlcd-> ErrorCode = HAL_LCD_ERROR_RDY;
return HAL_TIMEOUT;
}
}
In other words, LCD_FLAG_RDY is not set regardless of how long.
In CubeMx, the settings are as shown below.

Can someone help me with the solution?
Thank you.