Skip to main content

Questions tagged [gdb]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
263 views

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 ...
Antonio Bassi's user avatar
0 votes
1 answer
2k views

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 ...
Sheikh Muhammad Junaid Aslam's user avatar
1 vote
2 answers
582 views

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 ...
Jeremy Wolfe's user avatar
1 vote
1 answer
889 views

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 ...
Edwin Fairchild's user avatar
0 votes
0 answers
253 views

I'm composing some GDB commands to make it behave like a "print()" function: ...
ceremcem's user avatar
  • 1,496
0 votes
1 answer
234 views

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 ...
Kalcifer's user avatar
  • 265
2 votes
2 answers
2k views

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 ...
Timo's user avatar
  • 1,299
1 vote
1 answer
723 views

I'm using gdb, openocd and stlink to debug an application running on STM32H7. When data ...
jpa's user avatar
  • 10.8k
0 votes
1 answer
6k views

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)...
kavon7's user avatar
  • 3
0 votes
0 answers
237 views

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 ...
lemonlime's user avatar
  • 106
2 votes
2 answers
1k views

Consider the following loop: ...
ceremcem's user avatar
  • 1,496
0 votes
1 answer
301 views

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 ...
ceremcem's user avatar
  • 1,496
0 votes
0 answers
200 views

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 ...
borizzzzz's user avatar
  • 113
3 votes
1 answer
2k views

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: ...
John U's user avatar
  • 7,347
1 vote
1 answer
5k views

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 (...
Jorge Sequeira's user avatar
1 vote
1 answer
258 views

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 ...
den0's user avatar
  • 47
0 votes
2 answers
463 views

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. ...
A.Forbes's user avatar
5 votes
1 answer
7k views

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 ...
Honza Vojtěch's user avatar
1 vote
1 answer
880 views

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 ...
Multisync's user avatar
  • 215
1 vote
1 answer
1k views

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 ...
Multisync's user avatar
  • 215
19 votes
1 answer
18k views

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'...
foldl's user avatar
  • 601
4 votes
1 answer
4k views

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.
errordeveloper's user avatar
0 votes
1 answer
772 views

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. ...
everclear's user avatar
  • 101
0 votes
1 answer
878 views

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 ...
metRo_'s user avatar
  • 131
1 vote
2 answers
1k views

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 ...
sHaR's user avatar
  • 21
3 votes
2 answers
2k views

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: ...
Randomblue's user avatar
  • 11.3k
3 votes
1 answer
11k views

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 -- ...
Randomblue's user avatar
  • 11.3k