diff --git a/Makefile b/Makefile index 00f77a7a..2480ad91 100644 --- a/Makefile +++ b/Makefile @@ -105,7 +105,7 @@ run: burn wait logs # This currently only works on macOS with a BMP debugger attached. # It's meant to flash the bootloader in a loop. BMP = $(shell ls -1 /dev/cu.usbmodem* | head -1) -BMP_ARGS = --nx -ex "set mem inaccessible-by-default off" -ex "set confirm off" -ex "target extended-remote $(BMP)" -ex "mon swdp_scan" -ex "attach 1" +BMP_ARGS = --nx -ex "set mem inaccessible-by-default off" -ex "set confirm off" -ex "target extended-remote $(BMP)" -ex "mon tpwr enable" -ex "mon swdp_scan" -ex "attach 1" GDB = arm-none-eabi-gdb bmp-flash: $(BUILD_PATH)/$(NAME).bin