Skip to main content
Visitor II
May 15, 2025
Question

Validation on target falling on F4 Discovery

  • May 15, 2025
  • 1 reply
  • 305 views

Hi,

 

I'im running X-CUBE-AI with STM32Cube IDE on a F407 Discovery. When I try to perform validatation on target, I get the following error during building stage : 

 

Building project 
/opt/st/stm32cubeide_1.18.1/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/arm-none-eabi-gcc -c -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard  -DDEBUG -DUSE_HAL_DRIVER -DSTM32F407xx -D  -IMiddlewares/ST/AI/Inc -IDrivers/STM32F4xx_HAL_Driver/Inc -IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy -IDrivers/CMSIS/Device/ST/STM32F4xx/Include -IDrivers/CMSIS/Include -IInc -O3  -Wall -fdata-sections -ffunction-sections Src/system_stm32f4xx.c -o Debug/Src/system_stm32f4xx.o 
<command-line>: error: macro names must be identifiers 
make: *** [Makefile:72: Debug/Src/system_stm32f4xx.o] Error 1 
Automatic build and run failed

 

The project builds correctlly, but fails on validation on target. Any advices ?

 

Thanks,

Paulo

 

1 reply

KDJEM.1
Technical Moderator
June 25, 2025

Hello @PauloP and welcome to the community;

 

First of all I apologize for my late reply.

To reproduce the issue, could you please share your project.

Thank you.

Kaouthar

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.