Serial allocation

Working libraries, libraries being ported and related hardware
Post Reply
Phono
Posts: 68
Joined: Thu Mar 19, 2020 9:32 am

Serial allocation

Post 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?
User avatar
fpiSTM
Posts: 1723
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Serial allocation

Post 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
Post Reply

Return to “Libraries & Hardware”