cannot compile hello.c

Discussions about the AI-deck
Post Reply
noah2021
Beginner
Posts: 16
Joined: Thu Oct 07, 2021 8:48 pm

cannot compile hello.c

Post by noah2021 »

Hi, I tried to configure the environment in your Bitcraze VM (not the AI deck one!)
I compiled SDK 3.8.1 and others according to this:https://www.bitcraze.io/documentation/r ... g-started/

Then I want to enable the driver:
https://www.bitcraze.io/documentation/r ... the-driver

But I cannot make it successfully.

Code: Select all

bitcraze@ubuntu:~/projects/crazyflie-firmware$ make clean && make
  CLEAN
  CLEAN_VERSION
  CC    list.o
riscv32-unknown-elf-gcc: error: unrecognized argument in option '-mcpu=cortex-m4'
riscv32-unknown-elf-gcc: note: valid arguments to '-mcpu=' are: gap8 gap9 pulpslim pulpv0 pulpv1 pulpv2 pulpv3
riscv32-unknown-elf-gcc: error: unrecognized command line option '-mfp16-format=ieee'
riscv32-unknown-elf-gcc: error: unrecognized command line option '-mthumb'
riscv32-unknown-elf-gcc: error: unrecognized command line option '-mfloat-abi=hard'
riscv32-unknown-elf-gcc: error: unrecognized command line option '-mfpu=fpv4-sp-d16'
make[1]: *** [tools/make/targets.mk:27: list.o] Error 1
make: *** [Makefile:401: build] Error 2
Is it correct I source sourcename.sh and choose Gapoc V1? Or Gapunio V1? Which one is correct? I'm using olimex USB tiny h.
kimberly
Bitcraze
Posts: 1050
Joined: Fri Jul 06, 2018 11:13 am

Re: cannot compile hello.c

Post by kimberly »

Hi!

So you are currently trying to make the crazyflie-firmware, which does not have anything to do with the gap8 chip, but it's a STM32f4. It is best to start a new terminal, don't source anything from the gap8 SDK and follow these instructions to build the crazyflie firmware. After that is successfull, you can make the config.mk file as instructed in the aideck instructions and build the firmware again.
Post Reply