Questions tagged [openocd]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
49 views

Does ARM gdb not have TUI layout support?

If it run arm-none-eabi-gdb -tui myProject.elf This returns TUI mode is not supported If I run it without the -tui flag and ...
user avatar
1 vote
0 answers
42 views

OpenOCD stuck listening on ports

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 on the eclipse console, it never gets past this listening ...
user avatar
0 votes
0 answers
25 views

How to decide if Flyswatter2 can support a particular development board or not?

I am new to JTAG debugging and have already got a Flyswatter 2 unit with me. This is my first experience with any JTAG debugger so I am not really sure what to look for to find if its compatible with ...
user avatar
  • 109
0 votes
0 answers
76 views

Error: timed out while waiting for target halted

trying to debugging project OpenOCD on Lattice Crosslink-NX device, but I'm catch an error: ...
user avatar
  • 1
0 votes
0 answers
138 views

SAMD11 Failed to program bootloader using OpenOCD

Environment: Software: macOS 11.5.2 OpenOCD 0.11.0 installed through Homebrew Hardware: NanoDAP (CMSIS-DAP compatible) Custom board Problem I designed a custom board with an ATSAMD11D14A-SSNT ...
user avatar
  • 161
0 votes
1 answer
470 views

Flashing TI Chips with OpenOCD

I'm trying to flash a CC2652 chip from TI with OpenOCD via Raspberry's GPIO (or SPI, or whatever suitable). This doesn't seem to straightforward, and I also have a Launchpad, which you can imagine as ...
user avatar
  • 375
0 votes
0 answers
113 views

flash at32f403 with st-link using openocd

I'm trying to flash my hoverboard which has the at32f403 chip and the procedure to do that according to the github is describe in the link below: https://github.com/cloidnerux/hoverboard-firmware-hack ...
user avatar
0 votes
0 answers
45 views

OpenOCD debugging issue with st link

I purchased STM32F69 discovery board and installed Eclipse with MCU plugin for C/C++ development and also OpenOCD. While experimenting with some sample code, debugging stops at the only breakpoint I ...
user avatar
  • 23
0 votes
0 answers
1k views

Openocd cannot find CMSIS-DAP device

I compiled openocd from git (latest commit: March 7, 2021) with --enable-cmsis-dap. openocd cannot open my CMSIS-DAP device: ...
user avatar
1 vote
1 answer
142 views

Debugging Cortex-M7 with data cache

I'm using gdb, openocd and stlink to debug an application running on STM32H7. When data ...
user avatar
  • 4,680
0 votes
2 answers
688 views

Debugging STM32 with OpenOCD, STM32 for VSCODE won't work or flash, Configuration issue maybe?

First and for most I googled a lot and Its been a week of searching with no solution at all. Please bare with me! I tried to add all necessary info! Please request more If you need. My problem is: I ...
user avatar
0 votes
1 answer
2k views

ST-Link cannot software reset my STM32 MCUs over SWD

I've been working on a problem with two different boards (one using an STM32F7 and the other using STM32F3). When attempting to program the boards (using an ST-Link provided on Nucleo/Discovery boards)...
user avatar
  • 3
1 vote
3 answers
200 views

Samd51 Handler HardFault

I am trying to upload a simple program that does nothing to my samd51. Here is the code: void main(){} I have compiled it to the exact samd51 model I have using ...
user avatar
1 vote
0 answers
122 views

Multiple FPGAs with flash

i have a board with two FPGAs (Xilinx 7-series xc7k160t) and each of them has its own flash memory. To reflect this in my config file i used ...
user avatar
0 votes
0 answers
108 views

Getting Connection Refused error upon running openocd

I'm having a bit of trouble setting up an openocd debugger in Eclipse. Upon running debug configurations, I get: ...
user avatar
  • 195
1 vote
1 answer
3k 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 ...
user avatar
0 votes
0 answers
77 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 ...
user avatar
1 vote
1 answer
2k views

OpenOCD throws "JTAG scan chain interrogation failed: all zeroes" error

I am trying to install openWRT on a router using my Raspberry Pi Zero. I am following the exact steps as explained in http://www.alfredklomp.com/technology/experia-v8/ However, for some reason I keep ...
user avatar
0 votes
0 answers
389 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 ...
user avatar
  • 145
2 votes
1 answer
215 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 ...
user avatar
1 vote
1 answer
634 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 ...
user avatar
  • 2,247
0 votes
1 answer
188 views

stm32f429 hardware development

I have built a custom stm32f429 board. It uses SPI, I2C, UART and CAN for communication with various sensors. This is my first stm32f429 board, i've designed boards around stm32f3 and f1 series before....
user avatar
  • 75
1 vote
0 answers
651 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 ...
user avatar
1 vote
0 answers
295 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 ...
user avatar
0 votes
2 answers
842 views

Live variable view using openOCD and VScode

I really like using VScode + cortex debug extension + openOCD over Keil or Eclipse in embedded projects. Although i wasn't able to figure out how to set up live variable view, which you can set up ...
user avatar
  • 45
2 votes
0 answers
299 views

OpenOCD flash writing failure with STM32L071C8 MCU [closed]

I have designed custom-made PCB with STM32L071C8 MCU. I'm using OpenOCD 'master' branch and SWD interface via FT2232H to debug the MCU. I successfully did some RAM reading and Flash writing, erasing ...
user avatar
0 votes
0 answers
194 views

