Adding support for multiple hardware uarts to Wio Terminal

Does anyone have examples of using multiple hardware UARTs with Wio Terminal?

The SAMD51 supports multiple sercom devices so it should be possible. I found reference in the XIAO section of the forum to Require 3 hardware UARTs which provides helpful information on the SAMD21 however I am having difficulty figuring out which pins are available and routed to the header on the Wio Terminal.

Any examples based on the Wio Terminal would save me a lot of time.

You can try to establish a soft serial port for communication, here is the code after successful testing

#include <SoftwareSerial.h>

SoftwareSerial mySerial(6, 8); // RX=A6, TX=A8

void setup()



  while (!Serial) {


  Serial.println("Goodnight moon!");


  mySerial.println("Hello, world?");


void loop()


  if (mySerial.available())


  if (Serial.available())



Hope it will help you

That solution uses software serial ports, which unfortunately are not fast enough for my purposes. Note that the topic says multiple hardware uarts. (but thank you for trying :slightly_smiling_face:!)

I believe that the solution will probably require additions to the code near the end of variant.cpp to use SERCOM3 and/or SERCOM5.