Re: [Solved] Multiple serial port at the same time doesn't work
Posted: Mon Aug 16, 2021 6:05 pm
Ok, thanks. That makes sense and I now understand that I can't use Serial simultaneously in PA9, PA10 and PB6, PB7 with STM32F411CEU. I have now tried with USART2 and it worked fine. The code:
Code: Select all
HardwareSerial RPI(PB7,PB6);
HardwareSerial DEBUG(USART2);
void setup() {
RPI.begin(115200);
DEBUG.begin(115200); // begin Serial
delay(1000);
DEBUG.println("debug");
RPI.println("RPI");
}
void loop() {
}