OpenOCD stands for Open On Chip Debugger and is a program used to debug embedded platforms, mostly via JTAG.
Questions tagged [openocd]
286 questions
2
votes
2 answers
A JTAG emulator for use with a Hawkboard and OpenOCD?
I'd like to try bare metal ARM programming with the Hawkboard, but the deployment process looks awful. I'm totally new to this, so I could be misunderstanding the instructions, but it appears that I have to use a program called AISgen to convert the…

David Brown
- 35,411
- 11
- 83
- 132
2
votes
2 answers
Investigating Jtag on the Raspberry Pi using OpenOCD (and Bus Pirate)
I bought a Bus Pirate as a cheap way to begin investigating Jtag on a couple chips. I thought the raspberry pi would make for a good test case as it is well documented and has a large support community. I have learned after reading through several…

eh_whatever
- 193
- 1
- 3
- 13
2
votes
1 answer
STM32: Booting and fetching vector table from SRAM
I would like to run my program from the SRAM region of the device.
It seemed quite clear to me, that I have to perform following steps:
Modify the vector table offset register SCB->VTOR (located at 0xE000ED08) to point to the beginning of the SRAM…

Multisync
- 767
- 6
- 25
2
votes
1 answer
STM32F4xx with GDB and OpenOCD bugs
I am developing a program on the STM32F4Discovery board using GCC, GDB and OpenOCD.
I can compile everything just fine, but when I start debugging, the program goes straight to the HardFault Handler, instead of going to the Reset_Handler.
Also, I…

user3416228
- 21
- 2
2
votes
2 answers
GDB Connection Timeout
I used to the St-write to burn .bin to the STM32F4 and saw the message which I expected. Now, I hope to understand how GPIO init. Hence, I use OpenOCD and arm-none-eabi-gdb to do that. Here, it is my process.
$ minicom
$ openocd -f…

Gapry
- 253
- 1
- 7
- 20
2
votes
1 answer
openocd on windows invalid command "jtag" with phytec lpc3250 target using an olimex arm-usb-ocd-h jtag dongle
Can someone help me understand an "invalid command name" error with openocd? Some details:
openocd 0.7.0 windows binary
olimex arm-usb-ocd-h dongle
lpc3250 phytec based board
Steps I've done:
Downloaded file "openocd-0.7.0.7z" from…

minghua
- 5,981
- 6
- 45
- 71
2
votes
1 answer
Eclipse GDB in combination with OpenOCD
I am using eclipse CDT to make software for a stm32f0-discovery i use ST-link to program this controller using usb.
A few days ago i got into debugging my chip using OpenOCD6.0.1 i followed this tutorial:
debugger tutorial
after a few hours i got…

Bart Teunissen
- 1,420
- 5
- 20
- 43
1
vote
1 answer
Do IAR and Keil flash binaries to the target chip using OpenOCD?
I wonder if Keil and IAR use OpenOCD in the background to flash binaries to the target chip. If not, what software do they use in the background?

K.Mulier
- 8,069
- 15
- 79
- 141
1
vote
0 answers
Olimex Lora-STM32WL-devkit + STM32CubeIDE = "Could not verify ST device!" How to check if device is genuine?
Devkit is not recognized as a genuine ST Device!
OpenOCD gives:
openocd -f interface/cmsis-dap.cfg -c "cmsis_dap_vid_pid 0x15ba 0x0044" -c "transport select swd" -c "adapter speed 1000" -f "target/stm32wlx.cfg"
Open On-Chip Debugger 0.12.0…

JeanBonnot
- 11
- 2
1
vote
0 answers
Reading variables on uC with OpenOCD and GDB
I want to read the content of specific RAM addresses from a microcontroller application via a ST-Link via SWD. For now I do this with command line, but later I want to build a data logger with this.
So first I setup the connection to the target with…

Martin
- 11
- 1
1
vote
1 answer
Executing arbitrary code on-the-fly via gdb on microcontroller target?
Let me try to explain what I'm looking for, as I couldn't find a better wording for the title.
Let's say I'm programming an RP2040 microcontroller, and I can establish a debugging session with it using gdb and openocd. (Note that even if I'm…

sdbbs
- 4,270
- 5
- 32
- 87
1
vote
1 answer
How to add arguments to launch.json in VS Code
I am trying to debug the RP2040 using the new picoprobe.
When i execute the following command
openocd -f interface/cmsis-dap.cfg -f target/rp2040.cfg -c "adapter speed 5000"
OpenOCD works without an issue.
I just need to add -c "adapter speed 5000"…

varun koganti
- 13
- 2
1
vote
0 answers
Obtaining output from openocd commands in command line mode?
I am using openocd to debug / flash a Raspberry Pi Pico over a picoprobe.
If I just start up openocd as a server, then connect to it with a telnet client, then I usually get some informative feedback from the commands in my telnet session. Example:…

sdbbs
- 4,270
- 5
- 32
- 87
1
vote
0 answers
How to check in my openocd script if flash is protected or not?
Following is the command in my openocd script (not tested) for hifive1-revb board.
flash bank spi0 fespi 0x20010000 0 0 0 riscv.cpu.0 0x10014000
How to check in my openocd scriipt if the flash is protected or not before performing any read or write…

RRON
- 1,037
- 3
- 12
- 32
1
vote
0 answers
Debugging for esp8266 through jtag?
I am working on esp8266 - NodeMcu.
According to the docs from EspressIf, I couldn't find any documentation about Jtag port in Esp8266, so I think Jtag port is not supported in this chip.
However, we can debug esp8266 with Openocd via Jtag port. Here…

Dương Bùi
- 23
- 3