STM32 arduino code help

#include <SoftwareSerial.h> 

SoftwareSerial name(2,3);
SoftwareSerial name2(4,5);

void setup()
{
name.begin(9600);
name2.begin(9600);
delay(2000);
}

void loop() 
{
name.listen()
name.println("Serial 1");
delay(1000);

name2.listen()
name2.println("Serial 2");
delay(3000);
}

How can i write this code for STM32F103C8T6 for pins (serial1) - PA_9, PA_10 ; (serial2) - PA_2, PA_3
PLEASE HELP MEEE , Thanks !

The pins are already assigned on the STM32. You can't just assign them to any pin like with software serial. So all you have to do is just replace all your 'name' instances with 'serial1' and so forth. Have you tried compiling it? It doesn't - check for missing semicolons.