Questions related to the JLink JTAG/SWD debug probe from Segger GmbH. For questions related to the Java command-line tool, the [jlink] tag should be used.
Questions tagged [segger-jlink]
82 questions
1
vote
0 answers
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, I learned that I can read a memory location on the…

John M
- 1,484
- 1
- 14
- 27
1
vote
1 answer
Call a command line from python to execute a program in batch mode with args
I need to call a program in command line that will be executed in batch mode. This program receives a file with extension .jlink that contains a series of commands that the program JLink.exe will execute and then close.
I tried to execute in the…

João Matos
- 31
- 2
0
votes
0 answers
How to configure SCONS to properly compile c, cpp and .S files?
I have ARM project with .c and .cpp files. I use SCONS as build system. So far everything works fine, but I wanted to add SEGGER SystemView to my project, and there is SEGGER_RTT_ASM_ARMv7M.S assembly file in it. When I just added this file like…

Staszek
- 849
- 11
- 28
0
votes
1 answer
Bricked on-board debugger BMD-340 evaluation board (Rigado)
I probably bricked my BMD340 evaluation board on-board debugger, which uses JLINK. I can only call the bootloader when pressing reset while power on. Is there a possibility to flash again the on-board debugger? I fear the firmware is not available.

Yann
- 67
- 9
0
votes
0 answers
Breakpoint in HardFault_Handler doesn't work
I am hitting a HardFault in code on an STM32G0B0 MCU (i.e. Cortex-M0+ processor, but I suspect the issue may be more widespread). The codebase supports a number of our custom boards, and works on a number of different Cortex-Mx processors. The…

Bob
- 587
- 8
- 17
0
votes
1 answer
Unable to find root cause why i am unable to program the LPC54606 microcontroller
LPC54606 Unable to Connect to Target
I am using LPC54606J512BD100 microcontroller and facing a very serious issue.
The issue is that after successful programming and working with it the microcontroller at random stops getting programmed and giving…

rock123A
- 82
- 2
- 11
0
votes
0 answers
J-Link GDB reads invalid memory between peripheral registers
The SIUL2 module in the S32K3xx MCUs have very fragmented memory space. There are some valid MSCR or GPDO or similar registers, then some invalid addresses, and then further registers. In the SVD file the invalid addresses are not defined.
The…

vjalle
- 549
- 4
- 13
0
votes
1 answer
J-link debugger couldn't connect to target, VTref is 0.000V
I am trying to connect my PC to the following board: https://nxp.gitbook.io/nxp-cup/dfrobot-chassis-developer-guide/development-tools/arc-board-development
I am using NXPXpresso to do this, ,and have tried to use a J-link edu mini debugger to flash…
0
votes
1 answer
How to load Image to qspi flash memory with help of jlink
Anyone help me I have .elf and .hex files. I need to load .elf or hex to qspi flash memory location..
What is the design I need to follow.
I tried the below steps
extracted .elf file to .bin file.
by using jlink script I can able to load .bin file.…
0
votes
0 answers
JLINK/JTAG failed to single step debugging some parts of codes for ARMv7
I am working on an ARMv7 based embedded system with an RTOS.
I am also using JLink (v7.00) in Linux to do code debugging.
I use the JLinkGDBServer and GDB together to do the debugging.
Sometimes the GDB failed to single step debug the code,…

wangt13
- 959
- 7
- 17
0
votes
0 answers
How to get current task when debugging aarch64 linux kernel using gdb + openocd + jlink?
I am using openocd + jlink + gdb to debug aarch64 linux kernel on raspberry-pi 4. The hardware breakpoint worked, but when I perform info all-registers in gdb, I can not get the value of sp_el0, resulting in I can't know which task hits the…

user6096571
- 1
- 1
0
votes
1 answer
How to read serial number of J-Link debug probe via cmd
I am required to read the serial number of connected J-Link (I use J-Link Compact Plus from Segger) via the command line.
I am using tools from Segger such as JFlash.exe and JLink.exe
I managed to find a way to read a serial number via JLink.exe by…

TheBestPlayer
- 324
- 2
- 13
0
votes
0 answers
How can I run one task without finishing another in vscode?
i'm developing embedded firmware on zephyr RTOS. Zephyr env. works on WSL2. And "Vscode remote client" works in Win10 "Vscode Server" works on Ununtu 22.04.
I use Jlink debbugger for flashing and debugging firmware. I have to use remote debugging…
0
votes
0 answers
J-link Failed to attach to CPU, connect under reset failed
Trying to connect to J-Link to my PCB and when trying to connect, this is message appears. Was able to connect and flash the drive, but after like 30 seconds, when trying to connect again, this error occurs. And since then, I am not able to connect…

Wei
- 1
- 2
0
votes
0 answers
Determining the version of the GDB server from GDB
I am trying to see if the debugger record command is a limitation of my debugging setup or if it's a limitation of the software I am using. I am using a J-Link debugger with SEGGER's J-Link GDBServer v7.5 and it's not liking the record command. The…

avlec
- 396
- 1
- 15