Skip to content

How to use Serial2 #476

Closed
Closed
@nopnop2002

Description

@nopnop2002

I found this section on your boards.txt.

# NUCLEO_F103RB board
# Support: Serial1 (USART1 on PA10, PA9) and Serial2 (USART3 on PC11, PC10)

I tried Serial2.
But Serial2.println() output to Arduino-IDE Monitor.
I want to output like this.
To Arduino-IDE using Serial.
To PC10 using Serial2.

Code:

void setup() {

  Serial.begin(115200);
  Serial2.begin(115200);
  Serial.println("setup() start");
  Serial2.println("Serial2 setup() start");

  while (1) {
    Serial.println("setup alive...");
    Serial2.println("Serial2 setup alive...");
    delay(1000);
  }
}

void loop() {
  // Not used.
}

My setting:
Serial2

Result:
Serial2-2

Metadata

Metadata

Assignees

Labels

bug 🐛Something isn't workingdocumentation 📚Improvements or additions to documentation

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions