Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
3 votes
1 answer
53 views

Missing ELF symbol for extern const float?

I have seen Missing ELF symbol "var" when using GDB? , but this is a different issue. I am using gdb with RP2040 over openocd. Unfortunately I cannot provide a full code that reproduces the ...
sdbbs's user avatar
  • 5,129
0 votes
1 answer
88 views

Can't connect ST-Link with APM32F003 through OpenOCD

I'm using CLion and try to debug my APM32F003 base project with ST-Link. I cannot determine what the problem is with ST-Link. I'm using Geehy's OpenOCD build with APM32F003 config files. My project ...
ReasonX's user avatar
  • 31
1 vote
2 answers
746 views

Debug not working with Cortex-Debug on relocated application on STM32

I'm working on STM32F407 device, developing a Bootloader and Application The environnement is Visual Studio Code, and using Cortex-Debug extension for the debug. The bootloader at address 0x0800 0000 ...
AntoineN's user avatar
2 votes
1 answer
2k views

How to add arguments to launch.json in VS Code

I am trying to debug the RP2040 using the new picoprobe. When i execute the following command openocd -f interface/cmsis-dap.cfg -f target/rp2040.cfg -c "adapter speed 5000" OpenOCD works ...
varun koganti's user avatar
0 votes
2 answers
3k views

Open OCD Error: libusb_open() failed with LIBUSB_ERROR_ACCESS on Windows 10 for STM32

I am trying to flash a code to a STM32F030R8T6 using Visual Studio Code and OpenOCD on Windows 10. I am also using STM32CubeMX to auto generate the beginning code and using a stlink v2. The computer ...
casual_ginger's user avatar
4 votes
0 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
0 answers
856 views

OpenOCD - stuck on breakpoint, step over and continue aren't working

I'm using STM32H745ZI Nucleo board with STLinkV3. I have successfully compiled and run simple program that flashes LEDs on Cortex M7 core. When program runs without debugger, everything's fine. The ...
Konrad Sikorski's user avatar
1 vote
1 answer
962 views

'undefined debug reason 7 - target needs reset' Error when debug ARM Cortex-M33 using OpenOCD in FTDI SWD Mode

I am currently using OpenOCD to debug Cortex-M33 processor. However, after it connects to gdb and starts debugging, it shows the following message: Try to search windows process Found openocd running,...
AdamZhang's user avatar
4 votes
1 answer
2k views

ARM Cortex M detect if debugger is in Run or Debug mode

There is a proven way to detect whether a debugger is connected on Cortex-M, as seen here. I used to as a way to automatically set a breakpoint when I am in a debug session: void autobreak() { if (...
Ken Lin's user avatar
  • 1,015
1 vote
0 answers
171 views

Need ideas for automating on-chip testing on Cortex-M4 using gdb and semihosting

I'm working on safety-critical software that requires extensive testing. The target processor, a Cortex-M4, has rich resources for the application but the unit and integration tests, if aggregated, ...
GlenL's user avatar
  • 39
1 vote
1 answer
4k views

OpenOCD Failed to execute MI command: -target-select remote localhost:3333

I'm used to using Segger at work, but I didn't want to spend that kind of money for home use, so this is my first time using OpenOCD for debugging. I've got the Olimex ARM-USB-TINY-H. My OS is ...
M_J's user avatar
  • 316
0 votes
1 answer
161 views

One binary halts at breakpoint, the other doesn't - no breakpoint is defined

I'm trying to run a Rust Hello World on my STM32F401xB. I have a working C program for comparison (different functionality, but it verifies the flashing toolchain) and use the same openocd commands to ...
Silly Freak's user avatar
  • 4,141
0 votes
1 answer
2k views

What is the .elf file used in the launch.json of VSCode

I am trying to use VSCode, an ST Link v2, OpenOCD, and Cortex-Debug to code an stm32 ARM Microcontroller. I am running Ubuntu 16.04.4 LTS. I am having trouble in my launch.json file in vscode. Here is ...
Bzeeno's user avatar
  • 23
0 votes
1 answer
583 views

Where is Cortex-M4 hardware breakpoint address?

m4 debug feature, I'm using stm32f407 discovery with openocd, gdb in ubuntu I'm trying to understad breakpoint feature, I can set breakpoint address in openocd with gdb and chip will stop when pc ...
aaa SA's user avatar
  • 321
3 votes
3 answers
5k views

show Cortex-M4 SWO log with openocd

I'm using ubuntu, openocd and stlink to develop stm32f407-discovery, I'm learning to use ITM module through SWO pin to get log from chip. Finally, I found that openocd command tpiu config internal /...
aaa SA's user avatar
  • 321

15 30 50 per page