Adding Pi Hat F446 support for stm32flash utility in Makefile

c4fmdemod
Andy CA6JAU 2017-04-16 10:55:43 -03:00
parent 38bcf1f4c4
commit edc53fc347
1 changed files with 9 additions and 0 deletions

View File

@ -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)","")