Problem Using STM32 with Arduino IDE

HardwareSerial serial1(PB11, PD8);

void setup() {
  Serial.begin(9600);
  serial1.begin(9600);
}
void loop() {
  Serial.print("Hello World");
  serial1.print("Hello World");
} 

It is a simple code just to check if serial monitor is working. As I said with a Nucleo64 board I had in hand I was able to read from serial monitor. I tried to see if its just the serial monitor that is not functioning well and I think it is not only the monitor I am having a problem with serial comminication generally. The MCU is able to lit up some led's and do basic operations but it will not read the data received from bluetooth module and light the led which normally and on the other Nucleo Board works perfectly. I am not a native speaker so I hope I am clear enough. Sory for any confusion that may occur in advance.