Questions tagged [openocd]

Open On-Chip Debugger. Free and Open On-Chip Debugging, In-System Programming and Boundary-Scan Testing

19 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
1answer
43 views

STM32 SWO & OpenOCD with Variable SysClock

I have been using SWO with STM32 chips for debugging for a number of years. I have managed to side-step this issue until now. I would like to be able to use SWO for debugging while varying the ...
2
votes
0answers
518 views

Memory layout problem when debugging, flashing works fine

My openocd configuration script: ...
1
vote
0answers
51 views

OpenOCD: enabling SWD on STLINK-V3

I am starting with a simple STM32 board that has only SWD (i.e., SWDIO, SWCLK, SWO, and NRST) and 3V power supply. (Yes, I have double-checked the connections of all of the above pins, both on the ...
1
vote
1answer
156 views

Can't get Flyswatter2 probe to work with OpenOCD

I've got a Flyswatter2 flash/debug probe from the company Tin Can Tools (see https://www.tincantools.com/product/flyswatter2). Unfortunately, I can't get it to work with OpenOCD. Below is a detailed ...
1
vote
0answers
258 views

LPC-Link2 Not Working as CMSIS-DAP with OpenOCD

I'm working on a project with the NXP LPC824 using VisualGDB and OpenOCD. Using the LPCXpresso824-MAX dev board I had no trouble programming and debugging using OpenOCD. I am using the version of ...
1
vote
0answers
68 views

JTAG scan chain interrogation fails

I am currently trying to get my Bus Blaster v4.1a to work. I want to use openocd to communicate with a device over JTAG. The device that I want to communicate with is a Qualcomm_qca4531. First of all ...
1
vote
0answers
248 views

OpenOCD FT2232H as SWD debugger with STM32L0 mcu

I would like to debug my MCU with OpenOCD. I run this command: openocd -f interface/ftdi/minimodule-swd.cfg -f target/stm32l0.cfg and then I get this prints from ...
1
vote
0answers
111 views

OpenOCD debugger in Eclipse Neon 4.6.2 Error in final launch sequence

I have been struggling with OpenOCD debugger under Eclipse Neon 4.6.2. Whenever I run the debug configuration I receive below given error message I have been attempting to debug the STM32F417VGT6 MCU....
1
vote
1answer
453 views

JTAG, OpenOCD and Atmel SAM3X

I'm trying to set up OpenOCD debugging through a JTAG port on a custom board with an Atmel ATSAM3X8E microcontroller. OpenOCD is running on a Raspberry Pi using the bcm2835 native GPIO. The JTAG ...
0
votes
0answers
26 views

Trying to write u-boot to router flash “Connection closed by foreign host”

I am trying to write a .bin file to the flash memory of my router. I am following the steps as outlined here as I am using the exact same router and a raspberry pi as well. However, although I am ...
0
votes
0answers
12 views

OPENOCD: Flashed code doesn't persist after reset

I have a SAM4E-Xplained-Pro Board. Everything works ok with atmel studio. I'm trying to set a development environment with openOCD. I was able to load and run my code through gdb, but after resetting ...
0
votes
0answers
58 views

Programming issue when uploading bootloader to samd11 via OpenOCD on RPI

I'm attempting to flash a bootloader on to an atsamd11c14a using openocd on an rpi model 3b+ but encountering some trouble. No issues on installing openocd (following adafruit's guide) and I believe ...
0
votes
0answers
25 views

OpenOCD prints only the last command's result in terminal

I'm using a fresh build of OpenOCD (Open On-Chip Debugger 0.10.0+dev-01047-g09ac9ab1 (2020-02-05-18:51)) on Raspbian, trying to read a few register values (http://...
0
votes
0answers
17 views

OpenOCD Interpreter Flag

I'm using OpenOCD and GDB to program an STM32 processor. I'm planning to programatically interface with the GDB server that OpenOCD runs using a Python library: pygdbmi. The library states: To ...
0
votes
0answers
50 views

Problem flashing eddystone example to nrf 51822

I'm trying to flash eddystone beacon example of SDK version 12.3.0 to this board: It should be a Radioland product and use a NRF51822 chip. Using openocd on Raspberry Pi Zero with raspbian I can ...
0
votes
0answers
149 views

Openocd FTDI “Error: DP initialisation failed”, …missing some finetuning?

I am trying to connect CEC1702 (ARM Cortex M4F) to SWD port of FT2232H. My adapter script: ...
0
votes
0answers
183 views

Loading program with OpenOCD

I'm on a system with external flash, so I'm unable to program it easily. However, I can load firmware through JTAG - OpenOCD - GDB chain. I automated it as far as I'm able with ...
0
votes
0answers
109 views

Flashing LPC1768 with OpenOCD

I'm venturing into JTAG flashing, and thought OpenOCD would be a good place to start. I had a quick look through the documentation and found it hideously complicated. Likewise, the very few "tutorials"...
0
votes
0answers
123 views

OpenOCD Eclipse STM32VL problem

I am working through setting up eclipse with openOCD to program a STM32VL discovery board using the following guide https://www.carminenoviello.com/2014/12/28/setting-gcceclipse-toolchain-stm32nucleo-...