Skip to main content
x893-00
Associate II
July 12, 2021
Question

HAL_DSI_MspInit bad generation for STM32H747

  • July 12, 2021
  • 4 replies
  • 1139 views

Hi,

i use DSI Host with generation in separate file dsihost.c

In HAL_DSI_MspInit CubeMX and STM32IDE generate next lines

/* DSI clock enable */

__HAL_RCC_DSI_CLK_ENABLE();

( );

__HAL_RCC_GPIOB_CLK_ENABLE();

error: expected expression before ')' token

This topic has been closed for replies.

4 replies

ChahinezC
Associate II
July 12, 2021

Hello @x893-00​,

Can you precise which STM32CubeMX, CubeH7 package versions you are using?

Can you also share your ioc file? This will help us check the problem.

Chahinez.

x893-00
x893-00Author
Associate II
July 12, 2021

stm32cube_fw_h7_v190.zip

CubeMX 6.2.1

STM32IDE 1.6.1

ChahinezC
Associate II
July 13, 2021

Hi @x893-00​,

I checked your file and generated the project but I couldn't reproduce the same behavior from my side.

Chahinez.

x893-00
x893-00Author
Associate II
July 18, 2021

Hi,

looks strange. I open H747XIH.ioc in CubeMX, click GENERATE CODE and see line 174 in file

CM7\Core\Src\dsihost.c

 /* DSI clock enable */
 __HAL_RCC_DSI_CLK_ENABLE();
 
 ();
 __HAL_RCC_GPIOB_CLK_ENABLE();
 /**DSIHOST GPIO Configuration