From c68b1fea7f16eaa9580e1df61d56f8cb0ca14762 Mon Sep 17 00:00:00 2001 From: Dylan Laduranty Date: Tue, 23 Apr 2024 15:18:04 +0200 Subject: [PATCH] boards/samd20-xpro: update board documentation Signed-off-by: Dylan Laduranty --- boards/samd20-xpro/doc.txt | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/boards/samd20-xpro/doc.txt b/boards/samd20-xpro/doc.txt index dc7c2bc1b3..c41ce167b5 100644 --- a/boards/samd20-xpro/doc.txt +++ b/boards/samd20-xpro/doc.txt @@ -47,11 +47,13 @@ memory. Connect the device to your Micro-USB cable using the port labeled as *DEBUG USB*. -The standard method for flashing RIOT to the samd20-xpro is using OpenOCD. +The standard method for flashing RIOT to the samd20-xpro is using [edbg](https://github.com/ataradov/edbg). +by calling: `make BOARD=samd20-xpro -C tests/leds flash` -Refer to https://github.com/RIOT-OS/RIOT/wiki/OpenOCD for general -instructions on building OpenOCD and make sure "cmsis-dap" and "hidapi-libusb" -are enabled. +Note that on Linux, you will need libudev-dev package to be installed. + +Users can also use openOCD to flash and/or debug the board using: +`PROGRAMMER=openocd make BOARD=samd20-xpro -C tests/leds flash` On Linux you will have to add a **udev** rule for hidraw, like ``` @@ -64,6 +66,7 @@ sudo service udev restart ### Arch Linux With yaourt: ``` +yaourt -S libudev0 yaourt -S hidapi-git yaourt -S openocd-git # edit PKGBUILD, add "cmsis-dap hidapi-libusb" to "_features" @@ -74,12 +77,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 the SAMD20: http://watr.li/samr21-dev-setup-ubuntu.html -## Supported Toolchains - -For using the samd20-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 */