boards/sodaq-autonomo: switch to flashing with bossac

This commit is contained in:
Kees Bakker 2018-08-05 15:22:55 +02:00
parent 56bf778156
commit 361ba8d1a0
2 changed files with 27 additions and 12 deletions

View File

@ -2,4 +2,18 @@
export CPU = samd21 export CPU = samd21
export CPU_MODEL = samd21j18a export CPU_MODEL = samd21j18a
include $(RIOTMAKE)/boards/sam0.inc.mk #export needed for flash rule
export PORT_LINUX ?= /dev/ttyACM0
export PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
# setup serial terminal
include $(RIOTMAKE)/tools/serial.inc.mk
# setup the flash tool used
# we use BOSSA to flash this board since there's an Arduino bootloader
# preflashed on it. ROM_OFFSET skips the space taken by such bootloader.
ROM_OFFSET ?= 0x2000
include $(RIOTMAKE)/tools/bossa.inc.mk
# setup the boards dependencies
include $(RIOTBOARD)/$(BOARD)/Makefile.dep

View File

@ -93,14 +93,15 @@ Besides the SAMD21 the board has the following features:
## Flashing the device ## Flashing the device
The Autonomo has a 10 pin header compatible with the Atmel-ICE. The standard 1. Put the board in bootloader mode by double tapping the reset button.<br/>
method for flashing RIOT to the sodaq-autonomo is using OpenOCD. For this to When the board is in bootloader mode, the user led (green) oscillates
work properly, **you have to make sure to use a very recent version of smoothly.
OpenOCD**. Arduino-IDE comes with openocd v0.9.0 which is known to work. Also
Ubuntu 16.04 has openocd v0.9.0.
Refer to https://github.com/RIOT-OS/RIOT/wiki/OpenOCD for building OpenOCD 2. Use `BOARD=sodaq-autonomo` with the `make` command.<br/>
and make sure "cmsis-dap" and "hidapi-libusb" are enabled. Example with `hello-world` application:
```
make BOARD=sodaq-autonomo -C examples/hello-world flash
```
## Supported Toolchains ## Supported Toolchains