Skip to content
This repository has been archived by the owner on May 18, 2022. It is now read-only.

JLink GDB server

Jonas Schievink edited this page Jul 24, 2019 · 1 revision

JLink GDB server

This documents how to use the JLink GDB server with the Rubble demo on an nRF52810.

.gdbinit

It's crucial that the gdbinit manually resets the chip. If it doesn't, unexpected random errors can occur.

# disable "are you sure you want to quit?"
define hook-quit
    set confirm off
end

target remote :2331

# print demangled symbols by default
set print asm-demangle on

monitor semihosting enable

load
monitor reset
cont

Terminal 1

JLinkGDBServer -device nrf52810_xxAA -if SWD

Terminal 2

This terminal will display any semihosting messages (including panic messages). The JLink server does have a feature that will display these as output in GDB itself, but that doesn't work reliably.

telnet 127.0.0.1 2333

Terminal 3

This terminal will be used to display the logging output.

stty -F /dev/ttyUSB0 speed 1000000
less -f /dev/ttyUSB0
Clone this wiki locally