From edc53fc34740bfdd3798d8db60f77f88f355a54d Mon Sep 17 00:00:00 2001 From: Andy CA6JAU Date: Sun, 16 Apr 2017 10:55:43 -0300 Subject: [PATCH] Adding Pi Hat F446 support for stm32flash utility in Makefile --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 8c93c7a..569bde4 100644 --- a/Makefile +++ b/Makefile @@ -173,6 +173,15 @@ ifneq ($(wildcard /opt/openocd/bin/openocd),) /opt/openocd/bin/openocd -f /opt/openocd/share/openocd/scripts/board/stm32f4discovery.cfg -c "program bin/$(BINELF) verify reset exit" endif +deploy-pi: +ifneq ($(wildcard /usr/local/bin/stm32flash),) + /usr/local/bin/stm32flash -w bin/outp.bin -g 0x0 /dev/ttyAMA0 +endif + +ifneq ($(wildcard /usr/bin/stm32flash),) + /usr/bin/stm32flash -w bin/outp.bin -g 0x0 /dev/ttyAMA0 +endif + # Export the current git version if the index file exists, else 000... GitVersion.h: ifneq ("$(wildcard .git/index)","")