All Questions
Tagged with segger-jlink gdb
13 questions
0
votes
1
answer
3k
views
Cannot start J-Link GDB Server on Ubuntu
I am currently working on the ARM Cortex-M4 inside the NXP i.MX8M Mini.
I am able to compile a project for M4 on Eclipse IDE on an Ubuntu VM.
I would now like to debug on the M4 via a SEGGER Flasher ...
0
votes
1
answer
473
views
GDB debugging breaks without breakpoints with Infineon XMC4800 MCU and Segger
We have a EtherCAT project and for this we are using the XMC4800 MCU from Infineon. I was working in Dave (their IDE) first, but because it is not CMAKE based I ran into issues with adding re-usable ...
1
vote
2
answers
4k
views
How to debug a flash program on target ARM MCU with gdb
I am trying to debug a ARM flash program on target MCU using gdb
I am setting up the gdbserver on target system (cortex-m7) with jlinkgdbserver. And I have a elf ready for debug.
For the first time, ...
1
vote
0
answers
3k
views
Cannot debug my STM32 CubeIDE project anymore, but code works without J-Link
I somehow have fallen in the state where I cannot start in debug mode my project in CubeIDE and J-Link. The code compiles, flash is written, but then instead of stopping on the first instruction in my ...
0
votes
0
answers
805
views
Failed to debug on PlatformIO with J-Link
I'm trying to set up the debug environment of platformIO on vscode with J-Link to work with STM32f407ZG chip.
It can build & upload. But each time I tried to debug it throws me errors like this
...
2
votes
0
answers
746
views
GDB break commands don't get executed in command files
I have a debugging script that does the following:
sets two breakpoints. let's call them start and end breakpoints.
after starting, the script continues until start breakpoint is hit.
once start ...
3
votes
1
answer
545
views
How to understand why an ARM exception happens?
I'm trying understand what is the reason of ARM exception that I encounter.
It happens randomly during system startup, and may looks in few different ways.
One of simplest is following:
0x8004e810 ...
1
vote
1
answer
782
views
Debugging mBed-OS 5 using J-Link OpenSDA Firmware and GDB
I am working with a MK64FN1M0xxx12 development kit that supports OpenSDA. To make things easier to debug, I flashed the J-Link firmware that supports the SEGGER debugger command set. Before doing this ...
4
votes
1
answer
5k
views
J-Link GDB debugging in CLion
Not long ago CLion added support for Remote GDB debugging and I'm trying to set it up with Seggers's J-Link GDB server.
My setup:
VM VirtualBox running Ubuntu 16.04
J-Link drivers: V6.10
Target ...
1
vote
0
answers
628
views
Using GDB convenience vars with monitor commands
I'm using arm-none-eabi-gdb and JLinkGDBServer to debug an embedded system using a JLink SAM-ICE. The embedded system uses an ATSAMD21 MCU.
From reading page 25 of the JLinkGDBServer documentation, ...
3
votes
1
answer
2k
views
Debugging - GNU ARM Bare Metal Development
I am trying to debug a sample code given by Atmel. I have built the program successfully.
For debugging, I am using eclipse plusgdb plus JlinkGDBServer plus onboard Jtag.
Although the program can ...
2
votes
0
answers
439
views
J-Link GDB Server receving a connection by Python
Hello great people of the internets
I am using J-Link GDB Server to accept GDB clients and execute commands via J-link Commander.
I am using a fully automated python code that needs to send write and ...
0
votes
0
answers
266
views
GDB disassembly different on exec to remote after load - not loading correctly?
I have an .out file compiled with arm-none-eabi-gcc -mtune=cortex-m3 --specs=nosys.specs.
If I run GDB with arm-none-eabi-gdb a.out and do disas main on the exec I get a reasonably looking disassembly,...