Skip to main content
Associate II
March 5, 2025
Solved

" Missing ';' " indexer marker in STM32G070 project

  • March 5, 2025
  • 1 reply
  • 817 views

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.  

Best answer by Mahmoud Ben Romdhane

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

 

1 reply

Technical Moderator
March 5, 2025

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Associate II
March 5, 2025

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

Of course, please find it attached.

Best regards!!

Technical Moderator
March 5, 2025

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.