Serial print problem

It is printing just a piece and no always the same

#include <Arduino.h>

void print_intro(void);
uint8_t disable_throttle = 0;

void setup() {
Serial.begin(115200);
delay(200); // wait for serial monitor to open
}

void loop() {
print_intro();
delay(2000);
}

//****************************void print_intro(void)******************************************/
void print_intro(void) {
  Serial.println( "" );
  Serial.println( ""  );  
  Serial.println( "===================================================" );
  Serial.println( "          YMFC-32 quadcopter setup tool" );
  Serial.println( "===================================================" );
  Serial.println( "a = Read the receiver input pulses" );
  Serial.println( "b = I2C scanner to detect any I2C sensors attached" );
  Serial.println( "c = Read the raw gyro values" );
  Serial.println( "d = Read the raw accelerometer values" );
  Serial.println( "e = Check the IMU angles" );
  Serial.println( "f = Test the LEDs" );
  Serial.println( "g = Read the battery voltage input" );
  Serial.println( "h = Get gyro and accelerometer calibration values" );
  Serial.println( "===================================================" );
  Serial.println( "1 = Check motor 1 (front right, counter clockwise direction)" );
  Serial.println( "2 = Check motor 2 (rear right, clockwise direction)" );
  Serial.println( "3 = Check motor 3 (rear left, counter clockwise direction)" );
  Serial.println( "4 = Check motor 4 (front left, clockwise direction)" );
  Serial.println( "5 = Check all motors" );
  Serial.println( "===================================================" );
  Serial.println( "For support and questions: www.brokking.net");
  Serial.println( "" );
  if (disable_throttle == 0)   {             //If the throttle is not disabled.
    Serial.println( "===================================================") ;
    Serial.println( "     WARNING >>>THROTTLE IS ENABLED<<< WARNING")  ;
    Serial.println( "===================================================" )   ;
  }
}

=========================================================================

[env:genericSTM32F103C8]
platform = ststm32
board = genericSTM32F103C8
framework = arduino
board_build.core = maple
upload_protocol = stlink
debug_tool = stlink
monitor_speed = 115200
build_flags = -D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC 

And how does it behave when you delete that line and reupload?

Alreary done, it works properly. It is clear the problem comes with maple and because le length of text is non always the same it seems to be a problem of buffer or time spopping the printing, I don’t know.
This job has been done vith maple and when I tryied to convert to visuino the printing was ok but there was three points I was no able to solve. So with maple I have only this problem, (up to now
but i am more or less at the end)

Fundamentally, everything that should be possible in the Maple core should be possible in the newer and up-to-date Arduino STM32 core as well.

Another thing you can try is to place Serial.flush(); after every Serial.println() statement (or just create a new function function that does Serial.println() + Serial.flush() for a message) to force the output to be printed before the next one is attempted. It will be very slow (the waiting) but maybe this changes the behavior.

HI
Suggestion tested no way is printing as before. At reset is printing ,let me say, a text two time long
seeem to be a buffer problem?

What if you write

void setup() {
  Serial.begin(115200);
  Serial.enableBlockingTx();
  delay(200); // wait for serial monitor to open
}

OK solved i Have tested on the test program an it is working now i shall put on the main, but it has to work
Thank again