Skip to main content
ARama.7
Associate
Jan 6, 2023 6:17 AM UTC
Question

Build error in STM32 makefile

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.

6 replies

ST Technical Moderator
Jan 6, 2023 8:11 AM UTC

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
Jan 6, 2023 9:03 AM UTC

i cleaned using make clean command

after i tried again build using the command:

make

but same issue is happening

Pavel A.
Jan 6, 2023 9:16 AM UTC

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
Jan 6, 2023 9:20 AM UTC

Sorry. I missed

what tools i need to install?

what is the meaning of toolchain path?

Pavel A.
Jan 7, 2023 10:43 AM UTC

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
Jan 7, 2023 12:24 PM UTC

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/