1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

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

@ -55,15 +55,15 @@ this board.
| MCU | samd21 | partly | Energy saving modes not fully utilized|
| Low-level driver | GPIO | yes | |
| | PWM | yes | |
| | UART | yes | two UARTs by now|
| | UART | yes | two UARTs by now|
| | I2C | yes | |
| | SPI | yes | |
| | ADC | yes | PA04 & PA05 disabled by default due to EDBG's use of them for UART, can be enabled from `periph_conf.h`|
| | ADC | yes | PA04 & PA05 disabled by default due to EDBG's use of them for UART, can be enabled from `periph_conf.h`|
| | USB | no | |
| | RTT | yes | |
| | RTC | yes | |
| | RTC | yes | |
| | RNG | no | no HW module |
| | Timer | yes | |
| | Timer | yes | |
@ -93,14 +93,15 @@ Besides the SAMD21 the board has the following features:
## Flashing the device
The Autonomo has a 10 pin header compatible with the Atmel-ICE. The standard
method for flashing RIOT to the sodaq-autonomo is using OpenOCD. For this to
work properly, **you have to make sure to use a very recent version of
OpenOCD**. Arduino-IDE comes with openocd v0.9.0 which is known to work. Also
Ubuntu 16.04 has openocd v0.9.0.
1. Put the board in bootloader mode by double tapping the reset button.<br/>
When the board is in bootloader mode, the user led (green) oscillates
smoothly.
Refer to https://github.com/RIOT-OS/RIOT/wiki/OpenOCD for building OpenOCD
and make sure "cmsis-dap" and "hidapi-libusb" are enabled.
2. Use `BOARD=sodaq-autonomo` with the `make` command.<br/>
Example with `hello-world` application:
```
make BOARD=sodaq-autonomo -C examples/hello-world flash
```
## Supported Toolchains