From cccf7dad72fec37315d95cb18fae29dabce6153c Mon Sep 17 00:00:00 2001 From: Andy Date: Thu, 25 Jan 2018 12:50:44 -0300 Subject: [PATCH] Adding Nano hotSPOT support in Makefile (GPIO flashing sequence for Nano Pi) --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 14b6cc4..3ce027c 100644 --- a/Makefile +++ b/Makefile @@ -188,7 +188,16 @@ serial: serial-bl: $(STM32FLASH) -v -w STM32F10X_Lib/utils/bootloader/generic_boot20_pc13.bin -g 0x0 $(devser) $(STM32FLASH) -v -w bin/$(BINBIN) -g 0x0 -S 0x08002000 $(devser) - + +nano-hotspot: +ifneq ($(wildcard /usr/local/bin/stm32flash),) + /usr/local/bin/stm32flash -v -w bin/$(BINBIN) -g 0x0 -R -i 200,-3,3:-200,3 /dev/ttyAMA0 +endif + +ifneq ($(wildcard /usr/bin/stm32flash),) + /usr/bin/stm32flash -v -w bin/$(BINBIN) -g 0x0 -R -i 200,-3,3:-200,3 /dev/ttyAMA0 +endif + zumspot-pi: ifneq ($(wildcard /usr/local/bin/stm32flash),) /usr/local/bin/stm32flash -v -w bin/$(BINBIN) -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0