From fb755036243951763d0e5b2d8a1b5f66bf055b74 Mon Sep 17 00:00:00 2001 From: salvopitru Date: Mon, 17 Jan 2011 09:41:47 +0000 Subject: [PATCH] 'BTM' can be defined to flash devices already in bootloader mode. COFFEE_FILES changed to COFFEE. --- cpu/stm32w108/Makefile.stm32w108 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cpu/stm32w108/Makefile.stm32w108 b/cpu/stm32w108/Makefile.stm32w108 index 992899324..56fd72891 100644 --- a/cpu/stm32w108/Makefile.stm32w108 +++ b/cpu/stm32w108/Makefile.stm32w108 @@ -73,7 +73,7 @@ CFLAGS += $(CFLAGSNO) $(OPTI) AROPTS = --create ASFLAGS = -s+ -w+ --cpu Cortex-M3 -L$(OBJECTDIR) LDFLAGS += --redirect _Printf=_PrintfSmall --redirect _Scanf=_ScanfSmall --map=contiki-$(TARGET).map - ifndef COFFEE_FILES + ifndef COFFEE LDFLAGS+= --config $(CONTIKI_CPU)/hal/micro/cortexm3/stm32w108/iar-cfg.icf endif OBJOPTS = --bin @@ -179,6 +179,10 @@ FLASHEROPTS = -f -r else # Flash on serial port with on-board bootloader FLASHEROPTS = -f -i rs232 -p $(PORT) -r + ifdef BTM +#if already in bootloader mode + FLASHEROPTS += -b + endif endif