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
3 answers
Why stm32f103's elf file works well, but binary not?
I'm trying to run out my firmware inside stm32f103. So when I use opencod+gdb uploading and debugging elf file, everything is fine, my firmware is working and I can set and remove breakpoints.
But it doens't work when I try to upload this firmware…

Ilya
- 61
- 1
- 10
0
votes
1 answer
Reading and Writing file to end of flash memory in STM32 device
I have some functioning firmware that I am deploying to an STM32 part with 64K of Flash memory (starting at address 0x8000000). I want to use some amount of this memory towards the end of the flash memory space to store a gzipped file on the STM32…

Taako
- 587
- 2
- 6
- 21
0
votes
0 answers
Gui is hanging while sending command through telnet (Java programming)
Hello I'm trying to make a connection to a device with openocd as a server and telnet as client connection. When I try to send command through telnet via java programming my Java Gui hangs without giving any error. Someone please help me to…

Ravikiran
- 45
- 11
0
votes
2 answers
Getting extra bytes with semihosting on STM32L4 chip with openocd and gdb
I try to get some debug output using the SWO pin with openocd version 0.10.0+dev-00512-gfd044600 and gdb-multiarch.
I compiled the firmware with the ARMToolchain_8-2018-q4 with the flags --specs=nosys.specs --specs=nano.specs --specs=rdimon.specs,…

K. Koovalsky
- 596
- 4
- 17
0
votes
1 answer
How to find interface/ftdi/esp32_devkitj_v1.cfg in procedure 'script'?
I'm trying to debug esp32 with ft2232d debugger , however at the openocd running script i'm getting this below mentioned error.
./openocd -s share/openocd/scripts -f ../interface/ftdi/esp32_devkitj_v1.cfg -f board/esp-wroom-32.cfg
Open On-Chip…

Dhananjay Sutariya
- 89
- 2
- 14
0
votes
1 answer
openocd fails to load board/ti_cc26x0_launchpad.cfg
Has anyone got openocd to work with the TI cc2640r2 launchpad? I built the latest openocd source but it fails to initialise.
OS is Ubuntu 18.04.1 LTS and openocd was built with
configure --enable-xds110 --enable-cmsis-dap
make
make…

AndyR
- 1
- 2
0
votes
1 answer
can't debug my board (stm32f103) bluebill with atolic(trueStudio)?
I can't debug my stm32 bluebill board on trueStudio and getting this console error log so can't one help with this error?
STMicroelectronics ST-LINK GDB server. Version 5.1.0
Copyright (c) 2018, STMicroelectronics. All rights reserved.
Starting a…

Hazem Khaled
- 51
- 9
0
votes
1 answer
Image dump fails during operation
I use the openocd script below to dump the flash memory of a STM32 microcontroller.
mkdir -p dump
openocd -f board/stm3241g_eval_stlink.cfg \
\
-c "init" \
-c "reset halt" \
-c "dump_image dump/image.bin 0x08000000 0x100000" \
-c "shutdown"…

sanchop22
- 2,729
- 12
- 43
- 66
0
votes
1 answer
"Unable to start debugging. No process is associated with this object." - STM32F4 with GDB and openOCD in Visual Studio Code
Windows 10
VSCode 1.28.1
VSC CPP Tools Extension 0.19.0
Development board: Multitech MTUDK2-ST
OpenOCD 0.10.0
GDB (7.12.1.20170417.git as part of GNU ARM toolchain 6-2017-q2-update)
Attempting to debug per this setup/example. Compiling binary with…

J Greene
- 115
- 1
- 9
0
votes
1 answer
Flashing STM32f103c8t6 at wrong memory map address
I flashed my blue pill board with the following OpenOCD command and then my OpenOCD does not connect to my board anymore. My boot0 and boot1 pins was grounded.
flash write_image erase blinkled.hex
I forgot to specified the typical init memory map…
0
votes
0 answers
STM32F767ZIT6 Nucleo openocd flash
STM32F767ZIT6 Nucleo board and trying to flash it with blinky code from templates
have populated all the CMSIS and required drivers.
Installed GNU MCU eclipse plugin.
Built the code
Configured openOCD
When trying to debug the code its returns these…

Dinesh-Dev
- 11
- 3
0
votes
1 answer
bitbake task to run openocd
I want to setup a task for a recipe (or a standalone recipe if required) that allows me to run openocd to connect to my development board.
I have an openocd-native recipe.
I create a task added to my recipe like this:
do_openocd[depends] +=…

uglyoldbob
- 143
- 1
- 1
- 9
0
votes
1 answer
One binary halts at breakpoint, the other doesn't - no breakpoint is defined
I'm trying to run a Rust Hello World on my STM32F401xB. I have a working C program for comparison (different functionality, but it verifies the flashing toolchain) and use the same openocd commands to flash both programs onto the controller.
When I…

Silly Freak
- 4,061
- 1
- 36
- 58
0
votes
1 answer
What is the .elf file used in the launch.json of VSCode
I am trying to use VSCode, an ST Link v2, OpenOCD, and Cortex-Debug to code an stm32 ARM Microcontroller. I am running Ubuntu 16.04.4 LTS. I am having trouble in my launch.json file in vscode. Here is what's in the file:
{
"version": "2.0.0",
…

Bzeeno
- 23
- 1
- 4
0
votes
1 answer
Windows (MSYS2) built OpenOCD fails to create sockets
I've cloned openOCD from https://github.com/gnu-mcu-eclipse/openocd
and built it using MSYS2 (MINGW32) shell. Build passed without any trouble and when tried to execute, it failed and gave error "Error: error creating socket".
I enabled debugging…

akhilbaai
- 53
- 7