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?
Crazyflie Firmware Compiling
Re: Crazyflie Firmware Compiling
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.
Also, avoid using "sudo" for simple things like make.
-
- Beginner
- Posts: 2
- Joined: Wed Jul 18, 2018 7:30 pm
Re: Crazyflie Firmware Compiling
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
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
Make sure you're following the steps listed here: https://github.com/bitcraze/crazyflie-firmware
This solved it for me.
This solved it for me.