ESP32 Debugging problems

Sysprogs forums Forums VisualGDB ESP32 Debugging problems

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #23345
    jakkra
    Participant

    Hi, I’m stuck getting the debugger to work on my computer, my coworkers got it running on their computers. I have tried reinstalling Visual GDB 5.4 beta 2 and also reinstalling the toolchain (SysGCC). When I do “Test” in Debug settings it this is my log:

     

    How do I provide you with my license status? Can you see my license through the email address?

    C:\SysGCC\esp32\esp32-bsp\OpenOCD\bin\openocd.exe -c "gdb_port 50982" -c "telnet_port 50983" -f interface/ftdi/evb-nina-w1.cfg -c "set ESP32_FLASH_VOLTAGE 3.3" -f target/esp32.cfg -c "adapter_khz 3000" -c "echo VisualGDB_OpenOCD_Ready"
    Open On-Chip Debugger 0.9.0 (2018-10-12)
    Licensed under GNU GPL v2
    For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
    3.3
    Info : auto-selecting first available session transport "jtag". To override use 'transport select '.
    esp32 interrupt mask on
    adapter speed: 3000 kHz
    VisualGDB_OpenOCD_Ready
    Info : clock speed 3000 kHz
    Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    Info : Target halted. PRO_CPU: PC=0x401A5C9A (active) APP_CPU: PC=0x400924E8
    cpu0: Current bits set: BreakIn BreakOut RunStallIn
    cpu1: Current bits set: BreakIn BreakOut RunStallIn
    Info : accepting 'gdb' connection on tcp/50982
    Info : Target halted. PRO_CPU: PC=0x4009170E (active) APP_CPU: PC=0x400924E8
    Info : Flash mapping 0: 0x71697872 -> 0x6672203a, 790366 KB
    Info : Flash mapping 1: 0x2c782578 -> 0x72667220, 613903 KB
    Info : Flash mapping 2: 0x0 -> 0x590df43d, 10559 KB
    Info : Flash mapping 3: 0x4b54be8 -> 0x4b82ef8, 77241 KB
    Info : Flash mapping 4: 0xa4fccc -> 0x4921f9, 77138 KB
    Info : Flash mapping 5: 0x17 -> 0x33719f8, 4543 KB
    Info : Flash mapping 6: 0x4b5e3f0 -> 0x590df46d, 10559 KB
    Info : Flash mapping 7: 0xa4fcc8 -> 0x274, 6457 KB
    Info : Flash mapping 8: 0x1 -> 0x24, 77323 KB
    Info : Flash mapping 9: 0x4b6e4e0 -> 0x0, 4516 KB
    Info : Flash mapping 10: 0x0 -> 0xa4fccc, 77323 KB
    Info : Flash mapping 11: 0x7571c870 -> 0x656d3159, 4194303 KB
    Info : Flash mapping 12: 0x75707084 -> 0x60164f, 77324 KB
    Info : Flash mapping 13: 0x6c666d -> 0x6c68fe, 77324 KB
    Info : Flash mapping 14: 0x1f -> 0x2b60800, 0 KB
    Info : Flash mapping 15: 0x4b54be8 -> 0xa4fca4, 0 KB
    Info : Flash mapping 16: 0xa4ffcc -> 0x4b82ef8, 0 KB
    Info : Flash mapping 17: 0x4b54300 -> 0xa4fd4c, 4502 KB
    Info : Flash mapping 18: 0x4b82ef8 -> 0x64d850, 0 KB
    Info : Flash mapping 19: 0x64dbf0 -> 0x64da18, 77327 KB
    Info : Flash mapping 20: 0x4b83ff0 -> 0x604faf, 77062 KB
    Info : Flash mapping 21: 0xa4fd01 -> 0x0, 22752 KB
    Info : Flash mapping 22: 0x0 -> 0x10, 0 KB
    Info : Flash mapping 23: 0x186a0 -> 0x1, 4194303 KB
    Info : Flash mapping 24: 0x0 -> 0x74d9ec, 0 KB
    Info : Flash mapping 25: 0xfffffffc -> 0x0, 0 KB
    Info : Flash mapping 26: 0x26c -> 0x1a8, 0 KB
    Info : Flash mapping 27: 0x0 -> 0x0, 44379 KB
    Info : Flash mapping 28: 0x1a8 -> 0xa4fdac, 1883014 KB
    Info : Flash mapping 29: 0x2b56f68 -> 0x2b630a8, 1883014 KB
    Info : Flash mapping 30: 0x72ee1b37 -> 0x2b5be98, 0 KB
    Info : Flash mapping 31: 0xa4fdd0 -> 0x0, 0 KB
    Info : Flash mapping 32: 0x100 -> 0x1, 0 KB
    Info : Flash mapping 33: 0x637c9961 -> 0xa4fdd8, 10559 KB
    Info : Flash mapping 34: 0x76ae5aeb -> 0x1a8, 0 KB
    Info : Flash mapping 35: 0xa4fdd0 -> 0xa4fe0c, 1944470 KB
    Info : Flash mapping 36: 0xa4ffcc -> 0x76aea560, 0 KB
    Info : Flash mapping 37: 0x590df5dd -> 0x4b5522c, 4500 KB
    Info : Flash mapping 38: 0x1a8 -> 0x1, 4 KB
    Info : Flash mapping 39: 0xa4fe0c -> 0x4, 1952004 KB
    Info : Flash mapping 40: 0x0 -> 0x0, 0 KB
    Info : Flash mapping 41: 0x1 -> 0xc727, 128 KB
    Info : Flash mapping 42: 0x3370000 -> 0x0, 0 KB
    Info : Flash mapping 43: 0x4b3ee80 -> 0x4b3ee81, 6455 KB
    Info : Flash mapping 44: 0xa4feb8 -> 0x467ad7, 6455 KB
    Info : Flash mapping 45: 0x4b3ee80 -> 0xffffffff, 4505 KB
    Info : Flash mapping 46: 0x466bb0 -> 0x466010, 77213 KB
    Info : Flash mapping 47: 0xffffffff -> 0x33719f8, 0 KB
    Info : Flash mapping 48: 0x33718f4 -> 0x33719f8, 0 KB
    Info : Flash mapping 49: 0x33718f4 -> 0xa4feb8, 4103 KB
    Info : Flash mapping 50: 0x33719f8 -> 0x6381ed, 52677 KB
    Info : Flash mapping 51: 0x6381f4 -> 0x6381ac, 1952004 KB
    Info : Flash mapping 52: 0xa4ffcc -> 0x7571c870, 52678 KB
    Info : Flash mapping 53: 0x1d -> 0x33718f4, 6337 KB
    Info : Flash mapping 54: 0xf -> 0x33717c8, 0 KB
    Info : Flash mapping 55: 0x0 -> 0x1d, 52678 KB
    Info : Flash mapping 56: 0xa4ff80 -> 0x4013eb, 0 KB
    Info : Flash mapping 57: 0x33717c8 -> 0x3372018, 0 KB
    Info : Flash mapping 58: 0x86da68d4 -> 0xa4ff08, 1952276 KB
    Info : Flash mapping 59: 0xffffffff -> 0xcccccccc, 3355443 KB
    Info : Flash mapping 60: 0xcccccccc -> 0xcccccccc, 3355443 KB
    Info : Flash mapping 61: 0xcccccccc -> 0xcccccccc, 3355443 KB
    Info : Flash mapping 62: 0x14c -> 0x8664, 10559 KB
    Info : Flash mapping 63: 0x3c -> 0x33717c8, 52678 KB
    Info : Flash mapping 64: 0xb1d588bb -> 0x0, 824508 KB
    Info : Flash mapping 65: 0x0 -> 0x0, 0 KB
    Info : Flash mapping 66: 0x0 -> 0x0, 0 KB
    Info : Flash mapping 67: 0x0 -> 0x0, 0 KB
    Info : Flash mapping 68: 0x0 -> 0x0, 0 KB
    Info : Flash mapping 69: 0x0 -> 0x0, 0 KB
    Info : Flash mapping 70: 0x0 -> 0x0, 4101 KB
    Info : Flash mapping 71: 0x401500 -> 0xa4ff94, 3368 KB
    Info : Flash mapping 72: 0x401500 -> 0x401500, 10559 KB
    Info : Flash mapping 73: 0x740b8654 -> 0x34a000, 1901281 KB
    Info : Flash mapping 74: 0x89c263de -> 0xa4ffdc, 1952146 KB
    Info : Flash mapping 75: 0x34a000 -> 0x86da69dc, 0 KB
    Info : Flash mapping 76: 0x0 -> 0x34a000, 0 KB
    Info : Flash mapping 77: 0x0 -> 0x0, 0 KB
    Info : Flash mapping 78: 0x86da69dc -> 0xa4ffa0, 0 KB
    Info : Flash mapping 79: 0xa4ffe4 -> 0x77276a50, 3953755 KB
    Info : Flash mapping 80: 0x0 -> 0xa4ffec, 1952146 KB
    Info : Flash mapping 81: 0xffffffff -> 0x77289ebe, 0 KB
    Info : Flash mapping 82: 0x0 -> 0x401500, 3368 KB

     

    Then after a while I get:

    Unable to read data from transport connection: An existing connection was forcibly closed by the remote host.

    With the following stacktrace:

    VisualGDB version: 5.4.12.2657
    ------------------ System.IO.IOException ------------------
    System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
    at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
    at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
    --- End of inner exception stack trace ---
    at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
    at System.IO.Stream.ReadByte()
    at VisualGDB.Common_GUI.WPF.DebugMethodTestWindow.TestThreadBody()
    ------------------ Inner exception ------------------
    ------------------ System.Net.Sockets.SocketException ------------------
    System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
    at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
    at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)

     

     

    • This topic was modified 6 years, 5 months ago by jakkra.
    #23366
    support
    Keymaster

    Hi,

    This looks like a bug that was recently fixed in the Espressif’s OpenOCD implementation. We have updated our packages to include this fix.

    Please try installing the latest ESP32 toolchain via VisualGDB Package Manager and (also install the “ESP32 Debug Methods” package or create a new project via the ESP32 project wizard). This should get the latest OpenOCD with the most recent fixes.

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