Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (37 sloc) 1.1 KB
* Serial6 with alternative pins example with Nucleo 64 STM32F411 which
* is supported in Arduino IDE by
* Description:
* Sends "Hello World" message through hardware alternative pins of Serial6
* Baudrate is 9600 Bd
* Alternative pins are described in /core/variant/PeripheralPins.c
* Change Serial interface to "All (up to 10)" in Arduino IDE -> Tools
* Connection:
* Serial6 is alternatively connected to PC6 and PC7
* TX - PC6 -> connect TX of STM32 to RX of USB-UART converter
* RX - PC7 -> connect RX of STM32 to TX of USB-UART converter
* GND to GND
* Define serial and RX, TX pins
* HardwareSerial Serial6(rx, tx);
* Made by (2018)
// set RX and TX pins
HardwareSerial Serial6(PC7, PC6);
// the setup function runs once when you press reset or power the board
void setup()
Serial6.begin(9600); // initialize Serial6
// the loop function runs over and over again forever
void loop()
// send "Hello World" message through alternative pins of Serial6
Serial6.println("Hello World");
// wait one second
You can’t perform that action at this time.