cancel
Showing results for 
Search instead for 
Did you mean: 

MIPI-DSI on STM32U5G9 - how to get started?

TDJ
Lead

Today I tried to configure MIPI-DSI on STM32U5G9 using CubeMX and I did not win this first clash.

MX_DSIHOST_DSI_Init() function fails executing HAL_DSI_Init() where it waits for 
DSI_PSR register flags PSS0, PSS1 and PSSC to be set (indicate both lanes and clock stop state) - see scrsht below.

1. My first observation is this that according to RM0456 section 44.14.1 "Programing procedure overview" initially PLL3 should be used as the MIPI clock source (step 2) and then it should be switched to D-PHY PLL (step 14). HAL_DSI_Init() function does not seem to follow this procedure.

2. I found no explanation on how to configure PLLChargePump and PLLTuning. Both values set DSI_WPTR register. Do I correctly guess that the selected Phase Frequency Detector range needs to correspond to HSE clock since HSE is the only available PLL-DSI clock source? In my case it is 16MHz.

Please advise.

CubeMX 6.14.1, MCU Package 1.7.0

 

TDJ_0-1745493665753.png
TDJ_1-1745494988429.png

 

TDJ_2-1745495700226.png

 

0 REPLIES 0