wemos / docs

34 stars 38 forks source link

Serial readiness after boot - C3 Pico #46

Open LaurentColdfusion opened 1 year ago

LaurentColdfusion commented 1 year ago

Seems that Serial is only available after 4800 ms on C3 Pico has shown in the following code and output.

int count = 0;

void setup()
{
  Serial.begin(115200);
  count = 0;
}

void loop()
{
    Serial.printf("%i\n", count);
    count += 100;
    delay(100); 
}

The terminal output is the following:

--- Terminal on COM11 | 115200 8-N-1
--- Available filters and text transformations: colorize, debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at https://bit.ly/pio-monitor-filters
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
4800
4900
5000
5100
5200

Same code on esp32-c3-devkitm-1, start at 0... no delay

Any explanation on this unexpected behavior ?