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

    Core2 PortC not working

    Scheduled Pinned Locked Moved Core 2
    4 Posts 2 Posters 7.7k 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.
    • C Offline
      ckuehnel
      last edited by

      I tried GPSRaw.ino on Core2 but get no response from GPS Unit.
      Is there a special initialization required?

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

        Hello @ckuehnel

        most modules, units and their associated examples have been developed before M5Core2 was available and therefore often do not just work out of the box. It is a pity that the M5Stack engineers do not (can not) spare more time to adapt / fix the existing examples from M5Stack to M5Core2.

        That said, in your case the second serial port used for the GPS by default uses GPIO16 and GPIO17 (which on the M5Core2 are being used for the built in PSRAM). Therefore in the M5Core2 the second serial interface, available on PortC, has been changed to use GPIO13 and GPIO14.

        Try changing the following line in the example code from:

        GPSRaw.begin(9600);// GPS init
        

        to

        GPSRaw.begin(9600, SERIAL_8N1, 13, 14);// GPS init
        

        Hope that helps.

        Cheers
        Felix

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

        1 Reply Last reply Reply Quote 0
        • C Offline
          ckuehnel
          last edited by

          @felmue said in Core2 PortC not working:

          GPSRaw.begin(9600, SERIAL_8N1, 13, 14);// GPS init

          Hi @felmue

          Thanks a lot. It works. I small hint in the documentation would be nice.

          Ciao Claus

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

            Hello @ckuehnel

            glad to hear and thanks for letting me know.

            Thanks
            Felix

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

            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