summaryrefslogtreecommitdiff
path: root/stm32/Rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'stm32/Rules.mk')
-rw-r--r--stm32/Rules.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/stm32/Rules.mk b/stm32/Rules.mk
index 4751496..764851b 100644
--- a/stm32/Rules.mk
+++ b/stm32/Rules.mk
@@ -137,8 +137,10 @@ flash: $(P_BINARY).flash
%.flash: %.elf
$(call echo_cmd,GDB $< (flash)) $(GDB) --batch \
-ex 'target extended-remote $(STLINK_PORT)' \
- -x $(SCRIPT_DIR)/stlink_flash.scr \
+ -ex 'monitor reset halt' \
+ -ex 'load' \
$<
+
.PHONY: images elf bin hex srec list flash