mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/samd21-xpro: update board documentation
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
This commit is contained in:
parent
82c7c6053d
commit
b0ecfaebb0
@ -11,7 +11,7 @@ controller. For programming the MCU comes with 32Kb of RAM and 256Kb of flash
|
|||||||
memory.
|
memory.
|
||||||
|
|
||||||
The samd21-xpro is available from various hardware vendors for ~30USD (as of
|
The samd21-xpro is available from various hardware vendors for ~30USD (as of
|
||||||
2017May).
|
2017 May).
|
||||||
|
|
||||||
## Hardware
|
## Hardware
|
||||||
|
|
||||||
@ -50,31 +50,30 @@ The samd21-xpro is available from various hardware vendors for ~30USD (as of
|
|||||||
|
|
||||||
| Device | ID | Supported | Comments |
|
| Device | ID | Supported | Comments |
|
||||||
|:------------- |:------------- |:------------- |:------------- |
|
|:------------- |:------------- |:------------- |:------------- |
|
||||||
| MCU | samd21 | partly | DFLL clock not implemented |
|
| MCU | samd21 | yes | |
|
||||||
| Low-level driver | GPIO | yes | |
|
| Low-level driver | GPIO | yes | |
|
||||||
| | ADC | yes | |
|
| | ADC | yes | |
|
||||||
| | PWM | yes | |
|
| | PWM | yes | |
|
||||||
| | UART | yes | |
|
| | UART | yes | |
|
||||||
| | I2C | unknown | |
|
| | I2C | yes | |
|
||||||
| | SPI | yes | |
|
| | SPI | yes | |
|
||||||
| | USB | no | |
|
| | USB | yes | |
|
||||||
| | RTT | yes | |
|
| | RTT | yes | |
|
||||||
| | RTC | yes | |
|
| | RTC | yes | |
|
||||||
| | RNG | unknown | |
|
| | Timer | yes | |
|
||||||
| | Timer | yes | |
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Flashing the device
|
## Flashing the device
|
||||||
|
|
||||||
Connect the device to your Micro-USB cable using the port labeled as *DEBUG
|
Connect the device to your Micro-USB cable using the port labeled as *DEBUG
|
||||||
USB*.
|
USB*.
|
||||||
|
|
||||||
The standard method for flashing RIOT to the samd21-xpro is using OpenOCD.
|
The standard method for flashing RIOT to the samd21-xpro is using [edbg](https://github.com/ataradov/edbg).
|
||||||
|
by calling: `make BOARD=samd21-xpro -C tests/leds flash`
|
||||||
|
|
||||||
Refer to https://github.com/RIOT-OS/RIOT/wiki/OpenOCD for general
|
Note that on Linux, you will need libudev-dev package to be installed.
|
||||||
instructions on building OpenOCD and make sure "cmsis-dap" and "hidapi-libusb"
|
|
||||||
are enabled.
|
Users can also use openOCD to flash and/or debug the board using:
|
||||||
|
`PROGRAMMER=openocd make BOARD=samd21-xpro -C tests/leds flash`
|
||||||
|
|
||||||
On Linux you will have to add a **udev** rule for hidraw, like
|
On Linux you will have to add a **udev** rule for hidraw, like
|
||||||
```
|
```
|
||||||
@ -87,6 +86,7 @@ sudo service udev restart
|
|||||||
### Arch Linux
|
### Arch Linux
|
||||||
With yaourt:
|
With yaourt:
|
||||||
```
|
```
|
||||||
|
yaourt -S libudev0
|
||||||
yaourt -S hidapi-git
|
yaourt -S hidapi-git
|
||||||
yaourt -S openocd-git
|
yaourt -S openocd-git
|
||||||
# edit PKGBUILD, add "cmsis-dap hidapi-libusb" to "_features"
|
# edit PKGBUILD, add "cmsis-dap hidapi-libusb" to "_features"
|
||||||
@ -97,12 +97,6 @@ Although this refers to setting up the SAMR21, this guide is still very
|
|||||||
helpful to understanding how to set up a solid RIOT development environment for
|
helpful to understanding how to set up a solid RIOT development environment for
|
||||||
the SAMD21: http://watr.li/samr21-dev-setup-ubuntu.html
|
the SAMD21: http://watr.li/samr21-dev-setup-ubuntu.html
|
||||||
|
|
||||||
## Supported Toolchains
|
|
||||||
|
|
||||||
For using the samd21-xpro board we strongly recommend the usage of the
|
|
||||||
[GNU Tools for ARM Embedded Processors](https://launchpad.net/gcc-arm-embedded)
|
|
||||||
toolchain.
|
|
||||||
|
|
||||||
## Known Issues / Problems
|
## Known Issues / Problems
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user