Skip to content
Snippets Groups Projects
Commit 1bcf4819 authored by Hauke Petersen's avatar Hauke Petersen
Browse files

boards/arduino-due: use shared BOSSA tooling

parent 0d9ba806
No related branches found
No related tags found
No related merge requests found
...@@ -6,9 +6,9 @@ export CPU_MODEL = sam3x8e ...@@ -6,9 +6,9 @@ export CPU_MODEL = sam3x8e
PORT_LINUX ?= /dev/ttyACM0 PORT_LINUX ?= /dev/ttyACM0
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*))) 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 # setup serial terminal
include $(RIOTMAKE)/tools/serial.inc.mk include $(RIOTMAKE)/tools/serial.inc.mk
# setup flasher (using BOSSA)
export BOSSA_ARDUINO_PREFLASH = yes
include $(RIOTMAKE)/tools/bossa.inc.mk
File deleted
File deleted
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment