Skip to main content
Associate II
September 5, 2023
Solved

Make can not build project from STM32CubeMX with CMSIS_V2

  • September 5, 2023
  • 1 reply
  • 1038 views

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.

This topic has been closed for replies.
Best answer by Michał M

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

1 reply

Michał MAuthorBest answer
Associate II
September 11, 2023

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