Serial.println() was not printing on serial monitor

OK. You lost the first one in the loop(). It should have started at 0. So we are back to post #2 also mentioned now in post #41 (and maybe elsewhere)
Anyway, it looks like it needs 5 seconds to start if left on its own.
Try this:

void setup()
{
  // put your setup code here, to run once:
  Serial.begin(115200);

  while (!Serial)
  {
    ; // Wait for serial to connect
  }

  delay(1000);
  Serial.println("setup()");
}

void loop()
{
  static uint32_t i = 0 ;
  Serial.print("loop()");  // should start at 0
  Serial.println( i++ ) ;
  delay( 1000) ;
}