From 7f45a0da836b5076138171b6b171b3e06680a43f Mon Sep 17 00:00:00 2001 From: Andy CA6JAU Date: Tue, 4 Jul 2017 13:35:44 -0400 Subject: [PATCH] Workaround for stm32flash bug and STM32F446 Pi version --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 260ae5d..c2b009a 100644 --- a/Makefile +++ b/Makefile @@ -178,11 +178,13 @@ endif deploy-pi: ifneq ($(wildcard /usr/local/bin/stm32flash),) -/usr/local/bin/stm32flash -i 20,-21,21:-20,21 /dev/ttyAMA0 + -/usr/local/bin/stm32ld /dev/ttyAMA0 57600 bin/outp.bin /usr/local/bin/stm32flash -v -w bin/outp.bin -g 0x0 -R -c /dev/ttyAMA0 endif ifneq ($(wildcard /usr/bin/stm32flash),) -/usr/bin/stm32flash -i 20,-21,21:-20,21 /dev/ttyAMA0 + -/usr/bin/stm32ld /dev/ttyAMA0 57600 bin/outp.bin /usr/bin/stm32flash -v -w bin/outp.bin -g 0x0 -R -c /dev/ttyAMA0 endif