improve NRF52 debugging environment

This commit is contained in:
geeksville 2020-05-26 15:55:36 -07:00
parent f3a1c5e679
commit 6a3033fa85
5 changed files with 15 additions and 1 deletions

View File

@ -1 +1,4 @@
JLinkRTTViewer
# JLinkRTTViewer
JLinkRTTClient

3
bin/nrf52-gdbserver.sh Normal file
View File

@ -0,0 +1,3 @@
JLinkGDBServerCLExe -if SWD -select USB -port 2331 -device NRF52840_XXAA

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

View File

@ -6,9 +6,14 @@
# mon exec SetMonModeDebug=1
# mon exec SetMonModeVTableAddr=0x26000
echo setting RTTAddr
eval "monitor exec SetRTTAddr %p", &_SEGGER_RTT
# the jlink debugger seems to want a pause after reset before we tell it to start running
define restart
echo Restarting
monitor reset
shell sleep 1
cont
end

View File

@ -142,6 +142,9 @@ monitor_port = /dev/ttyACM1
debug_extra_cmds =
source gdbinit
; after programming the flash, reset the initial PC
; debug_load_cmds = load
; Set initial breakpoint (defaults to main)
debug_init_break =
;debug_init_break = tbreak loop