From 98a209e330bec962563deb8e1c07ffda23b4ce18 Mon Sep 17 00:00:00 2001 From: Nicolas Stalder Date: Sat, 23 Mar 2019 13:54:04 +0100 Subject: [PATCH] make target to flash firmware via bootloader --- targets/stm32l432/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/targets/stm32l432/Makefile b/targets/stm32l432/Makefile index 24a57c1..f325b57 100644 --- a/targets/stm32l432/Makefile +++ b/targets/stm32l432/Makefile @@ -93,6 +93,11 @@ flashboot: solo.hex bootloader.hex STM32_Programmer_CLI -c port=SWD -halt -e all --readunprotect STM32_Programmer_CLI -c port=SWD -halt -d bootloader.hex -rst +flash-firmware: + arm-none-eabi-size -A solo.elf + solo program aux enter-bootloader + solo program bootloader solo.hex + # tell ST DFU to enter application detach: STM32_Programmer_CLI -c port=usb1 -ob nBOOT0=1