| 1 |
--- |
| 2 |
title: Terminology |
| 3 |
--- |
| 4 |
|
| 5 |
These are the key terms used by pyOCD and its documentation. |
| 6 |
|
| 7 |
- **ADI**: Arm Debug Interface, an Arm architecture specification for how JTAG and SWD interface with CoreSight. |
| 8 |
It defines the DAP structure and registers. |
| 9 |
- **AP**: Access Port, part of the DAP, connected to the DP, that allows the debugger to perform operations |
| 10 |
on the chip and cores. There are multiple types of AP that serve different purposes (see MEM-AP). Some MCU |
| 11 |
vendors implement proprietary APs in their chips. |
| 12 |
- **command**: Refers to one of pyOCD's [commands]({% link _docs/command_reference.md %}) that can be executed in the commander REPL or as a gdb monitor command. |
| 13 |
- **commander**: Refers to the `pyocd commander` subcommand that presents an interactive interface for exploring |
| 14 |
the connected target. |
| 15 |
- **CoreSight**: An Arm architecture specification for debug subsystems. It defines a standardised way |
| 16 |
to discover the debug resources provided by a device. |
| 17 |
- **DAP**: Debug Access Port, the debugging module that is accessed via the JTAG or SWD port. Composed of a |
| 18 |
DP and one or more APs. |
| 19 |
- **DP**: Debug Port, part of the DAP that handles SWD or JTAG. Most chips only have a single DP. |
| 20 |
- **debug link**: The connection between the debugger and target. This is usually a physical connection over |
| 21 |
which the SWD or JTAG wire protocol runs, but different arrangements are possible. |
| 22 |
- **debug probe**: The device that drives SWD or JTAG. Usually connected to the host via USB. |
| 23 |
- **delegation**: A code pattern used to extend or modify functionality of a class by implementing |
| 24 |
methods in a companion object rather than through subclassing. |
| 25 |
- **core**: Refers to a CPU and the closely coupled components surrounding it such as debug and trace |
| 26 |
support. |
| 27 |
- **flash algorithm**: A small piece of code downloaded to and executed from target RAM that |
| 28 |
performs flash erase and program operations. |
| 29 |
- **gdbserver**: A server that implements gdb's [Remote Serial Protocol](https://sourceware.org/gdb/onlinedocs/gdb/Remote-Protocol.html#Remote-Protocol) (RSP) to allow gdb to debug a remote |
| 30 |
target. PyOCD acts as a bridge between gdb and the target. |
| 31 |
- **host**: The computer running pyOCD. |
| 32 |
- **JTAG**: Debug link wire protocol standard defined by IEEE Std 1149.1-2001 and subsequent specifications. |
| 33 |
- **MEM-AP**: Generic standard for a special type of AP used by the debugger to perform memory reads and |
| 34 |
writes within the chip. Concrete MEM-APs have names that represent the kind of bus fabric with which they |
| 35 |
interface, such as AHB-AP or AXI-AP. |
| 36 |
- **probe server**: Server that shares a debug probe over TCP/IP. |
| 37 |
- **REPL**: Read-Eval-Print-Loop. An interactive type of command interface used by pyOCD Commander, as well as |
| 38 |
Python and other similar tools. |
| 39 |
- **session**: Represents a connection to a debug probe and the runtime object graph. |
| 40 |
- **session option**: A named setting that controls some feature of pyOCD. Options are associated with |
| 41 |
a session, and each session can have different values for a given option. They can be set from the |
| 42 |
command line or configuration files. |
| 43 |
- **SoC**: System on Chip, a complete computer on a single chip, like a microcontroller. |
| 44 |
- **SWD**: Serial Wire Debug, an Arm standard for a 2-signal serial wire protocol that is an alternative to |
| 45 |
JTAG. It provides nearly the same functionality, except for lack of boundary scan. |
| 46 |
- **SWO**: Serial Wire Output, SWV frames usually come out this one pin output. Because it shares the JTAG |
| 47 |
signal TDO, SWO is only accessible when using SWD. |
| 48 |
- **SWV**: Serial Wire Viewer, A trace capability providing display of reads, writes, exceptions, PC Samples |
| 49 |
and printf. |
| 50 |
- **subcommand**: One of the subcommands selected as the first argument(s) to the `pyocd` command line tool. |
| 51 |
- **target**: The device that is being controlled by pyOCD through the debug probe. |
| 52 |
- **target type**: The part number for the target. Represented by an identifier that is either |
| 53 |
the full part number or a shortened form of it. |
| 54 |
- **unique ID**: The unique identifier for a debug probe. Nominally a URI, but usually just the probe's |
| 55 |
serial number. |
| 56 |
- **user script**: A Python script written by the user and loaded at runtime that can extend or |
| 57 |
modify pyOCD's behaviour. Different from a Python script that uses pyOCD as a package, because the |
| 58 |
`pyocd` command line tool is the driving process. |
| 59 |
- **wire protocol**: The protocol used on the debug link, either SWD or JTAG for Arm-based devices. |
| 60 |
|