cancel
Showing results for 
Search instead for 
Did you mean: 

" Missing ';' " indexer marker in STM32G070 project

AnthonyRFC
Visitor

Hi folks.

I have been working a couple of days on a project involving the STM32G070RB. The devices uses two uarts : one for serial comunication throug a USB-serial converter and one for modbus comunication.

Both worked OK but now the STM32CubeIDE mark the following lines with "missing ';' " indexer marking and the UART4 stoped to work (both Tx and Rx) and the UART2 Rx IT doesnt work too.

 

 

  __HAL_RCC_GPIOD_CLK_ENABLE();
  __HAL_RCC_GPIOC_CLK_ENABLE();
  __HAL_RCC_GPIOF_CLK_ENABLE();
  __HAL_RCC_GPIOA_CLK_ENABLE();
  __HAL_RCC_GPIOB_CLK_ENABLE();

 

 


¿What could be the root cause? The compiler gives no warning or error in the compilation.

Thanks in advance.  

5 REPLIES 5
Mahmoud Ben Romdhane
ST Employee

Hello @AnthonyRFC ,

First let me thank you for posting and welcome to the ST Community.

For more investigation, I suggest that you provide your Ioc.File.

Thanks.

Mahmoud

Hi @Mahmoud Ben Romdhane , thanks for your fast reply. 

Of course, please find it attached.

Best regards!!

Hello @AnthonyRFC ,

 

Your project was setup with STM32CubeMX version 6.0.0. I suggest please that you download the last version of STM32CubeMX through this link STM32CubeMX - STM32Cube initialization code generator - STMicroelectronics

 

Thanks.

Mahmoud

Hello @Mahmoud Ben Romdhane 

If i update the hole STM32CubeIDE, the newer version of the STM32CubeMX is not included?

Best regards 

Hello @AnthonyRFC ,

 

MahmoudBenRomdhane_0-1741180658836.png

MahmoudBenRomdhane_1-1741180703937.png

STM32CubeIDE 1.18 contains the last integrated version of STM32CubeMX : 6.14.0-RC8.

 

Thanks.

Mahmoud