cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U5G9 DK1 DSIHOST Interface with DSI display Configuration

Kelly3
Associate III

DK1 interface a one lane DSI display. DSI display is using SH8601A LCD driver.  SH8601A only can be initialized in LP mode, not HS mode. In Mx, DSIHOST configuration, 

1.  Bus Turn Around Request is enabled

Kelly3_0-1755274558992.png

2.  Transmission commands in LP mode is configured

Kelly3_1-1755274624138.png

3. After start DSI, I try to read  the display, it returned TIMEOUT error. 

HAL_StatusTypeDef status;

uint8_t ID_info[1] = {255};

 

if(HAL_DSI_Start(&hdsi) != HAL_OK) return 1;

 

uint8_t InitParam0[1] = {0x00};

status = HAL_DSI_Read(&hdsi,0,ID_info,1,DSI_DCS_SHORT_PKT_READ,0xDA,InitParam0);

 

TIMEOUT error. The reason it is time out is that the following condition in

HAL_DSI_Read function is always false. The GPSR value is : 262229

if ((hdsi->Instance->GPSR & DSI_GPSR_PRDFE) == 0U)

May I know what could cause read failure? 

In PHY timing, 

The HS and LP means which status,  HS means HS 0 or HS 1? LP means LP11, LP01 or LP00?  The read failure might relate to wrong timing configure. 

Kelly3_2-1755275752590.png

Thank you.

Kelly

 

0 REPLIES 0