AnsweredAssumed Answered

FCRSF not being set (LCD_WaitForSynchro)

Question asked by Graeme Gets on Jun 14, 2018

Hi, 

 

When I write to the FCR register (via HAL_LCD_Init) , the FCRSF is not being set afterwards and so the LCD_WaitForSynchro is failing.

/* Loop until FCRSF flag is set */
while(__HAL_LCD_GET_FLAG(hlcd, LCD_FLAG_FCRSF) == RESET)
{
if((HAL_GetTick() - tickstart ) > LCD_TIMEOUT_VALUE)
{
hlcd->ErrorCode = HAL_LCD_ERROR_FCRSF;
return HAL_TIMEOUT;
}
}

 

This is code generated for the STM32L152c discovery board by STMCube32. I assume this is to do with domain clock sync, but not sure what the fault is. 

 

Many Thanks

Outcomes