From 3f938123d592c2ed0c167b093844d3c32dad00b6 Mon Sep 17 00:00:00 2001 From: smlng Date: Wed, 17 Oct 2018 16:07:00 +0200 Subject: [PATCH] lorabox: add port to flasher parameters This adds the port parameter to the stm32loader flash script. This was necessary to allow flashing on macOS X where the default port is not autodetected correctly and needs to be specified, e.g. by running: BOARD=lobaro-lorabox PORT=/dev/tty.SLAB_USBtoUART \ make -C examples/lorawan flash term` --- boards/lobaro-lorabox/Makefile.include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/lobaro-lorabox/Makefile.include b/boards/lobaro-lorabox/Makefile.include index b2bfe76781..45b63d68dd 100644 --- a/boards/lobaro-lorabox/Makefile.include +++ b/boards/lobaro-lorabox/Makefile.include @@ -21,6 +21,6 @@ HEXFILE = $(BINFILE) # -u: use sector by sector erase # -S: swap RTS and DTR # -l 0x1ff: amount of sectors to erase -FFLAGS += -e -u -S -l 0x1ff -w $(BINFILE) +FFLAGS += -p $(PORT) -e -u -S -l 0x1ff -w $(BINFILE) TERMFLAGS += --set-rts 0