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

    Maximum serial speed limited to 500000 baud?

    Scheduled Pinned Locked Moved Cores
    2 Posts 1 Posters 7.4k Views 1 Watching
    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.
    • G Offline
      GunterO
      last edited by

      Can somebody confirm that the maximum "Serial" speed is limited to 500000 baud?
      As soon I set it to 1000000 or 2000000 it stops outputting to the console.
      I have another ESP32 board, which is using a CH340 as UART-USB bridge, and this one is working fine on 2000000 baud.
      Is it a limitation of the CP210x chip used in the M5Stack?
      I'm using a M5Stack Grey.

      Working:

      void setup() {
      M5.begin();
      Serial.begin(500000);

      Not working:

      void setup() {
      M5.begin();
      Serial.begin(2000000);

      Thanks!

      1 Reply Last reply Reply Quote 0
      • G Offline
        GunterO
        last edited by

        I stumbled on this restriction again, and dug a bit deeper in the issue.
        It appears that the hardware is not limiting the baudrate, but the M5Stack library. More specifically, M5.begin();
        Luckily, you can skip the UART init, and do it yourself like this:

        M5.begin(true,true,false);
        Serial.begin(2000000);
        Serial.flush();

        And now it works for 2000000 baud.

        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