boards/sodaq-autonomo: switch to flashing with bossac
This commit is contained in:
parent
56bf778156
commit
361ba8d1a0
@ -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
|
||||||
|
|||||||
@ -55,15 +55,15 @@ this board.
|
|||||||
| MCU | samd21 | partly | Energy saving modes not fully utilized|
|
| MCU | samd21 | partly | Energy saving modes not fully utilized|
|
||||||
| Low-level driver | GPIO | yes | |
|
| Low-level driver | GPIO | yes | |
|
||||||
| | PWM | yes | |
|
| | PWM | yes | |
|
||||||
| | UART | yes | two UARTs by now|
|
| | UART | yes | two UARTs by now|
|
||||||
| | I2C | yes | |
|
| | I2C | yes | |
|
||||||
| | SPI | 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 | |
|
| | USB | no | |
|
||||||
| | RTT | yes | |
|
| | RTT | yes | |
|
||||||
| | RTC | yes | |
|
| | RTC | yes | |
|
||||||
| | RNG | no | no HW module |
|
| | 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
|
## 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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user