Compiling STM32 firmware on OSX - No rule to make target

Discussions about all things Bitcraze
Post Reply
coderpyt
Beginner
Posts: 1
Joined: Mon Jun 28, 2021 1:32 pm

Compiling STM32 firmware on OSX - No rule to make target

Post by coderpyt »

Hi,

I am struggling to compile the STM32 firmware master branch on a MacBook Pro M1 machine. I have cloned the git repo https://github.com/bitcraze/crazyflie-firmware recursively and compiled according to instruction given here: https://www.bitcraze.io/documentation/r ... velopment/

I have both openocd and arm-none-eabi-gcc installed:
yaroemperor@yaros-macbook-pro crazyflie-firmware % which openocd
`/usr/local/bin/openocd
yaroemperor@yaros-macbook-pro crazyflie-firmware % which arm-none-eabi-gcc
/usr/local/bin/arm-none-eabi-gcc`

Here is the error message I am getting:
`yaroemperor@yaros-macbook-pro crazyflie-firmware % make
CLEAN_VERSION
VTMPL version.c
CC version.o
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C .//tools/make/cmsis_dsp/ CRAZYFLIE_BASE=/Users/yaroemperor/Desktop/emrerialDev/crazyflie/test/crazyflie-firmware PROJ_ROOT=/Users/yaroemperor/Desktop/emrerialDev/crazyflie/test/crazyflie-firmware V= CROSS_COMPILE=arm-none-eabi-
make[2]: *** No rule to make target `arm_abs_f32.o', needed by `/Users/yaroemperor/Desktop/emrerialDev/crazyflie/test/crazyflie-firmware/bin/libarm_math.a'. Stop.
make[1]: *** [libarm_math.a] Error 2
make: *** [build] Error 2`

Does anyone have an idea on how this could be fixed? Will be really grateful for any suggestions.

Thanks in advance!

Kind regards,
Yari
jonasdn
Expert
Posts: 132
Joined: Mon Mar 01, 2021 3:13 pm

Re: Compiling STM32 firmware on OSX - No rule to make target

Post by jonasdn »

Hi coderpyt!

This is difficult to answer! But let's try.

How did you install the arm-none-eabi-gcc compiler? Which version is it? Can you build other Cortex-M based projects with it?

Perhaps you could try building using our toolbelt docker thing? See install instructions here: https://github.com/bitcraze/toolbelt

And then go

Code: Select all

$ tb build
In the firmware directory.

All the best
Jnas
Post Reply