Can I do on-chip debugging on atmega328p with gdb (command line)? [duplicate]

Is there a way of doing on-chip debugging of Arduino Uno (atmega328p) with gdb on the command line? I'm looking for something simplistic and excluding IDE solutions like Eclipse and Atmel Studio. I ...
user avatar
  • 113
-2 votes
2 answers
2k views

OPENOCD Error codes: How do I fix this? [closed]

I have a chip I am trying to use JTAG communications with using openOCD. However, I get the following error. ...
user avatar
1 vote
0 answers
412 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 ...
user avatar
0 votes
0 answers
352 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 ...
user avatar
0 votes
1 answer
370 views

Intermittent NVM programming error

Occasionally I'll get the following errors while programming my SAMD21 chip. Anyone know the reason? ...
user avatar
2 votes
1 answer
313 views

Flashing multi chips with JTAG using openocd

I'm newbie in this field. My task is I have to flash 6 devices with JTAG like the picture below. I'm currently success with flashing one device. Can someone give me advice how to flash all 6 devices? ...
user avatar
0 votes
2 answers
500 views

How to connect custom stm32 board to debugger

I have a custom STM32 microcontroller board. I have verified all of the electrical connections, and I am able to program the board with Texane's st-flash utility. However, I would like to debug the ...
user avatar
  • 1
8 votes
2 answers
4k views

SWDAP vs CMSIS-DAP vs DAPLink

EDIT : I got the basic questions (for example, what is CMSIS-DAP?) answered by user @Nipo. Based on that, I restructured my post in a more logical way. Hopefully ...
user avatar
  • 2,247
1 vote
0 answers
131 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....
user avatar
  • 845
0 votes
0 answers
122 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"...
user avatar
  • 591
0 votes
0 answers
159 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-...
user avatar
0 votes
2 answers
1k views

Programming a STM32F407 with a Raspberry PI: No answer on JTDO

Introduction Getting in touch for the first time with an ARM MCU (the STM32F407ZE), I am trying to generate a first working "Hello world!" blinking led. For programming the MCU, it seem possible ...
user avatar
3 votes
1 answer
891 views

Can't program multiple chips using JTAG

SOLVED - LOOK UNDER "EDIT 3" SUBTITLE. I've got this two chips: Board with LPC4337(left) and board with ATSAM3X8E(right), JTAG interconnected, using FT2232H chip soldered on the board of the left as ...
user avatar
1 vote
1 answer
552 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 ...
user avatar
  • 316
1 vote
1 answer
5k views

Is it possible to get ST-LINK's virtual COM port working without launching any program in Ubuntu?

I did some development on a Nucleo-64 board (specifically the NUCLEO-F303RE with the STM32F303RE microcontroller) and used OpenOCD and GDB with target remote :3333 ...
user avatar
4 votes
2 answers
2k views

How to disable USB mass-storage in STLink on Nucleo?

Is it possible to disable the USB Mass Storage option on the STLink hardware of the Nucleo board? I want to prevent mounting the device when I plug it into computers (while keeping the virtual com ...
user avatar
3 votes
1 answer
582 views

Reverse engineering target chip to be used with OpenOCD

I have a board that has JTAG pins and I want to connect OpenOCD to the board. However the CPU chip identification number is not written on the chip and I couldn't find the datasheet of the board. ...
user avatar
  • 41
0 votes
2 answers
425 views

stm32f051 Overwritten reserved

I think I may have overwritten the reserved bits when messing with GPIO on my board. Now when I try to connect with OpenOCD it gives an error. ...
user avatar
3 votes
1 answer
1k views

How to use RPI 2 to debug RPI model B via JTAG with OpenOCD

I have a RPI 2 that I want to use for programming and debugging a RPI model B over JTAG for a bare metal project. Right now I'm having trouble to get the two boards to even talk to each other over ...
user avatar
  • 31
0 votes
1 answer
482 views

XDS100v2 OpenOCD Support

I've read a lot of post saying that TIs XDS100v2 JTAG emulator is not supported by OpenOCD. However, looking at this link, I see that the XDS100v2 is a supported FTDI chip. So I'm kind of confused on ...
user avatar
5 votes
1 answer
2k views

STM32F3 Discovery + GNU ARM plugin + OpenOCD - cannot load the binary onto the board

I'm using the GNU ARM plugin for Eclipse with Open OCD as a debugger. This is on Windows 10 x64. The problem I'm facing is the following error when trying to debug or run the sample program: Error ...
user avatar
0 votes
1 answer
2k views

OpenOCD init Failed

The title says it all. One thing to say before going into detail about the issue. I am a complete beginner at using the terminal in Ubuntu that I need help with the codes to fix this issue. Long ...
user avatar
9 votes
0 answers
2k views

Problems while trying to flash a memory using openocd and jtag [closed]

I'm using openocd and jtag for the very first time in my life (after 30 years of playing with electronics), when I dump the flash using dump_image, I got a 4 byte sequence (0x80 0x01 0x59 0x18) in ...
user avatar
0 votes
3 answers
2k views

Why are words in reverse order when reading from a flash?

I dumped the contents of a NAND flash chip, and do not understand why would each of the words in the image be in the reverse order. This CFI-compatible flash is connected to a TI AR7 SoC that ...
user avatar