Core2 PortC not working

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

  • 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


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

    Hope that helps.


  • @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

  • Hello @ckuehnel

    glad to hear and thanks for letting me know.