🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

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

    Scheduled Pinned Locked Moved Arduino
    arduino
    4 Posts 3 Posters 4.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • LukeSL Offline
      LukeS
      last edited by

      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
      
      teastainT 1 Reply Last reply Reply Quote 0
      • teastainT Offline
        teastain @LukeS
        last edited by

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

        Cheers, Terry!

        100% M5Stack addict with several drawers full of product!

        1 Reply Last reply Reply Quote 1
        • felmueF Offline
          felmue
          last edited by

          Hello @LukeS

          please see this thread for a solution.

          Thanks
          Felix

          GPIO translation table M5Stack / M5Core2
          Information about various M5Stack products.
          Code examples

          1 Reply Last reply Reply Quote 1
          • LukeSL Offline
            LukeS
            last edited by

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

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post