Page 1 of 1

Crazyflie Firmware Compiling

Posted: Fri Jul 13, 2018 7:23 pm
by willv
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?

Re: Crazyflie Firmware Compiling

Posted: Fri Jul 13, 2018 8:27 pm
by whoenig
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.

Re: Crazyflie Firmware Compiling

Posted: Wed Jul 18, 2018 7:57 pm
by SaiRam435Kumar
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

Re: Crazyflie Firmware Compiling

Posted: Fri Jul 27, 2018 2:33 pm
by willv
Make sure you're following the steps listed here: https://github.com/bitcraze/crazyflie-firmware

This solved it for me.