mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/arduino-due: use shared BOSSA tooling
This commit is contained in:
parent
0d9ba806bc
commit
1bcf4819a7
@ -6,9 +6,9 @@ export CPU_MODEL = sam3x8e
|
||||
PORT_LINUX ?= /dev/ttyACM0
|
||||
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
||||
|
||||
# define board specific flasher options
|
||||
export FLASHER = $(RIOTBOARD)/$(BOARD)/dist/flash.sh
|
||||
export OFLAGS = -O binary
|
||||
|
||||
# setup serial terminal
|
||||
include $(RIOTMAKE)/tools/serial.inc.mk
|
||||
|
||||
# setup flasher (using BOSSA)
|
||||
export BOSSA_ARDUINO_PREFLASH = yes
|
||||
include $(RIOTMAKE)/tools/bossa.inc.mk
|
||||
|
BIN
boards/arduino-due/dist/bossac
vendored
BIN
boards/arduino-due/dist/bossac
vendored
Binary file not shown.
BIN
boards/arduino-due/dist/bossac_osx
vendored
BIN
boards/arduino-due/dist/bossac_osx
vendored
Binary file not shown.
11
boards/arduino-due/dist/flash.sh
vendored
11
boards/arduino-due/dist/flash.sh
vendored
@ -1,11 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ `uname` = "Linux" ]; then
|
||||
stty -F "${PORT}" raw ispeed 1200 ospeed 1200 cs8 -cstopb ignpar eol 255 eof 255
|
||||
"${RIOTBOARD}"/"${BOARD}"/dist/bossac -R -e -w -v -b "${HEXFILE}"
|
||||
elif [ `uname` = "Darwin" ]; then
|
||||
stty -f ${PORT} raw ispeed 1200 ospeed 1200 cs8 -cstopb ignpar eol 255 eof 255
|
||||
"${RIOTBOARD}"/"${BOARD}"/dist/bossac_osx -R -e -w -v -b "${HEXFILE}"
|
||||
else
|
||||
echo "CAUTION: No flash tool for your host system found!"
|
||||
fi
|
Loading…
Reference in New Issue
Block a user