Browse Source

boards/arduino-due: use shared BOSSA tooling

master
Hauke Petersen 6 years ago
parent
commit
1bcf4819a7
  1. 8
      boards/arduino-due/Makefile.include
  2. BIN
      boards/arduino-due/dist/bossac
  3. BIN
      boards/arduino-due/dist/bossac_osx
  4. 11
      boards/arduino-due/dist/flash.sh

8
boards/arduino-due/Makefile.include

@ -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

Binary file not shown.

BIN
boards/arduino-due/dist/bossac_osx vendored

Binary file not shown.

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…
Cancel
Save