cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_DSI_MspInit bad generation for STM32H747

x893-00
Associate II

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

4 REPLIES 4
ChahinezC
Lead

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
Associate II

stm32cube_fw_h7_v190.zip

CubeMX 6.2.1

STM32IDE 1.6.1

ChahinezC
Lead

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
Associate II

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