ESP32 Variable Watch during Debugging

Sysprogs forums Forums VisualGDB ESP32 Variable Watch during Debugging

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10155
    aaquilina
    Participant

    Hi,

    I am debugging the ESP32-WROOM-32 using a USB to MPSEE Serial Cable over the JTAG interface. When setting up the debug settings, under programming interface, I select to specify and interface script manually and for this I selected interface/ftdi/um232h.cfg.

    DebugSettings

    Once I created the project, I copied over the HTTP Client example from the ESP-IDF. I then run the code and manage to break at my breakpoint. When break occurs and I mouse over a variable, and the value is listed as <unavailable>. Is this normal for the ESP32? Or is this caused by the USB to JTAG converter that I’m using? If it’s the latter, would I be better off with an Olimex debugger such as the ARM-USB-OCD-H?

    Variable Value

     

    #10156
    support
    Keymaster

    Hi,

    This is a known limitation of the ESP32 toolchain. To work around this, please wrap your function call with another one, e.g.:

    void ThreadBodyWrapper()
    {
        ThreadBody();
    }

    As long as the esp32 gdb can see the previous frame (ThreadBodyWrapper), it will be able to show the variable values in the current frame (ThreadBody).

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.