Adafruit Feather M0

Support for the Adafruit Feather M0. More...

Detailed Description

Support for the Adafruit Feather M0.

General information

Feather M0 boards are development boards shipped by Adafruit.

All the feather M0 boards are built based on the same Atmel SAMD21G18A microcontroller. See Atmel SAMD21.

Several types of Feather M0 boards exist: Feather M0 WiFi Feather M0 BLE Feather M0 Adalogger Feather M0 LoRa

The different modules used to differentiate the boards (ATWINC1500 WiFi, Bluefruit LE, SD card, LoRa) are connected via SPI (SPI_DEV(0)) to the SAMD21 mcu.


Adafruit Feather M0 proto pinout

AIN7 can be used to measure the voltage of a connected Lipoly battery. It is mapped to ADC_LINE(6) in RIOT.

vbat *= 2; /* voltage was divided by 2, so multiply it back */
vbat *= 33; /* reference voltage 3.3V * 10 */
vbat /= 10240; /* resolution * 10 (because we multiplied 3.3V by 10) */
printf("Bat: %dV\n", vbat);

Flash the board

  1. Put the board in bootloader mode by double tapping the reset button.
    When the board is in bootloader mode, the user led (red) oscillates smoothly.
  2. Use BOARD=feather-m0 with the make command.
    Example with hello-world application:
    make BOARD=feather-m0 -C examples/hello-world flash

Accessing STDIO via UART

To access the STDIO of RIOT, a FTDI to USB converted needs to be plugged to the RX/TX pins on the board.


file  board.h
 Board specific configuration for the Adafruit Feather M0.
file  gpio_params.h
 Board specific configuration of direct mapped GPIOs.
file  periph_conf.h
 Configuration of CPU peripherals for Adafruit Feather M0.
file  sdcard_spi_params.h
 SD card configuration for the Adafruit Feather M0 Adalogger.