Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [gdb]

For questions related to GDB (The GNU Project Debugger) open source debugging software.

14
votes
1answer
13k 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
1answer
6k 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 ...
3
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.
2
votes
2answers
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: ...
2
votes
1answer
4k 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 -- ...
1
vote
1answer
164 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 ...
1
vote
1answer
489 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
1answer
758 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
2answers
964 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 ...
1
vote
1answer
248 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
1answer
3k 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 (...
0
votes
2answers
373 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
579 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 ...
0
votes
1answer
630 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
0answers
30 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
22 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 ...