OpenOCD stands for Open On Chip Debugger and is a program used to debug embedded platforms, mostly via JTAG.
Questions tagged [openocd]
286 questions
3
votes
4 answers
Problem Flashing nrf52 chip using Openocd
I have a custom nrf52 chip on a pcb with swd pins exposed. I have cloned and installed the latest openocd from https://github.com/ntfreak/openocd. The latest version includes all the latest pathes for the nrf52 chip, so no need for any additional…

ched
- 83
- 3
- 10
3
votes
0 answers
OpenOCD + nRF52810 + ST Link V2 load sample hex
I have module nRF52810, which I want to load a sample hex from internet. I wanted to use OpenOCD program to that but I have a few problems
when I use that the command
openocd -f interface/stlink.cfg -f target/nrf52.cfg -c "reset_config none; program…

Hamilcar Barca
- 31
- 3
3
votes
3 answers
show Cortex-M4 SWO log with openocd
I'm using ubuntu, openocd and stlink to develop stm32f407-discovery,
I'm learning to use ITM module through SWO pin to get log from chip. Finally, I found that openocd command
tpiu config internal /tmp/swo.out uart off 168000000
It's perfect to get…

aaa SA
- 321
- 1
- 8
- 16
3
votes
2 answers
Openocd how to write option bytes to STM32F4
I have two boards with a STM32F437 (IGH6 7BA4S VQ PHL 7B 542) processor. We program these with openocd and a jtag, however lately one card stopped working. It is no longer possible to program the card and one of the differences we have found is that…

Heneer
- 313
- 6
- 17
3
votes
2 answers
Cannot find script files with OpenOCD
I'm trying to use OpenOCD together with my ST discovery board, following this tutorial: https://japaric.github.io/discovery/README.html. When verifying the OpenOCD installation I get the following error:
I've tried providing absolute paths to all…

Simon Carlson
- 1,919
- 5
- 24
- 35
3
votes
1 answer
openocd freertos awareness can't start gdb
I have a setup with openocd and arm-none-eabi-gdb and I'm trying to debug a FreeRTOS fw.
I start openocd with:
openocd -f /usr/local/share/openocd/scripts/board/stm32f0discovery.cfg -c "stm32f0x.cpu configure -rtos auto"
That command works…

evading
- 3,032
- 6
- 37
- 57
3
votes
1 answer
OpenOCD - Can't find target/swj-dp.tcl
I have troubles to use OpenOCD. For some reasons OpenOCD can't find swj-dp.tcl but the file is existing in C:\OpenOCD\share\openocd\scripts\target.
Open On-Chip Debugger 0.9.0 (2015-08-15-12:41)
Licensed under GNU GPL v2
For bug reports, read
…

Drimer
- 93
- 2
- 14
3
votes
2 answers
How to setup LLDB with "openocd and JTAG board"
I'm trying to use lldb with openocd/jtag board but I'm in trouble.
I already use openocd with gdb to develop on L0 STMicroelectronics board and it works perfectly.
Now I want the same with lldb.
I do that on LLDB host side
$ lldb bin/token.elf…

cslashm
- 253
- 3
- 5
3
votes
1 answer
Flash and debug STM32F7 discovery with openocd
I recently bought an STM32F7 discovery board [1], and I am therefore trying to flash it using openocd, since the board has an embedded st-link debugger. I have my toolchain working (I am using makefiles and arm-none-eabi-gcc), but I would like to…

Antoine
- 63
- 2
- 6
3
votes
3 answers
Configuring GCC with FreeRTOS and OpenOCD
I'm pretty sure this is possible but I'm not sure how to go about it. I'm very new to building with GCC in general and I have never used FreeRTOS, but I'd like to try getting the OS up and running on a TI ARM Cortex MCU but with a slight twist: I'd…

Anthony
- 2,256
- 2
- 20
- 36
3
votes
2 answers
OpenOCD on Beaglebone Black
This is my first post ever on this board and I am also fairly new to the world of JTAG debugging, I have used a few commercial products before but I would like to make the switch to OpenOCD and I am experiencing a lot of failures so far. I have…

user2137324
- 69
- 1
- 4
3
votes
1 answer
Cannot run STM32 L1 Discovery board
I have fresh STM32 L1 discovery board, and it seems to be broken.
But I am not completely sure.
When connecting board via USB to the Linux machine, board starts
perfectly fine, and the demo works just as described by vendor.
But I am unable to…

mucka
- 1,286
- 3
- 20
- 36
2
votes
1 answer
What does lma mean?
When loading an executable onto a board using OpenOCD and GDB, I get something similar to (snippet taken from here):
$ arm-none-eabi-gdb example.elf
(gdb) target remote localhost:3333
Remote debugging using localhost:3333
...
(gdb) monitor…

Randomblue
- 112,777
- 145
- 353
- 547
2
votes
0 answers
How to use openocd to debug stm32h745-disco board?
I am using a dual core board stm32h745-disco, which contains cortex-m7 and cortex-m4.
When I used openocd to set up the gdb server for the board,
$ openocd -f tcl/board/stm32h745i-disco.cfg
Info : The selected transport took over low-level target…

Spencer
- 31
- 1
2
votes
0 answers
openocd only runs in msys64 shell (and not from vscode debug)
I am trying to debug a raspberry pi pico from vscode using a picoprobe. After a lot of pain I managed to get everything running from a msys2 mingw64 shell (I built openocd in that shell). However, debugging from vscode results in a popup saying…

mlx11
- 170
- 1
- 8