cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX project generation and Makefile issues

schperplata
Associate III

If Makefile is set as output Toolchain/IDE on STM32L1 (specifically STM32L100C-Discovery board, STM32L100RCT6 onboard), CubeMX generates invalid (unparsable) Makefile.

In my case, this were project settings:

Generated Makefile has a missing '\' (and duplicated entry) at the line 122 :

# C includes
C_INCLUDES = \
-ICore/Inc \
-IDrivers/STM32L1xx_HAL_Driver/Inc \
-IDrivers/STM32L1xx_HAL_Driver/Inc/Legacy \
-IDrivers/CMSIS/Device/ST/STM32L1xx/Include \
-IDrivers/CMSIS/Include      # missing '\'
-IDrivers/CMSIS/Include

 Can someone please check what is going on? Thank you!

2 REPLIES 2
schperplata
Associate III

In fact, there is a whole lot of other bugs I've stumbled upon:

  • changing RCC driver mode: HAL <-> LL does not include all files/delete references on project regeneration.
  • HAL systick does not work (interrupts or something? - uwTick is not incremented)
  • Re-generating project multiple times some solve issues (missing files)

I hope I am the only one having this issues - this is just way too much general issues to be true.

CubeMX version: 5.1.0 and previous one.

schperplata
Associate III

Duplicated line, but with a valid syntax:

C_INCLUDES = \
...
-IDrivers/CMSIS/Include \
-IDrivers/CMSIS/Include

is also generated for STM32F051 device. Makefile is not ovewritten on regeneration as with previous version.