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
Maxim MCU & Eclipse and OpenOCD
I have a fresh install of Maxims Micros SDK and I am having an issue when I try to debug or even run on target. I get the following output
Open On-Chip Debugger 0.11.0+dev-g4f85f7914 (2021-12-16-13:53)
Licensed under GNU GPL v2
For bug reports,…

Edwin Fairchild
- 161
- 6
1
vote
0 answers
OpenOCD on MSYS2 MinGW64
I'm currently trying to build RIOT-OS on MSYS2/mingw64 and flash it to some STM32 dicovery board. Building works just smooth now, but flashing does not work with OpenOCD.
I traced down the problem to the point, where the absolute path to the…

themole
- 363
- 3
- 12
1
vote
0 answers
Vscode used ESP-IDF can`t use openocd
When i use ESP-IDF, use esp32-c3 board, i can`t frash, it show
OpenOCD Exit with non-zero error code 1
and output:
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 2
force hard…

Hailay
- 11
- 1
1
vote
1 answer
MicroBlaze without Vitis
Has anyone managed to connect a MicroBlaze instantiated in a Xilinx FPGA to anything other than the Xilinx tools (SDK or Vitis) for download and debugging?
I'm targeting a VCU29 and have licenses from Xilinx for Vivado etc; I have already extracted…

Joes
- 13
- 3
1
vote
1 answer
Programing an STM32F4 with OpenOCD on Raspberry Pi 4
I'm trying to flash the bootloader on an STM32F407 via the SWD interface, the board in question is the Makerbase Robin Nano v3 this is a 3d printer controller board.
I have OpenOCD running fine on my Raspberry Pi 4 and I'm able to read sectors of…

Tiago Oliveira
- 1,582
- 1
- 16
- 31
1
vote
1 answer
How to start openOCD on ARM M1 MacBook
I'm having a hard time getting openocd to start. I attached an STM32F3 Discovery board.
When I run openocd -f interface/stlink.cfg -f target/stm32f3x.cfg I get the following error:
Open On-Chip Debugger 0.11.0
Licensed under GNU GPL v2
For bug…

grmmgrmm
- 994
- 10
- 29
1
vote
1 answer
Segmentation fault when trying to use a Picoprobe with OpenOCD
i wanted to use the new Raspberry Pi Pico as a Picoprobe debugger. I followed this
tutorial.
I am using Windows. When i try to run it with
src/openocd.exe -f interface/picoprobe.cfg -f target/rp2040.cfg -s tcl
i get a segmentation fault. When…

OGe
- 21
- 3
1
vote
2 answers
OpenOCD multiadapter type configuration
Some devs on our team have J-Link debuggers while others are working with ST-Link debuggers. All of us work on the same hardware with the same firmware, basically everything else is the same. The current setup requires to start OpenOCD with a…

Vlad
- 25
- 4
1
vote
1 answer
Gdb: target remote connects at the wrong place?
I'm learning how to use OpenOCD and GDB according to the Rust Embedded Book.
There is a moment when you connect to the running OpenOCD:
(gdb) target remote :3333
Remote debugging using :3333
0x00000000 in ?? ()
Something broke without any changes I…

Alexey Orlov
- 2,412
- 3
- 27
- 46
1
vote
0 answers
OpenOCD: Debug Module did not become active. dmcontrol=0x0
I implemented SweRV_EH1 on a Zedboard fpga. I am trying to use openOCD and Jtag Arm-USB-Tiny_H to download code to the board as instructed in the README. I have checked the physical connection and make sure it be correctly connected to the Pmod on…

Thach Nguyen
- 11
- 1
1
vote
0 answers
Use raspberry pi as an interface for openocd on cc2538
I'm trying to follow this guide to activate serial bootloader on cc2538 using raspberry pi and OpenOCD.
After connecting micro controller is seen by OpenOCD Info : JTAG tap: cc2538.jrc tap/device found: 0x8b96402f (mfg: 0x017 (Texas Instruments),…

Th0m4S
- 11
- 1
1
vote
1 answer
'undefined debug reason 7 - target needs reset' Error when debug ARM Cortex-M33 using OpenOCD in FTDI SWD Mode
I am currently using OpenOCD to debug Cortex-M33 processor. However, after it connects to gdb and starts debugging, it shows the following message:
Try to search windows process
Found openocd running, Kill it
SUCCESS: The process "openocd.exe" with…

AdamZhang
- 11
- 2
1
vote
0 answers
OpenOCD connection with STM32F1x and ST-Link
I am using STM32F103. I want to use OpenOCD to flash STM32. I was using keil but I want to shift to arm-gcc compiler.
I can compile the code for the controller. But now I want to flash it using OpenOCD.
I was able to manage its configurations.…

dev_eng
- 126
- 1
- 12
1
vote
1 answer
OpenOCD and STM32F7 flashing
So I have a very minimal code just to see if device is alive.
section .text
.weak Reset_Handler
Reset_Handler:
ldr r0, =_estack
mov sp, r0 /* set stack pointer */
ldr r2, =_sdata
//
b Reset_Handler
According to datasheet, flash…

Anton Stafeyev
- 761
- 1
- 7
- 20
1
vote
0 answers
Variables don't set in openOCD target event procedure
I am trying to read a value from memory and store it in a variable when the target is halted. I can read it successfully using mdw address but I cannot store it in a variable.
This is what I do:
$_TARGETNAME configure -event halted {
echo "target…

mad0x60
- 312
- 1
- 14