Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Create a Debug Configuration using JTAG and GDB

 

Before starting a Debug configuration we have to make sure that the GDB hardware debug plugin in Eclipse is installed. To install it go to Help - Install New Software

 

 

Before starting a debug configuration GDB server needs to be started. This is a tool provided by Segger and can be started by

Image Added

Create a Debug Configuration as follows:

Image Added

Make sure to select the Standard GDB Hardware Debugging Launcher

In the Debugger tab configure the debugger as follow (choose the location of the arm-none-eabi-gdb script)

 

Image Added

Configure the startup tab as follows:

Image Added

The code to put in the box is the following one.

Code Block
target remote localhost:2331
monitor interface jtag
monitor speed 5000
monitor endian little
monitor flash download = 1
monitor flash breakpoints = 1
monitor reset

Click Apply to save the settings and Debug to start the debugging session.