Anyone using PlatformIO? Unable to get serial terminal to work.



  • Does anyone here use platform IO? I am unable to get the serial monitor to see what I print to the serial monitor. Anyone else have this issue?

    Main.cpp

    #include <Arduino.h>
    #include <M5Unified.h>
    
    int counter1 = 0;
    
    void setup() {
      auto cfg = M5.config();
      M5.begin(cfg);
      delay(500);
    
      M5.Display.setTextSize(2);
    }
    
    void loop() {
      M5.update();
    
      M5.Display.setCursor(0, 20);
      M5.Display.print("C1: ");
      M5.Display.print(counter1);
    
      Serial.println(counter1);
      delay(200);
    
      counter1++;
    }
    

    Platform.ini

    [env:m5stack-atoms3]
    platform = espressif32
    board = m5stack-atoms3
    framework = arduino
    monitor_speed = 115200
    monitor_rts = 0
    monitor_dtr = 0
    monitor_raw = yes
    lib_deps = m5stack/M5Unified@^0.1.13
    


  • @lukes In Arduino IDE you need to set the comm settings to USB CDC on Boot "Enabled", with S3 boards.



  • Hello @LukeS

    please see this thread for a solution.

    Thanks
    Felix



  • Thanks guys adding the build flags fixed the blank serial terminal in PlatformIO.