The cflag is not a command... it's a build variable.
Alright, I'll try to give you a step by step now as it seems that you have missed some essential steps along the way.
1- Get the latest version of the Crazyflie-firmware. If you haven't, go and
follow these instructions to clone the repo and install the toolchain
2- Make a file in the crazyflie-firmware
/tools/make called 'config.mk. Add the following content to that file:
Code: Select all
CFLAGS += -DDECK_FORCE=bcAIDeck
CFLAGS += -DDEBUG_NINA_PRINT
3- Build the crazyflie-firmware with:
then put the crazyflie in bootloader mode by pressing the button for a few seconds so that the blue leds will start blinking. Make sure your crazyradio is attach and then do:
4- Connect with the crazyflie with the
cfclient and look at the
console tab. This can be accessed from 'view / tabs'
5- The end of the debug messages should indicate that the aideck has connected to your wifi and also list the current ip address of the nina module. Copy this ip address and run this with the viewer:
If the debug messages do not show that the nina module is connected, then you should probably reflash it again with the right credentials or check the accessing rights of your wifi port (as there might be some security protocols setup that prevents it from connecting).