Crazyflie Firmware Compiling

Discussions about all things Bitcraze
Post Reply
Posts: 2
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 and deleting the .example from the makefile name. However, I'm getting an error:

~/Downloads/crazyflie-firmware-master$ sudo make
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?

Posts: 247
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.

Post Reply