OpenOCD stands for Open On Chip Debugger and is a program used to debug embedded platforms, mostly via JTAG.
Questions tagged [openocd]
286 questions
0
votes
1 answer
How to get info register work in GDB with OpenOCD
I am brand new to OpenOCD and GDB so kindly bear with me. I run my OpenOCD in server in Screen1 which is talking to a system. In Screen 1 I am waiting for the connection to come:
Info: JTAG tap:some abcd: CPU enabled
In Screen2, I start gdb and…
0
votes
1 answer
OpenOCD select target for flash write_image?
I have a JTAG chain of 5 microcontrollers, where each microcontroller has its own ELF image. I understand that I would use flash write_image to write the ELF, but I can't seem to figure out which target/flash bank to write it to. Is there a way to…

Mike
- 526
- 7
- 18
0
votes
0 answers
Insight debugger crashes or hangs whe used with flyswatter2 openOCD on Beagleboard XM
I tried to debug linux kernel on Beagleboard XM with insight and flyswatters openOCD. After I run
arm-linux-gnueabi-insight vmlinux, I see the kernel is downloaded to the target via jtag flyswatter2. When it is done, a message box "Make breakpoint…

Tom
- 121
- 1
- 1
- 5
0
votes
1 answer
Error in final launch sequence Failed for OpenOCD (Olimex) for ARM (STM32fxx)
I am using openOCD in eclipse for the arm STM32F10x series and after writing the whole code and building everything without error in the program, I am going to Debug it and I am getting the following error after completion of 99% of the…

user2135163
- 1
- 1
0
votes
1 answer
eclipse debugging (CDT) console writeline
I'm trying to debug my stm32f0 with eclipse(CDT), gdb and openocd. Is there any way (like you do in for example visual studio) to have a var print to the console. Something like console.writeline or debug.writeline?
thanks

Bart Teunissen
- 1,420
- 5
- 20
- 43
0
votes
1 answer
Why does GDB hang when using OpenOCD in remote pipe mode?
I'm using GDB and OpenOCD to debug a simple program on my STM32F4DISCOVERY board on Windows. This works fine when starting OpenOCD separately, and using TCP/IP to connect to it, with something like this:
target remote localhost:3333
When I'm done,…

Mark
- 11,257
- 11
- 61
- 97
0
votes
1 answer
JTAG + openocd + kernel debugging (no debug information in vmlinux ?)
When I connect to target from eclipse I get the message:
symbol-file /opt/Tixi_Repos/KiwiG6v2/buildroot-2011.05/package_tixi/linux-2.6.39/arch/arm/boot/compressed/vmlinux
target remote localhost:3333
start () at…

Bartlomiej Grzeskowiak
- 1,009
- 5
- 16
- 35
0
votes
1 answer
debugging multi-source (asm and c) program with gdb (target arm) via openocd
i want to debug stepwise through the sources of a program that is formed by the linker from multiple object files.
For simplicity i assume that one source is an assembly-file, where the startup routines are located and the other is a c-file. The…

user1146332
- 2,630
- 1
- 15
- 19
-1
votes
1 answer
Error setting up openocd in windows mysys for esp32
Hi i am trying to set up Openocd in windows 10 by following https://docs.espressif.com/projects/esp-idf/en/v4.1/api-guides/jtag-debugging/building-openocd-windows.html from espressif documentation page.
I am struck with ./bootstrap process…

yogeshwaran
- 1
- 1
-1
votes
1 answer
OPENOCD Flashing a FT2232 Chip
I am currently trying to flash a board through a FTDI2232H chip.
For this purpose I use openocd with the vendors config file
sudo openocd -f lpc2xxx_asctecusbjtag05.cfg
which looks like this:
interface ft2232
ft2232_layout oocdlink
ft2232_vid_pid…

DentOpt
- 77
- 1
- 6
-1
votes
2 answers
Openocd: Write a value to flash address
I want to write a specific value to an address in flash using openocd.
The address is 0x0003FFF0. ANd the value I want to write to it is 0xFFFFC000.
To erase that address I used:
flash erase_address 0x0003FFF0 2048
but got an error message address…

homeGrown
- 375
- 1
- 8
- 25
-1
votes
2 answers
Openocd cygwin dependent remove
I build openocd on windows using cygwin.
Steps followed:
But when I tried to use this openocd on another system, it asked for a few cygwin dlls. Is there any way to escape from requiring cygwin dlls when using openocd.

anandamu16
- 103
- 1
- 2
- 9
-1
votes
1 answer
STM32F722EZ Nucleo, ST-Link-v2-1, Openocd 0.10.0 open failed in "init" and "ocd_bouncer"
Windows7 64bit
With the Nucleo connected to USB port I was able to use ST-LINK Utility to download the hex file to the board successfully. But after execute the command:
..\bin\openocd.exe -f board\st_nucleo_f7.cfg
With st_nucleof7.cfg contains…

Bdang
- 1
- 2
-1
votes
1 answer
how to get the "GDB OpenOCD Debugging" plug-in in Kepler Eclipse
I am using latest version of Eclipse ie Kepler in that how to update/install the "GDB OpenOCD Debugging" plug-in tool.

Yesu babu Gude
- 27
- 7
-2
votes
0 answers
failed to launch openocd gdb server: error: spawn enoent
Please help me to overcome this issue
I want to debug the code using debug probe. I am unable to know whether I have installed OPENOCD and GDB correctly or not . While Run and debug the file it is throwing error. Please help me out