Using all 5 serial ports

Post Reply
razvitm
Posts: 38
Joined: Sat Apr 11, 2020 12:35 pm

Using all 5 serial ports

Post by razvitm »

How can I use all the 5 serial ports on the STM32F103RCT6 microcontroller using the official ST core in Arduino?
I can use USART1 just like on any other arduino board with Serial.begin(9600); but the other 4 serial ports are not working, I get compiler error
"undefined reference to `Serial2'"

Do I have to instanciate the rest of the serial ports?
How do I do that?
Last edited by razvitm on Fri May 01, 2020 12:29 pm, edited 1 time in total.
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Using all 5 serial ports

Post by fpiSTM »

razvitm
Posts: 38
Joined: Sat Apr 11, 2020 12:35 pm

Re: Using all 5 serial ports

Post by razvitm »

Thanks, all serial ports working now.
Post Reply

Return to “STM32F1 based boards”