2020-05-25 15:56:06 -07:00
|
|
|
|
|
|
|
|
# Setup Monitor Mode Debugging
|
|
|
|
|
# Per .platformio/packages/framework-arduinoadafruitnrf52-old/cores/nRF5/linker/nrf52840_s140_v6.ld
|
|
|
|
|
# our appload starts at 0x26000
|
|
|
|
|
# Disable for now because our version on board doesn't support monitor mode debugging
|
|
|
|
|
# mon exec SetMonModeDebug=1
|
|
|
|
|
# mon exec SetMonModeVTableAddr=0x26000
|
|
|
|
|
|
2020-06-05 11:00:18 -07:00
|
|
|
# echo setting RTTAddr
|
|
|
|
|
# eval "monitor exec SetRTTAddr %p", &_SEGGER_RTT
|
2020-05-26 15:55:36 -07:00
|
|
|
|
2020-04-29 20:23:59 -07:00
|
|
|
# the jlink debugger seems to want a pause after reset before we tell it to start running
|
|
|
|
|
define restart
|
2020-05-26 15:55:36 -07:00
|
|
|
echo Restarting
|
2020-04-29 20:23:59 -07:00
|
|
|
monitor reset
|
|
|
|
|
shell sleep 1
|
|
|
|
|
cont
|
|
|
|
|
end
|
2020-05-26 15:55:36 -07:00
|
|
|
|