[SOLVED]can't access Serial2 in STM32F103C8T6
Posted: Mon Aug 21, 2023 9:22 am
hi, I'm new to STM32duino. Yesterday I try to access Serial2 in STM32F103C8T6 and fail. I only can access Serial1 in PA9 and PA10. anyone can help? Here is my code
Code: Select all
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Serial2.begin(9600);
Serial3.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println ("Serial : hello");
Serial2.println("Serial1: world");
Serial3.println("Serial2: Hello world");
delay(1000);
}