Crazyflie 2.0 Programming via St-Link STM32 v2

Firmware/software/electronics/mechanics
Post Reply
KryptonRazer
Beginner
Posts: 1
Joined: Sun Dec 06, 2015 5:51 pm

Crazyflie 2.0 Programming via St-Link STM32 v2

Post by KryptonRazer »

Hello,


i want to progamm this github project (https://gist.github.com/ataffanel/9dbb3cab827ae837bbb7) on my Crazyflie 2.0 to mesaure distances between multiply beacons to the Crazyflie 2.0. The beacons will be represented by Crazyradio PA's. All in all I want to do an localisation based on trilateration.
I bougth an St-Link STM32 v2 I know (think) I have to connect these ports:

VDD_TARGET ------------ Pin 1 ( VCC )
SWCLK ---------------------- Pin 4 ( TCK )
GND --------------------------- Pin 9 ( DGND )
SWDIO ----------------------- Pin 2 ( TMS )

But I don't know where I can find (TCK and TMS) at my Crazyflie 2.0.

I hope someone can help me.

With Best Regards,

KryptonRazer
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Crazyflie 2.0 Programming via St-Link STM32 v2

Post by arnaud »

The Crazyflie 2.0 has 2 debug port. The STM32 under the USB port and the nRF51 as 4 pads on one side on the bottom.
They are intended to be used with the debug adapter https://wiki.bitcraze.io/projects:crazy ... pter:index

If you do not have the adapter you can still find the pinout on the Crazyflie schematic: https://wiki.bitcraze.io/_media/project ... matics.pdf. It is P3 and P4.

The code you are linking is quite old and the RSSI measurement has now been implemented in the stock firmware: https://github.com/bitcraze/crazyflie2- ... /src/esb.c

You can flash firmware with the bootloader as well.
Post Reply