cancel
Showing results for 
Search instead for 
Did you mean: 

Make can not build project from STM32CubeMX with CMSIS_V2

Michał M
Associate II

I encountered a problem with building project from STM32CubeMX v6.9.1 with generated Makefile and CMSIS_V2 enabled. Starting build by 'make' returns an error 1 for /main.o "Can not find specified file". On the other hand, when using CMSIS_V1 everything is building without errors.
Is it something with CubeMX or CMSIS_V2 need some extra configuration, when using makefile from Cube? I am using GNU Make 3.81 for Windows and tried build it with two version of GNU Arm Compiler: v10.3-2021.10 and 9 20-q1-update.

1 ACCEPTED SOLUTION

Accepted Solutions
Michał M
Associate II

Project was building succesful and work correctly, if I had delete -DCMSIS_device_header=<stm32g0xx.h> from Makefile. Topic to close.

View solution in original post

1 REPLY 1
Michał M
Associate II

Project was building succesful and work correctly, if I had delete -DCMSIS_device_header=<stm32g0xx.h> from Makefile. Topic to close.