The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
9
votes
0answers
1k 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 ...
1
vote
0answers
23 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
22 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
0answers
19 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
2answers
58 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 ...
0
votes
1answer
103 views

Intermittent NVM programming error

Occasionally I'll get the following errors while programming my SAMD21 chip. Anyone know the reason? ...
0
votes
0answers
34 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: ...
3
votes
1answer
978 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 ...
0
votes
0answers
22 views

Command from Openocd to deactive Target

Can someone tell me if there is a command from OpenOcd that we can deactivate/stop the Target for a while? (like when we press the reset button) I am flashing 4 devices in a daisy-chain with Jtag and ...
1
vote
0answers
48 views

OpenOCD flash writing failure with STM32L071C8 MCU

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 ...
3
votes
1answer
1k 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 ...
0
votes
0answers
34 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 ...
0
votes
0answers
40 views

openocd with NUCLEO-F756ZG and linker script for compiler

I am a beginner in arm cortex m7, i bought NUCLEO-F756ZG board and when i was trying to apply this tutorial i faced two difficulties. First: i didn't find linker script for my board (NUCLEO-F756ZG) ...
5
votes
2answers
1k 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 ...
0
votes
0answers
30 views

When using OpenOCD, GDB load erases bootloader: sectors too big?

Let me start off by saying this is the first time I've tried using OpenOCD. Ultimately my goal is to debug an ATSAMD21G18, and what I have available is a RedBear's DAPLink V1.0 USB Interface. The ...
-2
votes
2answers
149 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
0answers
153 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
0answers
112 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
57 views

flash a .BIN with openOCD

I'm using a TI micro controller TM4C1230C3PM to flash a .bin using JTAG and openOCD .i have a board with tag connection tc2050 , I have everything connected but when i open the command window of ...
0
votes
0answers
25 views

Relationship of openocd to debug options

I recently purchased a Segger jlink pro, and in attempting to make NetBeans talk embedded gdb, I have run across numerous blogs about the use of openocd. My initial understanding is that openocd was ...
1
vote
1answer
125 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
2answers
213 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 ...
3
votes
1answer
452 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
0answers
103 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
0answers
105 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
78 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
2answers
571 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 ...
5
votes
1answer
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 ...
14
votes
1answer
14k views

How do I print debug messages to gdb console with STM32 discovery board using GDB, OpenOCD and arm-none-eabi-gcc?

I'm programming an STM32 Cortex M0 discovery board (32F0308DISCOVERY) using OpenOCD, arm-none-eabi-gcc, and gdb. I was wondering if there is any straightforward way to log debug messages over SWD. I'...
1
vote
1answer
409 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 ...
15
votes
6answers
3k views

What unit test framework can I use for a c based mcu project?

I'm thinking about how I can use unit tests in my mcu project, and what frameworks I can use to simplify it. Today I am using a stm32 with OpenOCD-jtag from a Linux pc, where it is all controlled ...
1
vote
1answer
3k 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 ...
2
votes
1answer
395 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. ...
1
vote
1answer
803 views

Why is it necessary to halt program execution for the breakpoint to be effective?

When I'm following this procedure, program execution is successfully stopped when the payload program is run: Setting breakpoint to beginning of program which is gets loaded by the bootloader ...
1
vote
1answer
3k views

openOCD flash 'erase_sector' command NOT erasing lpc1768?

I am trying to debug LPC1768 using a JTAG debugger and openOCD(version 0.7.0). My os is Win7 . I'm connetced to the openOCD via telnet(port 4444) commands like halt, flash info, resume etc do work ...
0
votes
2answers
377 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. ...
0
votes
1answer
338 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 ...
6
votes
2answers
22k views

STM32 - Problem debugging using openocd and st-link

I am trying to follow this guide "Installing a toolchain for Cortex-M3/STM32 on GNU/Linux" (available: https://www.olimex.com/Products/ARM/ST/STM32-H103/) with the STM32-H103 development board from ...
0
votes
1answer
2k views

Eclipse and OpenOCD works only, if I program the MCU on Discovery board

I'd like to program and debug an STM32F030 MCU with Eclipse, OpenOCD and ST-link. I have an STM32F4 Discovery board that includes an ST-link debugger. Programming the STM32F4 MCU on the discovery ...
2
votes
1answer
1k views

Multiple errors when writing image file with OpenOCD and Stlink v2 to NRF51822

I want to flash a firmware on my nrf51822 module I was trying an example from Nordic, I concatenated the bin file with the s110 file and it worked fine. Now, when I went ahead to flash the bin file, ...
0
votes
1answer
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 ...
0
votes
3answers
1k 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 ...
1
vote
1answer
509 views

When issuing GDB `continue` in RAM, can I write to the adresses from which I `continue`d?

I'm just writing some test programs in order to get to know the STM32F4 (ARM Cortex M4). The development board I'm using has U-Boot preinstalled in flash. When the board is up and running and U-Boot ...
4
votes
1answer
2k views

Using RTOS support in OpenOCD

I can see that OpenOCD is RTOS aware and it supports FreeRTOS, which I'm using at the moment. I have looked at various sources and cannot seem to figure how to use this feature.
4
votes
2answers
9k views

STM32F4 Discovery + Mac OS X + GCC + OpenOCD + Eclipse

I'm interested in buying an STM32F4 Discovery from ST Microelectronics. I'm using Mac OS X, 10.8 and would like to use a toolchain including GCC OpenOCD for debugging Eclipse IDE / IntelliJ IDEA ...
0
votes
1answer
346 views
3
votes
1answer
2k views

What do these OpenOCD CPU states mean?

Here is what the documentation has to say: ...
2
votes
0answers
487 views

Memory layout problem when debugging, flashing works fine

My openocd configuration script: ...
0
votes
1answer
475 views

Strange error when connecting JTAG

My setup: Common) CPU: at91sam7x512, JTAG: olimex-arm-usb-tiny-h, proprietary single-CPY board 1) Windows 7, OpenOCD 0.0.4 <- works 2) Ubuntu 13.04, OpenOCD 0.7.0 <- strange error There ...
1
vote
2answers
977 views

Error in final launch sequence Failed for OpenOCD (Olimex) for ARM (STM32fxx)

I am using openOCD in eclipse for the arm STM32F10x series. After writing the whole code and building everything without error in the program, I am going to debug it and I am getting an error after ...