You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 18, 2022. It is now read-only.
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?"definehook-quit setconfirm off
endtarget remote :2331# print demangled symbols by defaultsetprint 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