This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
openocd:start [2020/12/09 11:44] – [OpenOCD] ursgraf | openocd:start [2020/12/10 07:06] – [Using GDB Connection] ursgraf | ||
---|---|---|---|
Line 2: | Line 2: | ||
OpenOCD is the software part of a debugger. Together with a hardware adapter | OpenOCD is the software part of a debugger. Together with a hardware adapter | ||
OpenOCD is a complete debugger and can be used as a replacement for an expensive debugger such as the BDI3000 from Abatron. | OpenOCD is a complete debugger and can be used as a replacement for an expensive debugger such as the BDI3000 from Abatron. | ||
+ | * [[: | ||
+ | * [[openocd: | ||
+ | * [[openocd: | ||
+ | * [[openocd: | ||
+ | |||
The hardware adapter forms the electrical interface to the processor and must also be matched to the processor. The adapter is already integrated on the Zybo board. For the Microzed board you need a [[https:// | The hardware adapter forms the electrical interface to the processor and must also be matched to the processor. The adapter is already integrated on the Zybo board. For the Microzed board you need a [[https:// | ||
+ | ===== The OpenOCD Toolchain ===== | ||
+ | OpenOCD starts running as a server and waits for connections from clients (telnet, GDB) and processes the commands issued through those channels. OpenOCD will launch the GDB and telnet server even if it cannot establish a connection with the target. In general, it is possible for the JTAG controller to be unresponsive until the target is set up correctly via e.g. GDB monitor commands in a GDB init script. | ||
+ | ==== Using Telnet Connection ==== | ||
+ | [{{: | ||
- | ===== The OpenOCD-toolchain ===== | + | Make sure to have the necessary plugin installed, see [[: |
- | {{: | + | |
- | //Picture 1: The OpenOCD-toolchain// | + | |
- | + | ||
- | The same graphical debugger interface can be used with the OpenOCD toolchain as with the PowerPC and the BDI-3000. OpenOCD and the FT2232 on the Zybo take over the function of the BDI-3000. | + | |
- | + | ||
- | The Eclipse Plugin can be downloaded from [[https:// | + | |
- | + | ||
- | To use this toolchain, OpenOCD together with an eclipse plugin must be [[openocd: | + | |
- | ===== The gdb-OpenOCD-toolchain | + | ===== Using GDB Connection |
- | {{: | + | [{{: |
- | //Picture 2: The gdb-toolchain// | + | |
- | This toolchain uses OpenOCD in combination with the GNU debugger, the gdb. | + | This toolchain uses OpenOCD in combination with the GNU debugger, the GDB. The GDB can be used to load a deep application onto the target. For this it must have been packed in an ELF format. If debug information in STABS or DWARF format is also provided, the debugger can also be used to debug the deep application directly to the target. |
- | The gdb can be used to load a deep application onto the target | + | |
- | If debug information in STABS or DWARF format is also provided, | + | === Installation of the GDB === |
+ | The "GNU Arm Embedded Toolchain" | ||
- | More information under [[.: | + | === How to Use the GDB === |
+ | [[.: | ||
- | To use this toolchain, [[openocd: | ||