OpenOCD stands for Open On Chip Debugger and is a program used to debug embedded platforms, mostly via JTAG.
Questions tagged [openocd]
286 questions
1
vote
0 answers
Documentation for creating a gdb server
I am working on building a processor, as a pasttime project. The thing is going to have a Mips isa and will probably use uart to communicate with the host machine.
Let us say that I actually get to a somewhat working CPU, then I want to run GDB to…

Cheiron
- 3,620
- 4
- 32
- 63
1
vote
1 answer
Load code directly to RAM through SWD / on STM32H7
I need to load a small piece of code directly to the internal RAM of a STM32H753 part from the IDE (which is STM32CubeIDE) using OpenOCD or ST GDB server. I'm working on a STM32H753I-EVAL2 board and I load the part and debug through SWD with the…

Guillaume Petitjean
- 2,408
- 1
- 21
- 47
1
vote
1 answer
How to interpret tcl command in openOCD manual
I'm completely new to tcl and am trying to understand how to script the command "adapter usb location" in openOCD.
From the openOCD manual, the command has this description:
I want to point it to the port with the red arrow below:
Thanks.

AJbotic
- 75
- 1
- 6
1
vote
2 answers
OpenOCD how to flash local file to remote target?
(Using STM32F767 microcontroller)
I have a remote debugging environment setup on a RPI using OpenOCD. I can connect to it just fine using GDB.
However since I am writing a bootloader I need to flash the firmware to a specific offset in flash memory.…

King
- 11
- 1
- 5
1
vote
0 answers
Enable semi hosting automatically in GDB after connecting to a remote target
I'm using GDB to connect to a remote GDB server (OpenOCD, ARM). The program on the target uses semi hosting to print some debug messages.
I need to run in GDB these commands:
target remote 127.0.0.1:3333
monitor arm semihosting enable
Note that I…

dwjbosman
- 906
- 9
- 33
1
vote
1 answer
Live variable view using OpenOCD and VSCode
I really like using VScode + cortex debug extension + openOCD over Keil or Eclipse in embedded projects. Although i wasn't able to figure out how to set up live variable view, which you can set up with eclipse + openOCD.
1. Is it possible to have…

eimvs
- 21
- 7
1
vote
0 answers
Need ideas for automating on-chip testing on Cortex-M4 using gdb and semihosting
I'm working on safety-critical software that requires extensive testing. The target processor, a Cortex-M4, has rich resources for the application but the unit and integration tests, if aggregated, would be much larger than the on-board FLASH/RAM.…

GlenL
- 39
- 7
1
vote
0 answers
Atmel at91saml21j18b board configuration error with Jtag connectivity Through Openocd Server
Hello actually i'm trying to interface a samdl21 board with Jtag through openocd server.I'm facing some problem in configuration where it is throwing Invalid ACK (0) in DAP response Error...someone please help me to find a solution for this…

Ravikiran
- 45
- 11
1
vote
0 answers
VS Code, GDB remote debugging and Linux/Windows path characters
Simple question I hope. I'm using VS Code with the C/C++ extension running on Windows for remote debugging an ARM Cortex M0 board via OpenOCD running on Linux. This all works wonderfully well, with a single exception: path characters.
The problem is…

J Evans
- 1,090
- 2
- 16
- 36
1
vote
1 answer
OpenOCD Failed to execute MI command: -target-select remote localhost:3333
I'm used to using Segger at work, but I didn't want to spend that kind of money for home use, so this is my first time using OpenOCD for debugging.
I've got the Olimex ARM-USB-TINY-H.
My OS is Ubuntu.
I'm using MCUXpresso (Eclipse) with the OpenOCD…

M_J
- 316
- 5
- 20
1
vote
1 answer
STM32 SWD protocol - port number
I start using SWD feature in my STM32 discovery board. I redirecting openocd trace output to text file (because I don't find any good SWD monitor for Linux). I don't know why i get two character when I send only one.
In my output file, every…

JhnW
- 120
- 1
- 8
1
vote
0 answers
How to extend OpenOCD to support a not supported Targe?
I like to extend the OpenOCD software to support a target microcontroller (Target Layer) that is not yet supported. How I have to start with? Is there someone had already similar experience?
I have access to all microcontroller JTAG and OCDS details…

Massimo Atti
- 11
- 2
1
vote
1 answer
Build and Deploy Code on STM32F4 Using Eclipse IDE
I had a problem while deploying code into my STM32F4Nucleo boards using Eclipse and I wanted to share the solution for public benefit.
The problem is that the build process was working however when it comes to deploying the code into the…

odd
- 131
- 1
- 3
- 9
1
vote
0 answers
Error OpenOCD debugging on ATSAMA5D36 Xplained board:
I'm trying to flash on ATSAMA5D36 Xplained board using OpenOCD.
I builded and compiled application and want to debug using OpenOCD. When I am doing that I get the following error.
Openocd verson:
openocd-0.9.0.tar.gz
…

Swathi Acharya
- 11
- 4
1
vote
2 answers
How to maintain development environment after updates in linux
I like to work on DIY electronics projects every once in a while, but I am still new to this.
I generally use STM32 microcontroller rather than Arduino, but one problem with the microcontroller is the various tool-chain it needs to build and deploy…

Nikul Padhya
- 512
- 4
- 11