Questions tagged [openocd]
Open On-Chip Debugger. Free and Open On-Chip Debugging, In-System Programming and Boundary-Scan Testing
73
questions
0
votes
0
answers
8
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. ...
0
votes
1
answer
61
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 ...
0
votes
1
answer
137
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 ...
1
vote
0
answers
138
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:
...
0
votes
1
answer
461
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 ...
1
vote
0
answers
227
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 ...
1
vote
1
answer
313
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 ...
1
vote
0
answers
245
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 ...
0
votes
0
answers
84
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 ...
0
votes
0
answers
413
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:
...
1
vote
1
answer
1k
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 ...
0
votes
0
answers
527
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
...
0
votes
0
answers
69
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 ...
3
votes
1
answer
4k
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:
...
1
vote
1
answer
413
views
Debugging Cortex-M7 with data cache
I'm using gdb, openocd and stlink to debug an application running on STM32H7. When data ...
0
votes
2
answers
2k
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 ...
0
votes
1
answer
4k
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)...
1
vote
3
answers
314
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 ...
1
vote
0
answers
200
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
...
0
votes
0
answers
186
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:
...
1
vote
1
answer
5k
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 ...
0
votes
0
answers
122
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 ...
1
vote
1
answer
5k
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 ...
0
votes
0
answers
504
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 ...
4
votes
2
answers
396
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 ...
1
vote
1
answer
908
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 ...
0
votes
1
answer
277
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....
1
vote
0
answers
838
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
0
answers
612
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 ...
0
votes
2
answers
1k
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 ...
2
votes
0
answers
398
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 ...
0
votes
0
answers
196
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 ...
-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.
...
1
vote
0
answers
651
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 ...
0
votes
0
answers
446
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
1
answer
447
views
Intermittent NVM programming error
Occasionally I'll get the following errors while programming my SAMD21 chip. Anyone know the reason?
...
3
votes
1
answer
445
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?
...
0
votes
2
answers
606
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 ...
9
votes
2
answers
6k
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 ...
1
vote
0
answers
157
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....
0
votes
0
answers
133
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
0
answers
168
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-...
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 ...
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 ...
1
vote
1
answer
638
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 ...
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 ...
5
votes
2
answers
3k
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 ...
3
votes
1
answer
710
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.
...
0
votes
2
answers
433
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.
...
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 ...