Skip to main content
ARama.7
Associate
January 6, 2023
Question

Build error in STM32 makefile

  • January 6, 2023
  • 4 replies
  • 1710 views

I am trying to build

git clone ://github.com/bbrown1867/stm32-makefile.git

from Ubuntu (virtualbox) command line:

using the command

make

but getting the following error

No rule to make target 'bsp/Drivers/CMSIS/Device/ST/STM32F7xx/Source/Templates/gcc/startup_s'

Kindly help to resolve this issue

This topic has been closed for replies.

4 replies

Technical Moderator
January 6, 2023

Hello @ARama.7​ 

Try cleaning the project and then rebuild it.

Please keep us informed about your update.

Imen 

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
ARama.7
ARama.7Author
Associate
January 6, 2023

i cleaned using make clean command

after i tried again build using the command:

make

but same issue is happening

Pavel A.
Super User
January 6, 2023

You have entered the toolchain path here, haven't you?

Is the git sub-repo downloaded into the bsp/ subdir?

ARama.7
ARama.7Author
Associate
January 6, 2023

Sorry. I missed

what tools i need to install?

what is the meaning of toolchain path?

Pavel A.
Super User
January 7, 2023

Please see this file in that github project.

https://github.com/bbrown1867/stm32-makefile/blob/bf01e37a1f44e7f6a278f65e0dcc8aadf172f8a7/README.md

It is called "README", a hint to actually read it.

ARama.7
ARama.7Author
Associate
January 7, 2023

I tried the following. but in both cases, same error is obtained:

TOOLCHAIN_ROOT = /opt/gcc-arm-none-eabi-5_4-2016q3/bin

and

TOOLCHAIN_ROOT = /opt/gcc-arm-none-eabi-5_4-2016q3/