Skip to content

Eclipse OpenOCD Debug Setup

eohan edited this page Oct 12, 2011 · 2 revisions

Install GDB Hardware Debugging

In Eclipse, click in the top menu on "Help" (rightmost in the menu bar), then "Install New Software...". This will bring up the dialog below. Select your Eclipse release in the top dropdown (in this case Indigo) and load the software list.

After the list is populated, type "gdb" in the filter, set the checkbox in the line shown in screenshot and proceed with the installation.

Eclipse Debug Setup

After you've installed the extension, build your target (in this case PX2FMU). Then refresh all files (hit F5 while the project is selected or right-click on openpilot-flight / the project name and select "Refresh".

Now click on the little arrow right to the small bug icon in the toolbar (next to play and the play button with the toolbox). Click on "Debug Configurations...". Then create a new one and configure it according to the screenshots below:

Eclipse Debug Setup2

Eclipse Debug Setup3

Eclipse Debug Setup4 Note: The path for the various location has to be set for each of the separate files as
source flight/Project/gdb/InterruptsInEclipse
source flight/Project/gdb/CortexM3
source flight/Project/gdb/FreeRTOS
source flight/Project/gdb/msheap

Eclipse Debug Setup5

Eclipse Debug Setup6