Merge pull request #2008 from alignan/pull/change-baudrate-zoul

zoul: default cc2538-bsl baudrate to 460800
This commit is contained in:
George Oikonomou 2016-12-21 02:30:19 +00:00 committed by GitHub
commit edec34f684

View File

@ -18,6 +18,8 @@ endif
PYTHON = python
BSL_FLAGS += -e -w -v
BSL_SPEED ?= 460800
# Works in Linux and probably on OSX too (RTCC example)
CFLAGS += -DDATE="\"`date +"%02u %02d %02m %02y %02H %02M %02S"`\""
@ -98,7 +100,7 @@ define UPLOAD_RULE
@BSL_ADDRESS=`$(OBJDUMP) -h $$*.elf | grep -B1 LOAD | \
grep -Ev 'LOAD|\-\-' | awk '{print "0x" $$$$5}' | \
sort -g | head -1`; \
$(PYTHON) $(BSL) $(BSL_FLAGS) -a $$$${BSL_ADDRESS} -p $(MOTE) $$<
$(PYTHON) $(BSL) $(BSL_FLAGS) -b $(BSL_SPEED) -a $$$${BSL_ADDRESS} -p $(MOTE) $$<
endef
### Create an upload rule for every MOTE connected