Questions tagged [gdb]
For questions related to GDB (The GNU Project Debugger) open source debugging software.
27 questions
1
vote
1
answer
263
views
SWD scan failing for STM32H747 using a BlackMagicProbev2.3
I'm trying to debug an Arduino R1 Giga WiFi board with a STM32H747XIH6 mcu, which is a dual-core ARM Cortex-M4 and Cortex-M7 chip, using a Black Magic Probe v2.3 (BMP) from 1bitSquared. I've managed ...
0
votes
1
answer
2k
views
STM32F407ZET6 could not verify ST device
I have a setup where I bought a STM32F407ZET6 dev board from AliExpress and have been using for almost 6 years using STM32Cube IDE. It was only until i updated my IDE from 1.6 to 1.14 when it started ...
1
vote
2
answers
582
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
1
answer
889
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 ...
0
votes
0
answers
253
views
Is it possible to determine if a breakpoint is hit during an interrupt?
I'm composing some GDB commands to make it behave like a "print()" function:
...
0
votes
1
answer
234
views
AVR GDB Inconsistencies
I'm trying to debug a program running on an ATtiny84A, and I am having trouble understanding either how to use it, or interpreting its output, or both. For testing purposes, I created a simple program ...
2
votes
2
answers
2k
views
Sending commands to semihosting in VSCode + cortex-debug
I'm trying to move away from doing my firmware development in Eclipse GNU MCU for several reasons, mostly related to project maintainability (much easier to integrate CMake such that there is only one ...
1
vote
1
answer
723
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
1
answer
6k
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)...
0
votes
0
answers
237
views
Cannot launch GDB client
I am new to embedded coding outside of Arduino, so I need a lot of hand holding. I made a custom board with just a STM32 chip (STM32L082) and a LED. I am trying to debug it using GDB (I hear that's ...
2
votes
2
answers
1k
views
How to put a breakpoint to after last line of a loop in GDB?
Consider the following loop:
...
0
votes
1
answer
301
views
Is it possible to implement a serial console via GDB?
Is it possible to send debugging messages from MCU to PC over SWD via GDB without interrupting the running code (ie. without using breakpoints), like we could do via UART of MCU by sacrificing 2 UART ...
0
votes
0
answers
200
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 ...
3
votes
1
answer
2k
views
STM32F0 - interrupt/breakpoint not working on certain hardware
OK I realise this sounds like a dumb/noob question but please do read it through before calling me an idiot - at this stage I'll gladly take it if you can spot where I've gone wrong!
The scenario:
...
1
vote
1
answer
5k
views
Atollic + STM32F4 + ST-Link v2 connection problem "Unknown MCU found on target"
I currently have a problem with the connection between the debugger ST-Link V2, ARM Atollic 8.0.0 and a custom board with STM32F469. The Atollic and the ST-Link utility believe the Target is halted (...
1
vote
1
answer
258
views
How do I add STM32F4 support to GDB client for watchpoints?
I have been trying to debug my code and realized that my watchpoints for variable never execute. When I looked into this problem online, I encountered similar situations and the response they ...
0
votes
2
answers
463
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.
...
5
votes
1
answer
7k
views
GNU ARM Eclipse - flash and run without debug
I have successfully installed and configured Eclipse for ARM development according to this excellent tutorial:
http://gnuarmeclipse.github.io/
Almost all the tutorials (including the one above) I ...
1
vote
1
answer
880
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 ...
1
vote
1
answer
1k
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 ...
19
votes
1
answer
18k
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'...
4
votes
1
answer
4k
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.
0
votes
1
answer
772
views
Segger J-Link GDB-Server / STM32100B-EVAL / Debugging hangs at first instruction
I'm using a J-Link and the corresponding Linux GDB-Server from Segger. When I start debugging with Eclipse the program is automatically halted at the first instruction in the startup assembler code. ...
0
votes
1
answer
878
views
STM32 and GDB - Watchpoint
I'm reading the book http://www.cs.indiana.edu/~geobrown/book.pdf and I have a question regarding the Exercise 3.1.2 on page 50.
It ask to set a watchpoint on i. I set a watchpoint but it never break ...
1
vote
2
answers
1k
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 ...
3
votes
2
answers
2k
views
What does 0x0800f298 in ?? () mean?
I'm using GDB to debug a program for a Cortex M3. In the functions where the program crashes, when I execute line by line (using n), I eventually get:
...
3
votes
1
answer
11k
views
Clearing lockup after double fault
I'm debugging an STM32 with gdb. For some reason my program crashes, and gdb gives the following.
Note: automatically using hardware breakpoints for read-only
addresses.
stm32f2xxx.cpu -- ...