Example: stock market

Open On-Chip Debugger: OpenOCD User’s Guide

Open On-Chip Debugger: OpenOCD User s Guidefor release March 2021 This User s Guide documents release , dated 7 March 2021, of the Open On-ChipDebugger ( OpenOCD ). Copyrightc 2008 The OpenOCD Project Copyrightc 2007-2008 Spencer Copyrightc 2008-2010 Oyvind Copyrightc 2008 Duane Copyrightc 2009-2010 David BrownellPermission is granted to copy, distribute and/or modify this document under theterms of the GNU Free Documentation License, Version or any later versionpublished by the Free Software Foundation; with no Invariant Sections, noFront-Cover Texts, and no Back-Cover Texts.

The Open On-Chip Debugger (OpenOCD) aims to provide debugging, in-system program-ming and boundary-scan testing for embedded target devices. It does so with the assistance of a debug adapter, which is a small hardware module which helps provide the right kind of electrical signaling to the target being debugged. These are

Tags:

  Debugger

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Transcription of Open On-Chip Debugger: OpenOCD User’s Guide

1 Open On-Chip Debugger: OpenOCD User s Guidefor release March 2021 This User s Guide documents release , dated 7 March 2021, of the Open On-ChipDebugger ( OpenOCD ). Copyrightc 2008 The OpenOCD Project Copyrightc 2007-2008 Spencer Copyrightc 2008-2010 Oyvind Copyrightc 2008 Duane Copyrightc 2009-2010 David BrownellPermission is granted to copy, distribute and/or modify this document under theterms of the GNU Free Documentation License, Version or any later versionpublished by the Free Software Foundation; with no Invariant Sections, noFront-Cover Texts, and no Back-Cover Texts.

2 A copy of the license is includedin the section entitled GNU Free Documentation License .iShort Developer Adapter Project File Adapter TAP CPU Flash Flash PLD/FPGA General Architecture and Core JTAG Boundary Scan Utility GDB and Tcl Scripting Tcl Crash GNU Free Documentation Concept and Driver of is OpenOCD ?..1 OpenOCD Web Site..2 Latest User s Guide :..2 OpenOCD User s Forum..2 OpenOCD User s Mailing List..2 OpenOCD IRC..21 OpenOCD Developer OpenOCD Git Repository.. Doxygen Developer Manual.

3 Gerrit Review System.. OpenOCD Developer Mailing List.. OpenOCD Bug Tracker..42 Debug Adapter Choosing a Dongle.. Stand-alone JTAG Probe.. USB FT2232 Based.. USB-JTAG / Altera USB-Blaster compatibles.. USB J-Link based.. USB RLINK based.. USB ST-LINK based.. USB TI/Stellaris ICDI based.. USB Nuvoton Nu-Link.. USB CMSIS-DAP based.. USB Other.. IBM PC Parallel Printer Port Based..103 About Simple setup, no customization.. What OpenOCD does as it starts..135 OpenOCD Project Hooking up the JTAG Adapter.

4 Project Directory.. Configuration Basics.. User Config Files.. Project-Specific Utilities.. Target Software Changes.. Target Hardware Setup..196 Config File Interface Config Files.. Board Config Files.. Communication Between Config files.. Variable Naming Convention.. The reset-init Event Handler.. JTAG Clock Rate.. The initboard procedure.. Target Config Files.. Default Value Boiler Plate Code.. Adding TAPs to the Scan Chain.. Add CPU targets.. Define CPU targets working in SMP.. Chip Reset Setup.. The inittargets procedure.

5 The inittargetevents procedure.. ARM Core Specific Hacks.. Internal Flash Configuration.. Translating Configuration Files..307 Server Configuration Stage.. Entering the Run Stage.. TCP/IP Ports.. GDB Configuration.. Event Polling..348 Debug Adapter Adapter Configuration.. Interface Drivers.. Transport Configuration.. JTAG Transport.. SWD Transport.. SPI Transport.. SWIM Transport.. JTAG Speed..529 Reset Types of Reset.. SRST and TRST Issues.. Commands for Handling Resets.. Custom Reset Handling.

6 57iv10 TAP Scan Chains.. TAP Names.. TAP Declaration Commands.. Other TAP commands.. TAP Events.. Enabling and Disabling TAPs.. Autoprobing.. DAP declaration (ARMv6-M, ARMv7 and ARMv8 targets)..6411 CPU Target List.. Target CPU Types.. Target Configuration.. Other $targetname Commands.. Target Events..7412 Flash Flash Configuration Commands.. Preparing a Target before Flash Programming.. Erasing, Reading, Writing to Flash.. Other Flash commands.. Flash Driver List.. External Flash.. Internal Flash (Microcontrollers).

7 NAND Flash Commands.. NAND Configuration Commands.. Erasing, Reading, Writing to NAND Flash.. Other NAND commands.. NAND Driver List..11513 Flash PLD/FPGA PLD/FPGA Configuration and Commands.. PLD/FPGA Drivers, Options, and Commands..11915 General Server Commands.. Target State handling.. I/O Utilities.. Memory access commands.. Image loading commands.. Breakpoint and Watchpoint commands.. Real Time Transfer (RTT).. Misc Commands..127v16 Architecture and Core ARM Hardware Tracing.. ETM Configuration.. ETM Trace Operation.

8 Trace Port Drivers.. ARM Cross-Trigger Interface.. Generic ARM.. ARMv4 and ARMv5 Architecture.. ARM7 and ARM9 specific commands.. ARM720T specific commands.. ARM9 specific commands.. ARM920T specific commands.. ARM926ej-s specific commands.. ARM966E specific commands.. XScale specific commands.. ARMv6 Architecture.. ARM11 specific commands.. ARMv7 and ARMv8 Architecture.. ARMv7-A specific commands.. ARMv7-R specific commands.. ARMv7-M specific commands.. Cortex-M specific commands.. ARMv8-A specific commands.. EnSilica eSi-RISC Architecture.

9 ESi-RISC Configuration.. eSi-RISC Operation.. eSi-Trace Configuration.. eSi-Trace Operation.. Intel Architecture.. x86 32-bit specific commands.. OpenRISC Architecture.. TAP and Debug Unit selection commands.. Registers commands.. RISC-V Architecture.. RISC-V Terminology.. RISC-V Debug Configuration Commands.. RISC-V Authentication Commands.. RISC-V DMI Commands.. ARC Architecture.. General ARC commands.. ARC JTAG commands.. STM8 Architecture.. Software Debug Messages and Tracing..15317 JTAG Low Level JTAG Commands.

10 TAP state names..156vi18 Boundary Scan SVF: Serial Vector Format.. XSVF: Xilinx Serial Vector Format..15819 Utility RAM testing.. Firmware recovery helpers..16020 GDB and Connecting to GDB.. Sample GDB session startup.. Configuring GDB for OpenOCD .. Programming using GDB.. Using GDB as a non-intrusive memory inspector.. RTOS Support.. Using OpenOCD SMP with GDB.. Legacy SMP core switching support..16621 Tcl Scripting API rules.. Internal low-level Commands.. OpenOCD specific Global Variables.. Tcl RPC server.


Related search queries