Seeed Seeeduino XIAO

The Seeed Seeeduino XIAO is a tiny ARM development board based on the Atmel ATSAMD21G18 family of SoC.

Interfaces

Interface Hardware Supported TinyGo Support
GPIO YES YES
UART YES YES
SPI YES YES
I2C YES YES
ADC YES YES
PWM YES YES
USBDevice YES YES

Pins

Pin Hardware pin Alternative names
D0 PA02 A0
D1 PA04 A1
D2 PA10 A2, I2S_SCK_PIN
D3 PA11 A3
D4 PA08 A4, SDA_PIN, I2S_SD_PIN
D5 PA09 A5, SCL_PIN
D6 PB08 A6, UART_TX_PIN
D7 PB09 A7, UART_RX_PIN
D8 PA07 A8, SPI0_SCK_PIN
D9 PA05 A9, SPI0_SDI_PIN
D10 PA06 A10, SPI0_SDO_PIN
LED PA17
LED_RXL PA18 LED2
LED_TXL PA19 LED3
USBCDC_DM_PIN PA24
USBCDC_DP_PIN PA25

Machine Package Docs

Documentation for the machine package for the Seeed Seeeduino XIAO

Flashing

UF2

The XIAO comes with the UF2 bootloader already installed.

CLI Flashing

  • Plug your XIAO into your computer’s USB port.

  • Flash your TinyGo program to the board using this command:

    tinygo flash -target=xiao [PATH TO YOUR PROGRAM]
    
  • The XIAO board should restart and then begin running your program.

Troubleshooting

If you have troubles getting your XIAO board to receive code, try this:

  • Short the “RST pins” two times to get the XIAO board ready to receive code.
  • The XIAO board will appear to your computer like a USB drive.
  • Now try running the command as above:
tinygo flash -target=xiao [PATH TO YOUR PROGRAM]

Once you have updated your XIAO board the first time, after that you should be able to flash it entirely from the command line.

Notes

You can use the USB port to the XIAO as a serial port. UART0 refers to this connection.