Skip to main content
William1
Associate
September 4, 2020
Question

Makefile toolchain corrupts makefile

  • September 4, 2020
  • 1 reply
  • 748 views

A blank project with the Makefile toolchain will cause the following issue

# C includes
C_INCLUDES = \
-ICore/Inc \
-IDrivers/STM32F4xx_HAL_Driver/Inc \
-IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy \
-IDrivers/CMSIS/Device/ST/STM32F4xx/Include \
-IDrivers/CMSIS/Include \
-IDrivers/CMSIS/Include

Notice the double include in the bottom. This is not initially harmful, but if you tell it to generate the project again, it modifies it slightly into this.

# C includes
C_INCLUDES = \
-ICore/Inc \
-IDrivers/STM32F4xx_HAL_Driver/Inc \
-IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy \
-IDrivers/CMSIS/Device/ST/STM32F4xx/Include \
-IDrivers/CMSIS/Include
-IDrivers/CMSIS/Include

Notice the missing backslash on line 7, which now means the makefile is invalid and wont run anymore.

Manually fixing the problem is possible, but is not viable for advanced setups with continuous integration.

  • Version: STM32CubeMX 6.0.1
  • Operating System: Windows 10
This topic has been closed for replies.

1 reply

Khouloud ZEMMELI
ST Employee
September 4, 2020

Hello @William​ ,

Thanks for your feedback, it will be internally checked.

Best Regards,

Khouloud