Error while building crazyflie-firmware project in VM

Firmware/software/electronics/mechanics
Post Reply
volmen3
Beginner
Posts: 11
Joined: Sat Nov 30, 2019 12:21 pm

Error while building crazyflie-firmware project in VM

Post by volmen3 »

Hello dear Crazyflie community,

I have recently started "playing" with my Crazyflie 2.1 and wanted to configure the firmware flashing process.

For that I was using already preconfigured VM provided by Bitcraze. I changed the LED color as described in this tutorial: https://www.bitcraze.io/getting-started ... ource-code. Everything was working fine till the point where I tried to build the project. After pressing the build button I've got 4 errors of such character:

Code: Select all

.//src/modules/src/outlierFilter.c:107:40: error: initializer element is not constant
 static const int32_t lhMinWindowTime = -2 * lhTicksPerFrame;
                                        ^
.//src/modules/src/outlierFilter.c:108:40: error: initializer element is not constant
 static const int32_t lhMaxWindowTime = 5 * lhTicksPerFrame;
                                        ^
.//src/modules/src/outlierFilter.c:109:48: error: initializer element is not constant
 static const int32_t lhBadSampleWindowChange = -lhTicksPerFrame;
                                                ^
.//src/modules/src/outlierFilter.c:110:49: error: initializer element is not constant
 static const int32_t lhGoodSampleWindowChange = lhTicksPerFrame / 2;
                                                 ^~~~~~~~~~~~~~~
tools/make/targets.mk:26: recipe for target 'outlierFilter.o' failed
Makefile:350: recipe for target 'build' failed
make[1]: *** [outlierFilter.o] Error 1
make: *** [build] Error 2
Could anyone of you help me out with this one?

Thank you very much in advance!
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Error while building crazyflie-firmware project in VM

Post by arnaud »

I think you are hitting this bug: https://github.com/bitcraze/bitcraze-vm/issues/46

Until we make a new VM, you can fix your VM using the commands from the github issue.
volmen3
Beginner
Posts: 11
Joined: Sat Nov 30, 2019 12:21 pm

Re: Error while building crazyflie-firmware project in VM

Post by volmen3 »

Thank you for the reply!

Your hint helped to solve the problem. I installed another version of the gcc-arm-none-eabi compiler (namely 8-2019q3) and the project can be compiled without errors now.

Best regards!
Post Reply