Skip to main content

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
0 votes
0 answers
33 views

[iMX93evk]:OpenOCD throws "JTAG scan chain interrogation failed: all ones" error

I am trying to enable jtag debugging via openocd on imx93evk, executing the below command openocd.exe -s share\openocd\scripts -f interface/ftdi/imx93-evk.cfg -f board/imx93-evk.cfg however I am ...
Gaurav Sharma's user avatar
0 votes
1 answer
204 views

CJTAG Bit Banging - Just Erase the Flash

As in another question, I have a CC2652 which is locked in cJTAG mode. I would like to completely erase the flash memory so that the bootloader is re-enabled, but I don't have a JTAG or cJTAG ...
bobuhito's user avatar
  • 554
0 votes
1 answer
503 views

STM32F407ZET6 could not verify ST device

I have a setup where I bought a STM32F407ZET6 dev board from AliExpress and have been using for almost 6 years using STM32Cube IDE. It was only until i updated my IDE from 1.6 to 1.14 when it started ...
Sheikh Muhammad Junaid Aslam's user avatar
1 vote
0 answers
159 views

OpenOCD: unable to find a matching CMSIS-DAP device in WSL

I am trying to connect GDB in WSL to an Atmel SAMV71 Xplained Ultra board. I am getting stuck trying to get OpenOCD to connect to the board. I am using the following OpenOCD config file: ...
embedded.kyle's user avatar
0 votes
0 answers
31 views

TI DM368 access via JTAG with openocd or jlink commander

I have a board with a TI DaVinci TMS320DM368 processor. It users a NAND to boot from for its Linux operating system. The bootloader in the NAND appears to have become corrupt and can no longer boot. ...
bozmanx's user avatar
0 votes
1 answer
169 views

How to upload image to flash of PSoC with openocd?

I am trying to program PSoC 4100 family (for testing I also use CY8CKIT-059 PSoC 5LP) over Raspberry Pi 4 model B using OpenOCD. I have never used OpenOCD, so can someone help me understand how I can ...
Urban's user avatar
  • 153
1 vote
2 answers
266 views

STLinkV3 debugging on custom hardware

When running a program on my STM32L432 Nucleo board it runs just fine. I recently created a custom PCB that embeds the same MCU and I use an external STLinkV3 to program it. I am able to connect to ...
Jeremy Wolfe's user avatar
1 vote
0 answers
176 views

Raspberry Pi 4 running OpenOCD can't flash ATSAMC21G18A that drives SWD pins

I'm attempting to flash a Duet 3 ToolBoard 1LC that drives some lights on the board using the SWD pins from a Raspberry Pi running OpenOCD 0.11.0. I'm using the following configuration: ...
Wulfsta's user avatar
  • 11
0 votes
1 answer
930 views

Salvaged STM32 programming with ST-Link V2 clone

I bought a ST-Link V2 clone to try and program a STM32 MCU that I salvaged from a hoverboard PCB (STM32F031C6T6). I've been having some difficulty getting it to work. I downloaded STM32CubeIDE and set ...
Stuyvenstein's user avatar
2 votes
0 answers
443 views

Programming with OpenOCD config file - how do I know my layout_init signal?

we designed a custom board that contains wifi module: EWB-STERLING,(453-00014R ) with STM32F412 chip. I succeed in programming the module, but I noticed that it does not send a reset after each ...
Knowledge's user avatar
  • 443
1 vote
1 answer
537 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 ...
Edwin Fairchild's user avatar
1 vote
0 answers
357 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 ...
Edwin Fairchild's user avatar
0 votes
0 answers
123 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 ...
Naveen's user avatar
  • 119
0 votes
0 answers
549 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: ...
shomov's user avatar
  • 31
1 vote
1 answer
2k 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 be straightforward, and I also have a Launchpad, which you can imagine ...
Daniel's user avatar
  • 969
0 votes
0 answers
753 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 ...
Bruno Pimenta's user avatar
0 votes
0 answers
81 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 ...
Djole's user avatar
  • 33
3 votes
1 answer
5k 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: ...
personal_cloud's user avatar
1 vote
1 answer
556 views

Debugging Cortex-M7 with data cache

I'm using gdb, openocd and stlink to debug an application running on STM32H7. When data ...
jpa's user avatar
  • 8,843
0 votes
2 answers
3k 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 ...
The_M_Code's user avatar
0 votes
1 answer
5k 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)...
kavon7's user avatar
  • 3
1 vote
3 answers
384 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 ...
James B. Reese's user avatar
1 vote
0 answers
237 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 ...
beginner's user avatar
0 votes
0 answers
236 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: ...
xyf's user avatar
  • 345
1 vote
1 answer
7k 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 ...
personal_cloud's user avatar
0 votes
0 answers
128 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 ...
Shandorius's user avatar
1 vote
1 answer
6k 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 ...
Shandorius's user avatar
0 votes
0 answers
536 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 ...
mitim's user avatar
  • 145
4 votes
2 answers
557 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 ...
Colorado.Rob's user avatar
1 vote
1 answer
1k 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 ...
K.Mulier's user avatar
  • 2,369
0 votes
1 answer
350 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....
Asusrog's user avatar
  • 85
1 vote
0 answers
918 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 ...
Donald B's user avatar
1 vote
0 answers
745 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 ...
Ramazuri's user avatar
0 votes
2 answers
2k 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 ...
eimvs's user avatar
  • 45
2 votes
0 answers
498 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 ...
Mercury Avangburg's user avatar
0 votes
0 answers
197 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 ...
borizzzzz's user avatar
  • 113
-2 votes
2 answers
3k 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. ...
MrSynAckSter's user avatar
1 vote
0 answers
732 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 ...
Mercury Avangburg's user avatar
0 votes
0 answers
463 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 ...
Ivan Baldin's user avatar
0 votes
1 answer
477 views

Intermittent NVM programming error

Occasionally I'll get the following errors while programming my SAMD21 chip. Anyone know the reason? ...
Matt Thomas's user avatar
3 votes
1 answer
490 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? ...
Tùng Bill's user avatar
0 votes
2 answers
677 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 ...
Gus W's user avatar
  • 1
9 votes
2 answers
7k 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 ...
K.Mulier's user avatar
  • 2,369
1 vote
0 answers
168 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....
Steve's user avatar
  • 1,113
0 votes
0 answers
142 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"...
19172281's user avatar
  • 743
0 votes
0 answers
169 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-...
ConfusedCheese's 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 ...
Adrian Maire's user avatar
4 votes
1 answer
1k 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 ...
Juan Manuel López Manzano's user avatar
1 vote
1 answer
700 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 ...
Tom's user avatar
  • 356
1 vote
1 answer
6k 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 ...
Andrew Straw's user avatar