Create alternate Serial samd21

Hi all,
I'd like to create a new Serial, I've read this article but I have a doubt.
If I look in Variant.cpp I have this

 * | 44         |                  |  PA30  |                 | SWCLK, alternate use EXTINT[10] TCC1/WO[0] SERCOM1/PAD[2]
 * | 45         |                  |  PA31  |                 | SWDIO, alternate use EXTINT[11] TCC1/WO[1] SERCOM1/PAD[3]

So if I understand weel I can use these pins with SERCOM1 but I'm not sure what pin should I use for RX and TX.

Uart MySerial(&sercom1, 45, 44, SERCOM_RX_PAD_3, UART_TX_PAD_2);

I'm not sure about this line....

what board? are pins 44 and 45 on pin headers?

Arduino zero. Yes I have an access to 44, 45 PA30 and PA31

this is better
https://docs.arduino.cc/tutorials/communication/SamdSercom#create-a-new-serial-instance

You realize that on an Arduino zero, those pins are connected to the edebug chip? I don't know whether that is disabled when not actually debugging.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.