Questions tagged [openocd]

OpenOCD stands for Open On Chip Debugger and is a program used to debug embedded platforms, mostly via JTAG.

286 questions
0
votes
2 answers

STM32F3Discovery programming with openocd

first of all I'm sorry for my really poor English. I'm learning how to use an STM32F3Discovery board. I wrote a simple program that turn-on all the on-board led, using STMCubeMX for configuration-code generation. The code i've written is just the…
0
votes
1 answer

Openocd reports "Failed with code (1)" for eclipse debugging a STM32F429 Discovery board

When I start a debugging session under eclipse (luna) for my STM32F429 Discovery board. I get the following error: OpenOCD failed with code (1). The information in the console pane is: Open On-Chip Debugger 0.9.0-dev-00223-g1567cae…
Dowd
  • 661
  • 5
  • 9
0
votes
1 answer

"Program File does not exist" while trying to debug with Eclipse/OpenOCD

I recently got a nrf51 bluetooth module and I am trying to debug it with Eclipse Mars. I installed the required toolchain as well as OpenOCD (I am using STLink v2 to debug the board). While running openOCD and arm-none-eabi-gdb in console,…
Ziga Petek
  • 3,953
  • 5
  • 33
  • 43
0
votes
1 answer

Update package version (openocd) in buildroot

I'm working in a project that uses buildroot-2012.11 to generate a Linux image for an embedded system. I need to configure openocd for a JTAG debugger that uses an FTDI chip (FT2232D). I realized that this buildroot version integrate openocd-0.5.0…
0
votes
1 answer

how to "migrate" from cortexM3 to cortexM4

I have an old project, that run on SAM3S( cortex-m3) , I need to use it as a base for a ew project that should run on Sam4S cortex-M4 . After changing the oopeocd.cfg I get this errors, and I don'T get what do they really mean : Error: Target not…
Engine
  • 5,360
  • 18
  • 84
  • 162
0
votes
0 answers

how to plug openOCD with STlink to a PSoC 4?

I have a Cypress PSoC4 kit that I want to be able to debug. I do have an STM32F4-Discovery, so I unplugged the target part of the discovery and plugged it to the cypress kit. I have some troubles configuring OpenOCD to make it understand my…
nraynaud
  • 4,924
  • 7
  • 39
  • 54
0
votes
0 answers

GDB "Target request failed:"

Target request failed: Don't know how to run. Try "help target". I am running eclipse on ubuntu, I configured eclipse to debug with openocd. c project on Eclipse I tried to run eclipse as root permissions. "help target" command output is here (gdb)…
Saim Neftci
  • 85
  • 1
  • 1
  • 11
0
votes
3 answers

Starter kit for bare-metal programming for Beaglebone

i plan to try some bare-metal TCP/IP stuff on a beaglebone. There is TI StarterWare containing the TCP/IP stack which is good. However, to flash my program to BB, I need some JTAG adaptor and software. Which one should I buy/use there so many…
Stasik
  • 2,568
  • 1
  • 25
  • 44
0
votes
1 answer

Configuring secondary core in OpenOCD

I'm having trouble using OpenOCD to program and debug LPC4357 microcontroller. This chip has a Cortex M4 core and a secondary Cortex M0 core. This is OpenOCD config I'm using: source [find target/swj-dp.tcl] adapter_khz 1000 if { [info exists…
Josip
  • 6,677
  • 9
  • 26
  • 27
0
votes
1 answer

Why does libusb_open always returns LIBUSB_ERROR_NOT_SUPPORTED on Windows 8?

I am trying to use OpenOCD on Windows 8 with x64 architecture. I installed WinUSB driver via Zadig. I tried to run OpenOCD with administrator privileges, and also I disabled Windows 8 driver signature enforcement during WinUSB installation. Whenever…
albin
  • 773
  • 1
  • 8
  • 27
0
votes
1 answer

Openocd/GDB cortex-m3 debug issue

i have written a very simple program to turn on the 2 LEDs (GPIO port B) on the STM32L-discovery kit. I am using GNU toolchain and openocd for my debugging. Compilation and linking went ok. I linked the code such that the LMA and VMA are in the ram…
foob
  • 293
  • 1
  • 4
  • 12
0
votes
1 answer

How to Daemonize OpenOCD after Running Commands

I've heard that OpenOCD is supposed to daemonize after running some commands. I try giving commands as CLI arguments. The commands are run, but OpenOCD does not background afterwards, so GDB is never run. I could add '&' to the end of the openocd…
Chris Merck
  • 454
  • 3
  • 12
0
votes
0 answers

Include matter in makefile?

in the makefile there is written: # Include the dependency files -include $(wildcard $(OBJDIR)/*.d) and through the cmd windows it say: E:\A_1_Projekt>make clean makefile:394: no file name for `-include' Cleaning project: rm -rf obj rm -rf…
goethe
  • 35
  • 8
0
votes
1 answer

have troubles with Make files

I have some problems with double! Through terminal there is some query, that I should give some number (For example how much delay in per hour). If I give through terminal a number such as 1.1 h then it prints about -1173000! It should print only…
goethe
  • 35
  • 8
0
votes
0 answers

How to setup a debuggable project, that statically links libraries?

I am working under Eclipse with gcc for bare metal ARM. The version control is SVN and the make system is make. The project is quite large, and it would be beneficial to extract some areas into external libraries. The libraries are to be compiled,…
Vorac
  • 8,726
  • 11
  • 58
  • 101