Page 1 of 1

Forcing Deck Drive Issue

Posted: Tue Feb 19, 2019 3:38 pm
by ryanemp
To start getting more experience with developing, I'm following along this example here that adds a few LEDs to the CF2.

However, after flashing the CF2 I still don't see any trace of the new deck.

After going through all the steps, the CF client console gives this info:

SYS: I am 0x303235363135510F00370041 and I have 1024KB of flash!
CFGBLK: v1, verification [OK]
DECK_INFO: DECK_FORCE=bcTF found
DECK_INFO: WARNING: compile-time forced driver bcTF not found
DECK_CORE: 0 deck(s) found
MPU9250 I2C connection [OK].
AK8963 I2C connection [OK].
LPS25H I2C connection [OK].
ESTIMATOR: Using Complementary (1) estimator
CONTROLLER: Using PID (1) controller
EEPROM: I2C connection [OK].
AK8963: Self test [OK].
SYS: Free heap: 16056 bytes


The steps I take are as follows:

1. Add the tf.c file to the deck/drivers/src directory along with all the other deck files.
2. Change the config.mk.example file name to config.mk and add code:
CFLAGS += -DDECK_FORCE=bcTF
3. In makefile, add PROJ_OBJ_CF2 += tf.o under #Decks.

Clean, Build, Flash Using Radio.

Is the Warning about the bcTF the main issue here or am I missing something else entirely?
I expected to see a new option under the Parameters tab of the CF client that I could change.
I also thought I would see the tf.o file scroll through the Eclipse console while the Build is finishing.

Any idea on what I'm doing wrong here?
I've spent an embarrassingly long amount of time trying to get this working, so any help is greatly appreciated.

Re: Forcing Deck Drive Issue

Posted: Wed Feb 20, 2019 10:21 am
by arnaud
Hi,
Yes, the warning is an indication that the deck is not found. It could be because of some spelling mistake in the deck driver declaration or that the driver is not compiled at all. If you do not see tf.o being created the issue is that the file is not compiled in.

There has been some change in the Makefile, we removed the suffix _CF2: https://github.com/bitcraze/crazyflie-f ... #L173-L191. So you need to add your driver with "PROJ_OBJ+= tf.o". This should compile the driver.

Re: Forcing Deck Drive Issue

Posted: Wed Feb 20, 2019 12:57 pm
by ryanemp
Thanks! Getting rid of the _CF2 did it

:D :lol: