Page 1 of 1

Serial allocation

Posted: Mon Apr 06, 2020 4:41 pm
by Phono
Hi, I am looking for the definition of the serial channels for the maple-style boards.
I use Arduino IDE 1.8.12 and the latest core from githup.
Apparently, the identifier
Serial represents the USB serial port.
What is then the name of the physical ports? I tried Serial2, but this produces an "undefined reference" error on compilation.
Is there an official document?

Re: Serial allocation

Posted: Mon Apr 06, 2020 5:45 pm
by fpiSTM
If you enable the USB then Serial is mapped on SerialUSB else it is mapped on the default Serialx
For the BP an maple, you can use Serial1 (PA10/PA9).

For other you can refers to https://github.com/stm32duino/wiki/wiki ... wareserial