JakobN

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: ESP32 Jlink Programming fails #23032
    JakobN
    Participant

    ah then i took the wrong fiel for the manual testing. Where is the gdb exe for the ESP32.

    The error is still the same

    System.Exception: FLASH programming failed. Please review the gdb/OpenOCD logs for details.
    bei ESP8266DebugPackage.ESP32DebugController.LoadFLASH(DebugStartContext context, IDebugStartService service, ISimpleGDBSession session, ESP32OpenOCDSettings settings, ESP32GDBStub stub)
    bei ESP8266DebugPackage.ESP32DebugController.ESP32GDBStub.RunLoadCommand(IDebugStartService service, ISimpleGDBSession session, String cmd)
    bei OpenOCDPackage.OpenOCDDebugController.OpenOCDGDBStub.ConnectGDBToStub(IDebugStartService service, ISimpleGDBSession session)
    bei c8.j(ua d, t82 c, gw1 a, EmbeddedTraceSettings b)
    bei tq1.o_2(DebugCustomizationSettings a)
    bei ph2.z2()
    bei mf2.e_4()
    bei VisualGDB.GDBDebugEngine.u(es a, c1 b)
    
    GDB
    VisualGDB is licensed to
    -gdb-version
    =thread-group-added,id="i1"
    ~"GNU gdb (crosstool-NG crosstool-ng-1.22.0-80-g6c4433a5) 7.10\n"
    ~"Copyright (C) 2015 Free Software Foundation, Inc.\n"
    ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\nand \"show warranty\" for details.\n"
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
    and "show warranty" for details.
    ~"This GDB was configured as \"--host=i686-host_pc-mingw32 --target=xtensa-esp32-elf\".\nType \"show configuration\" for configuration details."
    This GDB was configured as "--host=i686-host_pc-mingw32 --target=xtensa-esp32-elf".
    Type "show configuration" for configuration details.
    ~"\nFor bug reporting instructions, please see:\n"
    ~"<http://www.gnu.org/software/gdb/bugs/>.\n"
    ~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n"
    Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.
    ~"For help, type \"help\".\n"
    ~"Type \"apropos word\" to search for commands related to \"word\"...\n"
    ~"Reading symbols from C:/Users/JakobN/source/repos/EmbeddedProject5/EmbeddedProject5/VisualGDB/Debug/blink.elf..."
    ~"done.\n"
    ~"GNU gdb (crosstool-NG crosstool-ng-1.22.0-80-g6c4433a5) 7.10\n"
    ~"Copyright (C) 2015 Free Software Foundation, Inc.\n"
    ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\nand \"show warranty\" for details.\n"
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
    and "show warranty" for details.
    ~"This GDB was configured as \"--host=i686-host_pc-mingw32 --target=xtensa-esp32-elf\".\nType \"show configuration\" for configuration details."
    This GDB was configured as "--host=i686-host_pc-mingw32 --target=xtensa-esp32-elf".
    Type "show configuration" for configuration details.
    ~"\nFor bug reporting instructions, please see:\n"
    ~"<http://www.gnu.org/software/gdb/bugs/>.\n"
    ~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n"
    Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.
    ~"For help, type \"help\".\n"
    ~"Type \"apropos word\" to search for commands related to \"word\".\n"
    ^done
    -list-features
    ^done,features=["frozen-varobjs","pending-breakpoints","thread-info","data-read-memory-bytes","breakpoint-notifications","ada-task-info","language-option","info-gdb-mi-command","undefined-command-error-code","exec-run-start-option"]
    -gdb-set disassembly-flavor intel
    ^error,msg="No symbol \"disassembly\" in current context."
    -gdb-set print demangle off
    ^done
    set remotetimeout 60
    &"set remotetimeout 60\n"
    =cmd-param-changed,param="remotetimeout",value="60"
    ^done
    target remote :53667
    &"target remote :53667\n"
    ~"Remote debugging using :53667\n"
    &"Remote communication error.  Target disconnected.: No error.\n"
    ^error,msg="Remote communication error.  Target disconnected.: No error."
    mon gdb_breakpoint_override hard
    &"mon gdb_breakpoint_override hard\n"
    &"\"monitor\" command not supported by this target.\n"
    ^error,msg="\"monitor\" command not supported by this target."
    mon reset halt
    &"mon reset halt\n"
    &"\"monitor\" command not supported by this target.\n"
    ^error,msg="\"monitor\" command not supported by this target."
    mon program_esp32 "C:/Users/JakobN/source/repos/EmbeddedProject5/EmbeddedProject5/VisualGDB/Debug/bootloader/bootloader.bin" 0x1000
    &"mon program_esp32 \"C:/Users/JakobN/source/repos/EmbeddedProject5/EmbeddedProject5/VisualGDB/Debug/bootloader/bootloader.bin\" 0x1000\n"
    &"\"monitor\" command not supported by this target.\n"
    ^error,msg="\"monitor\" command not supported by this target."
    -target-disconnect
    ^error,msg="You can't do that when your target is `exec'"
    -gdb-exit
    ^exit
    
    
    OPENOCD
    
    c:\SysGCC\esp32\esp32-bsp\OpenOCD\bin\openocd.exe -c "gdb_port 53667" -c "telnet_port 53668" -f interface/jlink.cfg -c "adapter_khz 3000" -f target/esp32.cfg -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
    adapter speed: 3000 kHz
    Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
    esp32 interrupt mask on
    VisualGDB_OpenOCD_Ready
    Info : No device selected, using first device.
    Info : J-Link V9 compiled Apr 20 2018 16:47:26
    Info : Hardware version: 9.50
    Info : VTarget = 2.995 V
    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 : esp32: Debug controller was reset (pwrstat=0x5F, after clear 0x0F).
    Info : esp32: Core was reset (pwrstat=0x5F, after clear 0x0F).
    cpu0: Current bits set: BreakIn BreakOut RunStallIn
    cpu1: Current bits set: none
    Info : esp32: Debug controller was reset (pwrstat=0xE5, after clear 0x5F).
    Info : accepting 'gdb' connection on tcp/53667
    Error: cpu0: esp32_fetch_all_regs (line 255): DSR (120034E5) indicates target still busy!
    Info : Target halted. PRO_CPU: PC=0x40007BA1 (active)    APP_CPU: PC=0x00000000
    Info : esp32: Debug controller was reset (pwrstat=0x5F, after clear 0x0F).
    Info : esp32: Core was reset (pwrstat=0x5F, after clear 0x0F).
    Info : esp32: Debug controller was reset (pwrstat=0xFF, after clear 0xFF).
    Info : esp32: Core was reset (pwrstat=0xFF, after clear 0xFF).
    Info : Target halted. PRO_CPU: PC=0x00000000 (active)    APP_CPU: PC=0x00000000
    Info : Flash mapping 0: 0x3ffc0590 -> 0x3ffc0590, 1048321 KB
    Info : Flash mapping 1: 0x3ffc0590 -> 0x3ffc0590, 1048321 KB
    Info : Flash mapping 2: 0xb76fd8 -> 0xf5b099f, 10559 KB
    Info : Flash mapping 3: 0x2a59638 -> 0x2a3e490, 43441 KB
    Info : Flash mapping 4: 0xa4fccc -> 0x4921f9, 43365 KB
    Info : Flash mapping 5: 0x17 -> 0x1401978, 4543 KB
    Info : Flash mapping 6: 0x2a5cc18 -> 0xf5b09cf, 10559 KB
    Info : Flash mapping 7: 0xa4fcc8 -> 0x20c, 6457 KB
    Info : Flash mapping 8: 0x1 -> 0x2b, 43257 KB
    Info : Flash mapping 9: 0x2a6c480 -> 0x0, 4516 KB
    Info : Flash mapping 10: 0x0 -> 0xa4fccc, 43257 KB
    Info : Flash mapping 11: 0x760eca20 -> 0x40386bd0, 4194303 KB
    Info : Flash mapping 12: 0x760d70d4 -> 0x60164f, 43257 KB
    Info : Flash mapping 13: 0x6c666d -> 0x6c68fe, 43257 KB
    Info : Flash mapping 14: 0x1f -> 0x0, 0 KB
    Info : Flash mapping 15: 0x2a59638 -> 0xa4fca4, 0 KB
    Info : Flash mapping 16: 0xa4ffcc -> 0x2a3e490, 0 KB
    Info : Flash mapping 17: 0x2a779a0 -> 0xa4fd4c, 4502 KB
    Info : Flash mapping 18: 0x2a3e490 -> 0x64d850, 0 KB
    Info : Flash mapping 19: 0x64dbf0 -> 0x64da18, 43458 KB
    Info : Flash mapping 20: 0x2a709c8 -> 0x604faf, 43296 KB
    Info : Flash mapping 21: 0xa4fd01 -> 0x0, 22752 KB
    Info : Flash mapping 22: 0xb8c7e8 -> 0x10, 0 KB
    Info : Flash mapping 23: 0x186a0 -> 0x1, 0 KB
    Info : Flash mapping 24: 0xffb3b4c0 -> 0x74d9ec, 10559 KB
    Info : Flash mapping 25: 0xfffffffc -> 0x0, 0 KB
    Info : Flash mapping 26: 0x204 -> 0x144, 0 KB
    Info : Flash mapping 27: 0xb8c7e8 -> 0x144, 11769 KB
    Info : Flash mapping 28: 0x6f32c6f5 -> 0xa4fdac, 1821897 KB
    Info : Flash mapping 29: 0xb8c898 -> 0xb82700, 1821897 KB
    Info : Flash mapping 30: 0x6f3329a7 -> 0xb7e538, 0 KB
    Info : Flash mapping 31: 0xa4fdd0 -> 0x0, 0 KB
    Info : Flash mapping 32: 0x100 -> 0x1, 0 KB
    Info : Flash mapping 33: 0x262c2db1 -> 0xa4fdd8, 10559 KB
    Info : Flash mapping 34: 0x75b85c9b -> 0x144, 0 KB
    Info : Flash mapping 35: 0xa4fdd0 -> 0xa4fe0c, 1928727 KB
    Info : Flash mapping 36: 0xa4ffcc -> 0x75b8a2b0, 0 KB
    Info : Flash mapping 37: 0xf5b087f -> 0x2a599ac, 4500 KB
    Info : Flash mapping 38: 0x144 -> 0x1, 4 KB
    Info : Flash mapping 39: 0xa4fe0c -> 0x4, 1949399 KB
    Info : Flash mapping 40: 0x0 -> 0x0, 0 KB
    Info : Flash mapping 41: 0x1 -> 0xd1a4, 128 KB
    Info : Flash mapping 42: 0x1400000 -> 0x0, 0 KB
    Info : Flash mapping 43: 0x2a3cd88 -> 0x2a3cd89, 6455 KB
    Info : Flash mapping 44: 0xa4feb8 -> 0x467ad7, 6455 KB
    Info : Flash mapping 45: 0x2a3cd88 -> 0xffffffff, 4505 KB
    Info : Flash mapping 46: 0x466bb0 -> 0x466010, 43432 KB
    Info : Flash mapping 47: 0xffffffff -> 0x1401978, 0 KB
    Info : Flash mapping 48: 0x1401894 -> 0x1401978, 0 KB
    Info : Flash mapping 49: 0x1401894 -> 0xa4feb8, 4103 KB
    Info : Flash mapping 50: 0x1401978 -> 0x6381ed, 20485 KB
    Info : Flash mapping 51: 0x6381f4 -> 0x6381ac, 1949399 KB
    Info : Flash mapping 52: 0xa4ffcc -> 0x760eca20, 20485 KB
    Info : Flash mapping 53: 0x1d -> 0x1401894, 6337 KB
    Info : Flash mapping 54: 0xd -> 0x1401790, 0 KB
    Info : Flash mapping 55: 0x0 -> 0x1d, 20486 KB
    Info : Flash mapping 56: 0xa4ff80 -> 0x4013eb, 0 KB
    Info : Flash mapping 57: 0x1401790 -> 0x1401ee8, 0 KB
    Info : Flash mapping 58: 0x0 -> 0x0, 0 KB
    Info : Flash mapping 59: 0x0 -> 0xcccccccc, 3355443 KB
    Info : Flash mapping 60: 0xcccccccc -> 0xcccccccc, 3355443 KB
    Info : Flash mapping 61: 0xcccccccc -> 0xcccccccc, 3355443 KB
    Info : Flash mapping 62: 0x0 -> 0x0, 10559 KB
    Info : Flash mapping 63: 0x34 -> 0x1401790, 20486 KB
    Info : Flash mapping 64: 0x81000000 -> 0x0, 0 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, 3416 KB
    Info : Flash mapping 72: 0x401500 -> 0x401500, 10559 KB
    Info : Flash mapping 73: 0x755f8484 -> 0x356000, 1923041 KB
    Info : Flash mapping 74: 0x689e1fe1 -> 0xa4ffdc, 1949518 KB
    Info : Flash mapping 75: 0x356000 -> 0xf7e5caae, 0 KB
    Info : Flash mapping 76: 0x0 -> 0x356000, 0 KB
    Info : Flash mapping 77: 0x0 -> 0x0, 0 KB
    Info : Flash mapping 78: 0xf7e5caae -> 0xa4ffa0, 0 KB
    Info : Flash mapping 79: 0xa4ffe4 -> 0x76fe2bd0, 2101747 KB
    Info : Flash mapping 80: 0x0 -> 0xa4ffec, 1949518 KB
    Info : Flash mapping 81: 0xffffffff -> 0x76fef2f2, 0 KB
    Info : Flash mapping 82: 0x0 -> 0x401500, 3416 KB
    
    
    
    
    in reply to: ESP32 Jlink Programming fails #23027
    JakobN
    Participant

    Hi,

    tried it with 2 different Systems, same effect. All Firewall disabled.

    I tried to connect manually, failure as in picture. I also tried to set GDBServerDelay (like https://sysprogs.com/w/forums/topic/openocd-issue/) higher, then it could connect 1 or 2 times, but now agian its not working.

    Thanks for your help

     

    Attachments:
    You must be logged in to view attached files.
Viewing 2 posts - 1 through 2 (of 2 total)