Crazyflie Firmware Compiling
Posted: 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?
~/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?