'BTM' can be defined to flash devices already in bootloader mode.

COFFEE_FILES changed to COFFEE.
This commit is contained in:
salvopitru 2011-01-17 09:41:47 +00:00
parent a9b1b37bec
commit fb75503624

View file

@ -73,7 +73,7 @@ CFLAGS += $(CFLAGSNO) $(OPTI)
AROPTS = --create AROPTS = --create
ASFLAGS = -s+ -w+ --cpu Cortex-M3 -L$(OBJECTDIR) ASFLAGS = -s+ -w+ --cpu Cortex-M3 -L$(OBJECTDIR)
LDFLAGS += --redirect _Printf=_PrintfSmall --redirect _Scanf=_ScanfSmall --map=contiki-$(TARGET).map 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 LDFLAGS+= --config $(CONTIKI_CPU)/hal/micro/cortexm3/stm32w108/iar-cfg.icf
endif endif
OBJOPTS = --bin OBJOPTS = --bin
@ -179,6 +179,10 @@ FLASHEROPTS = -f -r
else else
# Flash on serial port with on-board bootloader # Flash on serial port with on-board bootloader
FLASHEROPTS = -f -i rs232 -p $(PORT) -r FLASHEROPTS = -f -i rs232 -p $(PORT) -r
ifdef BTM
#if already in bootloader mode
FLASHEROPTS += -b
endif
endif endif