From 1b84426f04a3cc4c33d36224c2316123f3a2c68f Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Thu, 2 Dec 2021 08:19:13 +0100 Subject: [PATCH] Reset MCU when flashing --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 20c4f2a..745a7a7 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,6 @@ CPU_FLAGS := -mthumb -mcpu=cortex-m3 -msoft-float -mfix-cortex-m3-ldrd arm-none-eabi-objcopy -Obinary $*.elf $*.bin flash: main.bin - st-flash write main.bin 0x08000000 + st-flash --reset write main.bin 0x08000000 .PHONY: flash