2025-03-05 3:57 AM
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.
2025-03-05 4:27 AM
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
2025-03-05 4:31 AM
Hi @Mahmoud Ben Romdhane , thanks for your fast reply.
Of course, please find it attached.
Best regards!!
2025-03-05 4:37 AM
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
2025-03-05 5:12 AM
Hello @Mahmoud Ben Romdhane
If i update the hole STM32CubeIDE, the newer version of the STM32CubeMX is not included?
Best regards
2025-03-05 5:21 AM
Hello @AnthonyRFC ,
STM32CubeIDE 1.18 contains the last integrated version of STM32CubeMX : 6.14.0-RC8.
Thanks.
Mahmoud