From 7ce31444a065ff225944b8833f50ab9aea277330 Mon Sep 17 00:00:00 2001 From: Glenn Ruben Bakke Date: Thu, 16 Feb 2017 23:18:07 +0100 Subject: [PATCH] nrf5: Adding target to flash bluetooth stack when using pyocd-flashtool. --- nrf5/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nrf5/Makefile b/nrf5/Makefile index b896ece981..d7aeb43984 100644 --- a/nrf5/Makefile +++ b/nrf5/Makefile @@ -219,6 +219,11 @@ else ifeq ($(FLASHER), pyocd) flash: $(BUILD)/firmware.elf pyocd-flashtool -t $(MCU_VARIANT) $(BUILD)/firmware.hex +sd: + pyocd-flashtool -t $(MCU_VARIANT) --chip_erase + pyocd-flashtool -t $(MCU_VARIANT) $(SOFTDEV_HEX) + pyocd-flashtool -t $(MCU_VARIANT) $(BUILD)/firmware.hex + endif $(BUILD)/firmware.elf: $(OBJ)