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

    M5Fire and UART

    UIFlow
    5
    7
    3.1k
    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
      gerber2
      last edited by

      Hi,
      I got an M5Fire and a QR-Code Scanner with the Atom Lite. I want to send the results of the QR scanner to the M5Fire via UART, and I connect them with a Grove cable via Port C on the M5Fire (which I bought last week).

      I can make it work, BUT

      1. it only works when I download it via UIFLOW, I can not test it live from UIFlow, because then it runs into an error
      2. The setup to make it work is different from what I would expect (Tx and Rx have to be switched).

      You can see the screenshot attached, which makes it work:
      0_1691766799945_Bildschirm­foto 2023-08-11 um 17.12.07.png

      If I run it "live", I get the following error though:
      Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.

      Which I saw being attributed to the pins being used otherwise.

      Can anyone help me shed some light on that?

      Thank you so much

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

        Hello @gerber2

        GPIO16 and GPIO17 cannot be used on M5Stack Fire. They are internally used for PSRAM.

        See notice from here.

        Notice:
        The GPIO 16 / 17 in Fire is connected to the PSRAM by default, so when you connect or stack other function modules, you need to avoid conflicts with these two pins to prevent the device from working improperly and causing instability.

        Thanks
        Felix

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

        A 1 Reply Last reply Reply Quote 0
        • G
          gerber2
          last edited by

          Hmm, so that means I can not use any of Grove connectors for this? I tried with the other hint provided about alternatives, but don't get it to work... Sounds like I need to sent back the Fire and get another M5Stack Core version?

          1 Reply Last reply Reply Quote 0
          • A
            AroWhite @felmue
            last edited by

            @felmue
            Hello.
            Sorry, but why did the engineers make GROVE C if in this situation it is absolutely not usable and useless?
            I wanted to use this connector in my project and encountered the same problem. Okay, I tried to use UART on pins G3 and G1 and it was also not usable (as I understand, these pins are connected to the usb programmer).
            Yes, I admit my guilt that I did not fully read the description, but.... one way or another it is funny and sad.
            And this was my first experience with M5Stack, obviously unsuccessful lol

            1 Reply Last reply Reply Quote 0
            • ajb2k3A
              ajb2k3
              last edited by ajb2k3

              The M5Fire uses the Go Base which was designed for the First generation Cores. I don't know why they still sell it with the Gobs when it known to not work.
              In theory you should be able to choose between UART or PSram

              UIFlow, so easy an adult can learn it!
              If I don't know it, be patient!
              I've ether not learned it or am too drunk to remember it!
              Author of the WIP UIFlow Handbook!
              M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

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

                Hello @AroWhite

                the first M5Stack device, M5Stack Basic, came w/o PSRAM, so using GPIO16 and GPIO17 for UART was an ok, albeit unlucky, choice.

                Note: most functions (I2C, UART, etc.) can be assigned to almost any GPIOs. Unfortunately PSRAM is an exception and requires GPIO16 and GPIO17 to be used.

                BTW: I think you should be able to use Groove port B as UART (GPIO36 and GPIO26).

                Thanks
                Felix

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

                B 1 Reply Last reply Reply Quote 1
                • B
                  BrownianCoder @felmue
                  last edited by

                  @felmue I was struggling to figure out why my FIRE was restarting each time I tried to use the UART port... Using Port B worked though.

                  Thanks for the suggestion!

                  Screenshot 2025-03-31 at 21.25.56.png

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post