From 0016ad4be7b7a5027bd217d6b12ee2f1669c6a5a Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Tue, 28 Jan 2020 21:25:17 +0000 Subject: Makefile: Shortcut to help update the bootloader using BMP 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 -- cgit v0.10.2