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

    Core2 PortC not working

    Core 2
    2
    4
    6.3k
    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
      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
        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
          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
            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
            • First post
              Last post