OpenOCD stands for Open On Chip Debugger and is a program used to debug embedded platforms, mostly via JTAG.
Questions tagged [openocd]
286 questions
2
votes
1 answer
** OpenOCD init failed ** While using VS Code, platformio, stlink v2, and stm32 f030r8t6
(I put links in my question but I will explain in as much detail what my problem is so that you won't need to use the links, they are just for reference)
Hi,
I am trying to follow this youtube tutorial…

Bzeeno
- 23
- 1
- 4
2
votes
1 answer
stm32 factory bootloader possibly overwritten with openocd?
tl;dr: flashed firmware to 0x00000000 instead of 0x08000000, am I lost?
Hello,
my device is based on a STM32F103CBTx which came with a proprietary firmware and had readout protection on.
I connect to it with a ST-Link v2 SWDIO and SWCLK connected to…

PhilK
- 23
- 1
- 5
2
votes
0 answers
GDB skips padding when loading ELF to target
I have a STM32F4 Discovery board, OpenOCD debug server and armv7m-unknown-eabi-gdb and want my board to run a bare-metal ELF which I've built. I start gdb, give it target remote :3333, load, monitor reset halt commands and then try to step through…

krokoziabla
- 695
- 1
- 6
- 21
2
votes
1 answer
No flash bank found for address 0x00000000
I am trying to flash my firmware into STM32L152, but instead I have:
Open On-Chip Debugger 0.10.0+dev-00312-g1a3cbbf3 (2018-03-02-20:11)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
adapter speed: 300…

joe.kovalski
- 300
- 1
- 4
- 14
2
votes
2 answers
GDB + CLion + STM32f4 + OpenOCD -> gdb error, truncated register 16 in remote 'g' packet
On my Windows10, having stm32f407vg discovery boards I'm doing example: f4-blog-master
Then I got this error:
D:\Software\OpenOCD-20170821\bin\openocd.exe -c "tcl_port disabled" -s D:\Software\OpenOCD-20170821\share\openocd\scripts -f…

yourstruly
- 972
- 1
- 9
- 17
2
votes
2 answers
Error: Halt timed out, wake up GDB
I'm having trouble using OpenOCD to flash the firmware on a at91sam7s512 micro-controller.
Whenever I send a halt command (via telnet) it throws the following error:
Halt timed out, wake up GDB.
timed out while waiting for target halted
in…

pzirkind
- 2,338
- 2
- 20
- 25
2
votes
1 answer
Why would cortex-m3 reset to address 0 in gdb?
I am building a cross-compile toolchain for the Stellaris LM3S8962 cortex-m3 chip. The test c++ application I have written will execute for some time then fault. The fault will occur when I try to access a memory-mapped hardware device. At the…

mikelong
- 3,694
- 2
- 35
- 40
2
votes
1 answer
Get easy access to peripherals using arm-none-eabi-gdb and openocd
I use openocd, arm-none-eabi-gdb and STLinkV2-1 to debug STM32F411CE chip. I use also LL and CMSIS libraries. The problem is that to check the value of e.g. a pin I have to look up in the datasheet the register boundary addresses for the specific…

K. Koovalsky
- 596
- 4
- 17
2
votes
4 answers
Error in Final Launch Sequence - Eclipse System Workbench Debugging for STM32L476
I'm trying to debug and run simple assembly code for STM32L476. I've set up Eclipse Oxygen, installed the latest version of System Workbench plugin in Eclipse and installed ST-Link drivers. The IDE successfully builds the program without throwing…

Vijey
- 33
- 1
- 1
- 8
2
votes
1 answer
nrf51822 + ST-Link V2 Debugging
I'm working on a project where I need to program an NRF51822 using an ST-Link V2 (well, perhaps I don't have to do it this way, but that's what I'm currently doing/own).
I'm pretty sure it's running properly, but I really need a debug console to…

Helpful
- 702
- 4
- 16
2
votes
3 answers
Failing to enable stlink in openOCD
I am trying to enable stlink by configuring openOCD. It is saying it cannot find my libusb-1.x file even though it is installed by virtue of installing openOCD as it is a dependency. I am not sure what to do
Here is the error:
checking for…

Senyo
- 81
- 6
2
votes
1 answer
STM32F4 TIM6 interruption doesn't happen while DMA working
I work with STM32F4Discovery board, generate code from Cube, SYSCLK is 168MHz, APB1 Timer Clock 42 MHz, TIM6 has prescaler 1000, and counts till 62. I make the following experiment.
Enable TIM6 interruption by
__HAL_TIM_ENABLE_IT(&htim6,…

Dmitriy Kozlov
- 279
- 1
- 3
- 13
2
votes
1 answer
GNU ARM plugin for Eclipse under Windows - OpenOCD not starting debugging
I'm having problems trying to setup dev env for STM32F4 Discovery board in Windows.
I have installed all required files (GCC for ARM, Windows Build Tools, Eclipse Plugin) and I'm getting this error when trying to start OpenOCD debugging:
Missing…

StjepanV
- 167
- 2
- 14
2
votes
2 answers
How command line parameters are passed to a semi-hosted program?
I am looking at the STM32f4xx project template, generated by the GNU ARM Eclipse plugin, with semihosting enabled. The main function is defined with both argc and argv parameters, which is pretty useless in a freestanding embedded program, but in…

Eugene Sh.
- 17,802
- 8
- 40
- 61
2
votes
1 answer
Remote GDB disconnects whenever I press control + c
I am remote debugging a Stellaris Launchpad. I use OpenOCD to connect to the stellaris and then connect GDB to the server provided by openOCD. I use Open On-Chip Debugger 0.10.0-dev-00002-g79fdeb3 (2015-07-09-23:28). GDB is the one from…

Cheiron
- 3,620
- 4
- 32
- 63