Simple code works on arduino but does not work on platformio

Hello I am trying to use my arduino nano with platfomio for first time but I am having some troubles, seems the code compiles and flash correctly but the response of the arduino is not what I expected, LED does not blink or blinks too fast and the serial communication prints incorrect messages, also this code works with arduino ide.

Thank you

platformio.ini

[env:nanoatmega328new]
platform = atmelavr
board = nanoatmega328new
framework = arduino

main.cpp

#include <Arduino.h>

#define LED 13

void setup() {
Serial.begin(9600);
pinMode(LED, OUTPUT);

}

void loop() {
Serial.println(“Hello world”);
printf(“Hello world”);
digitalWrite(LED, HIGH);
delay(1000);
digitalWrite(LED, LOW);
delay(1000);
// put your main code here, to run repeatedly:
}

I don’t think printf() would work by default on AVR? What happens when you delete that line?

ouhh is that, thank you so much, I did not expect this line would affect to the blinks. :grin: