summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-01-28 21:25:17 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-01-28 21:25:17 (GMT)
commit0016ad4be7b7a5027bd217d6b12ee2f1669c6a5a (patch)
tree230a92c60e4d84d69f63898eb881721f614757d1 /Makefile
parent35fa79189317b2b6c49a7478e6af3a41c660f08b (diff)
Makefile: Shortcut to help update the bootloader using BMP
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 0aed765..dba736b 100644
--- a/Makefile
+++ b/Makefile
@@ -44,5 +44,13 @@ flash:
pyocd erase -t nrf52 --mass-erase
pyocd flash -t nrf52 bootloader.hex
+debug:
+ arm-none-eabi-gdb \
+ bootloader/_build-$(BOARD)_nrf52832/$(BOARD)_nrf52832_bootloader-*-nosd.out \
+ -ex "target extended-remote /dev/ttyACM0" \
+ -ex "monitor swdp_scan" \
+ -ex "attach 1" \
+ -ex "load"
+
.PHONY: bootloader micropython