mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-09-02 08:29:52 +00:00
'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
@ -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 New Issue
Block a user