'BTM' can be defined to flash devices already in bootloader mode.
COFFEE_FILES changed to COFFEE.
This commit is contained in:
parent
a9b1b37bec
commit
fb75503624
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue