ESP32 JTAG test failed – 'Unable to read data from the transport connection'

Sysprogs forums Forums VisualGDB ESP32 JTAG test failed – 'Unable to read data from the transport connection'

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #22471
    kirkb72
    Participant
    • VS2017 community
    • VisualGDB 5.4-Preview 7
    • ESP32 DevkitC v4
    • This JTAG: https://www.amazon.com/FTDI-C232HM-DDHSL-0-Assembly-USB-MPSSE-Output/dp/B00HKK4SCO/ref=sr_1_1

    When I do a Debug test the OpenOCD output shows no errors, but during “Connecting to stub”, VisualGDB fails with “Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host”

    Relevant files attached.

    FWIW I tried the OpenOCD v0.90 that comes with VisualGDB, and also upgraded to v0.10 to see if there’s any difference.  No luck.

     

    Attachments:
    You must be logged in to view attached files.
    #22475
    support
    Keymaster

    Hi,

    It looks like OpenOCD fails to read some of the internal ESP32 registers:

    Error: Exception reading icountlevel!

    It might be caused by wiring issues, incompatible script or broken hardware.

    Generally, given how fragile the ESP32 setup is, we would advise starting with a board that is directly mentioned in our tutorials (e.g. ESP32-WROVER with a built-in JTAG), getting it to work and then moving on to the custom hardware.

    #22477
    kirkb72
    Participant

    Sometimes I don’t get that icountlevel exception (or any error) but it still fails with the same ‘Unable to read data from the transport connection’.

    Maybe I’ll try the ESP32 WROVER kit instead of DEVKITC, just so I can eliminate my JTAG adapter as a culprit.

    #22499
    support
    Keymaster

     

     

    Yes, the WROVER kit with the on-board JTAG should be indeed more reliable (don’t forget to enable JTAG via jumpers).

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