mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-23 17:13:38 +00:00
improve NRF52 debugging environment
This commit is contained in:
parent
f3a1c5e679
commit
6a3033fa85
@ -1 +1,4 @@
|
||||
JLinkRTTViewer
|
||||
|
||||
|
||||
# JLinkRTTViewer
|
||||
JLinkRTTClient
|
3
bin/nrf52-gdbserver.sh
Normal file
3
bin/nrf52-gdbserver.sh
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
JLinkGDBServerCLExe -if SWD -select USB -port 2331 -device NRF52840_XXAA
|
BIN
docs/hardware/nrf52/nrf52-programming.png
Normal file
BIN
docs/hardware/nrf52/nrf52-programming.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 142 KiB |
5
gdbinit
5
gdbinit
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user