Crazyflie Firmware Compiling

Discussions about all things Bitcraze
Post Reply
willv
Beginner
Posts: 7
Joined: Fri Jul 06, 2018 2:28 pm

Crazyflie Firmware Compiling

Post by willv » Fri Jul 13, 2018 7:23 pm

I'm trying to compile the firmware in Ubuntu 14.04. The only thing I've changed from the original .zip firmware is inserting the TDMA code in config.mk and deleting the .example from the makefile name. However, I'm getting an error:

~/Downloads/crazyflie-firmware-master$ sudo make
CLEAN_VERSION
CC stm32f4xx_adc.o
In file included from src/lib/STM32F4xx_StdPeriph_Driver/inc/stm32f4xx_adc.h:38:0,
from src/lib/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_adc.c:106:
src/lib/CMSIS/STM32F4xx/Include/stm32f4xx.h:463:81: fatal error: core_cm4.h: No such file or directory
#include "core_cm4.h" /* Cortex-M4 processor and core peripherals */
^
compilation terminated.
make[1]: *** [stm32f4xx_adc.o] Error 1
make: *** [build] Error 2

I'm not sure what the solution is. It seems most the work done is on Ubuntu 16.04 so I might try and update to 16.04 and try again, but I'm not sure if that's the solution or not. Any thoughts?

whoenig
Expert
Posts: 274
Joined: Mon Oct 27, 2014 2:55 am

Re: Crazyflie Firmware Compiling

Post by whoenig » Fri Jul 13, 2018 8:27 pm

I think it misses the dependencies. Instead of downloading the zip file, use git clone and follow the instructions in the repository to get the dependencies (those are submodules). It should work with 14.04.

Also, avoid using "sudo" for simple things like make.

SaiRam435Kumar
Beginner
Posts: 2
Joined: Wed Jul 18, 2018 7:30 pm

Re: Crazyflie Firmware Compiling

Post by SaiRam435Kumar » Wed Jul 18, 2018 7:57 pm

Even i face the same issue.
make[1]: *** No rule to make target `tf.o', needed by `cf2.elf'. Stop.
make: *** [build] Error 2


-- i am not able to find the answers for this

willv
Beginner
Posts: 7
Joined: Fri Jul 06, 2018 2:28 pm

Re: Crazyflie Firmware Compiling

Post by willv » Fri Jul 27, 2018 2:33 pm

Make sure you're following the steps listed here: https://github.com/bitcraze/crazyflie-firmware

This solved it for me.

Post Reply