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
47 views

Is there a way to add Local Symbol names in the ELF file by adding debug flags to the arm-none-eabi-gcc compiler?

I am able to view the global symbols such as functions, global/static variables in the final built executable in elf file. I am looking for compilation flags that can add the local variable names into ...
Ranjith Kumar's user avatar
0 votes
0 answers
70 views

Breakpoint aren't toggled in Vscode, Redboard Artemis with J-link

I was planning to debug an ARM board with a hardware debugger to be more efficient. I bought a Redboard Artemis and a J-Link edu mini but I’m facing issues in my setup. My goal is to be able to set ...
EpiX's user avatar
  • 1
0 votes
0 answers
125 views

Exception Occurs in STM32 Reset Handler using VSCode GDB

I'm attempting to debug firmware in Vscode using GDB from the STM32CubeCLT toolset. The Vector Table has been relocated to 0x8008200. Using the STM32CubeIDE, I have no problem debugging the software ...
zetanaught's user avatar
0 votes
1 answer
53 views

XMC1300 boot kit memory corruption

I compiled an example program for XMC1300 boot kit. I was able to do the debugging part - reading memory and registers. This is a simple very basic LED program(worked fine multiple time earlier) ...
user9603264's user avatar
0 votes
1 answer
106 views

Where does GDB store its general register layout?

I'm building my own GDB Server instance based on the Remote Protocol. One command sent by GDB is 'g', which reads general registers. The layout of the response to this command is architecture specific ...
Alistair Lowe's user avatar
0 votes
1 answer
244 views

How to set a value at specified address in an elf file

I have a project for a cortex M4 microcontroller, which compiles and runs fine. I'd like to add the checksum of the file to the file itself, so I can check the correctness of the binary at runtime. ...
Bil_Bomba's user avatar
  • 181
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
1k views

How to check the Cortex-M4 VTOR register with gdb command?

(I am learning about ARM debugging so this may be a dumb question.) I checked the ARMv7-M Arch Ref Manual. It says the reset vector offset is stored in the VTOR (Vector Table Offset Register). I am ...
smwikipedia's user avatar
  • 63.4k
3 votes
0 answers
272 views

GCC, GDB, and is_stmt

I'm using GNU Arm Embedded Toolchain 10.3 to cross-compile for a Cortex-M0+ target, and using the accompanying GDB to debug. I want to set a breakpoint on the following line of code: if (...
Jeremy's user avatar
  • 5,231
1 vote
1 answer
152 views

How to view backtrace of untracked stack

Using arm-none-eabi-gdb, Cortex M0, FreeRTOS. How can I view stack trace of an arbitrary stack at address addr? Do I have to manually change the stack pointer, or is there a simpler way?
ryan.walton.256's user avatar
0 votes
0 answers
245 views

How to show all printed values when using arm-none-eabi-gdb?

I'm debugging an ARM in VS Code using openocd, arm-none-eabi-gdb and cortex-debug. When I try to print a formatted variable in the debug consol it hides duplicated values. Is there a way to get all ...
Annwn's user avatar
  • 1
4 votes
1 answer
409 views

What are the possible reasons for registers to be offset by 1 in GDB?

The microcontroller is an STM32 F767ZI, which contains a 32 bit ARM Cortex M7 When setting values to the registers, the registers all appear to be offset by 1. For example, the following code: core.S ....
Starman's user avatar
  • 199
0 votes
1 answer
290 views

Why there is a dead loop in the generated assembly for a Cortex-M interrupt handler?

I am learning the Cortex-M with the MDK uVision IDE. I wrote a simple SysTick_Handler() to replace the WEAK default SysTick_Handler() which is a simple dead loop. My SysTick_Handler(): The ...
smwikipedia's user avatar
  • 63.4k
0 votes
1 answer
595 views

GDB don't stop on breakpoints and continue

I am a beginner in embedded programming so to learn I'm trying to work with a minimalist program. I have the following program I try to execute. My environment: arm-none-eabi-gcc (15:9-2019-q4-...
Anthony's user avatar
  • 2,104

15 30 50 per page