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

    Arduino Debug on ESP32

    PRODUCTS
    6
    7
    18.4k
    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
      Calin
      last edited by Calin

      Debugging Arduino on ESP32 using PlatformIO and GDB.
      Debugging on M5Stack is not that easy because GPIO14 needed for JTAG is no easy accesible.
      Will be very helpful to have an FTDI232H JTAG module option for M5Stack (maybe for M6Stack).
      PlatformIO have a easy to use debugging option for ESP32.

      alt text

      1 Reply Last reply Reply Quote 4
      • M
        mcbridejc
        last edited by

        Just wanted to echo this concern. One of my first questions after running a basic hello world is, "So how do I run a debugger?" And it seems for this board, I would have to disconnect the CS line from the LCD display in order to use JTAG; I haven't yet looked at whether the trace is accessible to cut and re-wire.

        Has anyone been able to successfully connect to JTAG on the M5?

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

          Please change your title as it is misleading.
          This is not an Arduino question, it is a Platformio question.

          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!

          C M 2 Replies Last reply Reply Quote -1
          • C
            cregganna @ajb2k3
            last edited by

            @ajb2k3

            Bump - this is not a platformio Question - the M5Stack hardware has been designed such that one cannot use a JTAG debugger for the esp32. as @mcbridejc states the JTAG MTMS line (GPIO14) has been used as the CS for the LCD module - all other JTAG lines are available on the M5Stack bus.

            Can we request that the next revision of the HW uses a different GPIO for LCD CS?

            B 1 Reply Last reply Reply Quote 2
            • B
              bobolink @cregganna
              last edited by

              @cregganna
              Bump -
              Now (last month) JTAG debugging went free on PlatformIO/Visual Studio Code and Andreas Spiess did a YouTube video on debugging with the Espressif ESP-prog board JTAG interface for the ESP-32.
              First thing I did was check into M5Stack Core and found it wouldn't work.
              Another version with IO12-15 available for JTAG inline debugging would be necessary and appreciated.
              thank you

              1 Reply Last reply Reply Quote 2
              • M
                mhaberler @ajb2k3
                last edited by

                @ajb2k3 let me be candid: offering a platform for development which has such a showstopper design fault is ridiculous unprofessional not very well thought out.

                PLEASE FIX.

                We do not use "Serial.print()" as a debugging method around here.

                btw: how do you quality-control your hardware in production if you cannot use JTAG to verify all works?

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

                  @mhaberler I don't I'm just a moderator of the forums do not work for M5Stack and so have nothing to do with their manufacturing and product quality testing.

                  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
                  • First post
                    Last post