User Tools

Site Tools


projects:crazyflie2:development:openocd_gdb_debugging

This is an old revision of the document!


On-chip debugging

One of the key components of getting really serious about developing on the crazyflie, is time to dive into the C-based firmware. If you really want to do some major changes to the intrinsic of the code, it is essential to have proper tools to be able to debug the code (place breakpoints, read real-time values ect…). On this page, we will put a few examples how to do this with IDE's and different environments.

This page requires our debug adapter! See this page: Debug adapter

Eclipse

Ubuntu 18.04

  • Ubuntu 18.04.2 LTS (64 bit)
  • Eclipse 2019-03 (Eclipse IDE for C/C++ Developers)

Installing prerequisites

First install GDB and openOCD:

sudo apt-get update
sudo apt-get install gdb
sudo apt-get install openocd

Then install java:

sudo apt install default-jre

Then install eclipse itself: Go to their download page: eclipse 20

and then go into you download folder in the terminal en type

tar -zxvf eclipse-cpp-2019-03-R-linux-gtk-x86_64.tar.gz

and start up eclipse:

cd EXTRACT FOLDER/eclipse/cpp-2019-03/eclipse/
./eclipse
projects/crazyflie2/development/openocd_gdb_debugging.1561555992.txt.gz · Last modified: 2019-06-26 15:33 by kimberly