-
Notifications
You must be signed in to change notification settings - Fork 0
Eclipse OpenOCD Debug Setup
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.
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:
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