Serial and Serial1 pins on SAMD21 Mini Breakout

Hey everyone,

I’ve read you have access to two different serial ports on the SAMD21, thanks to the sercoms.

The Sparkfun article is super clear about it (https://learn.sparkfun.com/tutorials/sa … rial-ports)

However I can’t identify which pins are the second port on the board :confused:

Any help ?

(schematic: https://cdn.sparkfun.com/assets/learn_t … t-Mini.pdf)

Many thanks :slight_smile:

Hello Max.

Unfortunately pins 30 and 31 are not available on the SAMD21 Mini Breakout due to lack of room on the board. You can however use SERCOM to assign 2 and 3 to another UART. 30 and 31 exist on the chip, but there isn’t any space on the PCB to break them out. [Check this guide here for details on how to reassign pins 2 and 3 to another UART. :-)](https://learn.sparkfun.com/tutorials/adding-more-sercom-ports-for-samd-boards#adding-a-uart)

TS-Chris:
Hello Max.

Unfortunately pins 30 and 31 are not available on the SAMD21 Mini Breakout due to lack of room on the board. You can however use SERCOM to assign 2 and 3 to another UART. 30 and 31 exist on the chip, but there isn’t any space on the PCB to break them out. [Check this guide here for details on how to reassign pins 2 and 3 to another UART. :slight_smile:
[/quote]

About that “Adding More SERCOM Ports” article, it’s a little hard to follow because it kind of blends the “why and how” by referring to external files (Sercom.h, varaint.cpp) but not making it clear that these files will never need to be changed. For example, in the “2.) Add Your Code” part it -still- refers to variant.cpp, when we’re not actually adding -anything- to that file.

I think the article would be helped immensely if a simple opening statement like “Extra serial UARTS/ports can be configured on specific pins by adding a few lines of code to your sketch. No other changes to the Arduino environment are required”

Thanks!](https://learn.sparkfun.com/tutorials/adding-more-sercom-ports-for-samd-boards#adding-a-uart)