Hi,
I have connected an ESP prog to the Lyrat 4.3 board.
I have set the JTAG switches.
Enable JTAG
DIP SW Position
1 OFF
2 OFF
3 ON
4 ON
5 ON
6 ON
7 ON
8 n/a
I have followed this simple guide to setup Visual Studio with the blink template;
https://github.com/botofancalin/Esp32_debug_template
I am running windows 10 with integrated ubuntu bash shell.
I have tried setting the default to normal windows CMD , power shell and wsl.exe.
I consistently get this error when trying to run debug in the default blink example that comes with the template.
Error: couldn't bind tcl to socket: No error
The terminal process terminated with exit code: 4294967295
Is this a known issue ? the exit code isn't giving me many clues !
ESP-Prog debugger on lyrat 4.3 ERROR
-
- Posts: 9757
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP-Prog debugger on lyrat 4.3 ERROR
Not too sure about your IDE, but is OpenOCD starting, and can you see the messages it gives?
Re: ESP-Prog debugger on lyrat 4.3 ERROR
I tried slower adapter speed as I have regular jumper wires between ESP-prog and lyrat 4.3
C:\Users\ben>openocd -f interface/ftdi/esp32_devkitj_v1.cfg -f board/esp-wroom-32.cfg
Open On-Chip Debugger 0.10.0-dev (2018-09-20-12:54)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
none separate
adapter speed: 5000 kHz
esp32 interrupt mask on
Error: couldn't bind tcl to socket: No error
I think tcl script cannot bind to the tcpip socket 3333 , but don't know why...
here's openocd with --debug 1 switch
C:\Users\ben>openocd -f interface/ftdi/esp32_devkitj_v1.cfg -f board/esp-wroom-32.cfg --debug 1
Open On-Chip Debugger 0.10.0-dev (2018-09-20-12:54)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
User : 13 16 command.c:544 command_print(): debug_level: 3
Debug: 14 16 options.c:96 add_default_dirs(): bindir=/builds/idf/openocd-esp32/openocd-esp32/bin
Debug: 15 31 options.c:97 add_default_dirs(): pkgdatadir=/builds/idf/openocd-esp32/openocd-esp32/share/openocd
Debug: 16 31 options.c:98 add_default_dirs(): run_prefix=C:/Program Files/Espressif/ESP-IDF Tools/tools/bin
Debug: 17 63 configuration.c:42 add_script_search_dir(): adding C:\Program Files\Espressif\ESP-IDF Tools\tools\share\openocd\scripts
Debug: 18 94 configuration.c:42 add_script_search_dir(): adding C:\Users\ben\AppData\Roaming/OpenOCD
Debug: 19 125 configuration.c:42 add_script_search_dir(): adding C:/Program Files/Espressif/ESP-IDF Tools/tools/bin/builds/idf/openocd-esp32/openocd-esp32/share/openocd/site
Debug: 20 172 configuration.c:42 add_script_search_dir(): adding C:/Program Files/Espressif/ESP-IDF Tools/tools/bin/builds/idf/openocd-esp32/openocd-esp32/share/openocd/scripts
Debug: 21 219 configuration.c:82 find_file(): found C:\Program Files\Espressif\ESP-IDF Tools\tools\share\openocd\scripts/interface/ftdi/esp32_devkitj_v1.cfg
Debug: 22 266 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_interface ftdi
Debug: 23 297 command.c:143 script_debug(): command - interface ocd_interface ftdi
Debug: 25 313 command.c:364 register_command_handler(): registering 'ocd_ftdi_device_desc'...
Debug: 26 344 command.c:364 register_command_handler(): registering 'ocd_ftdi_serial'...
Debug: 27 375 command.c:364 register_command_handler(): registering 'ocd_ftdi_location'...
Debug: 28 407 command.c:364 register_command_handler(): registering 'ocd_ftdi_channel'...
Debug: 29 438 command.c:364 register_command_handler(): registering 'ocd_ftdi_layout_init'...
Debug: 30 469 command.c:364 register_command_handler(): registering 'ocd_ftdi_layout_signal'...
Debug: 31 485 command.c:364 register_command_handler(): registering 'ocd_ftdi_set_signal'...
Debug: 32 516 command.c:364 register_command_handler(): registering 'ocd_ftdi_get_signal'...
Debug: 33 532 command.c:364 register_command_handler(): registering 'ocd_ftdi_vid_pid'...
Debug: 34 563 command.c:364 register_command_handler(): registering 'ocd_ftdi_tdo_sample_edge'...
Debug: 35 594 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ftdi_vid_pid 0x0403 0x6010
Debug: 36 625 command.c:143 script_debug(): command - ftdi_vid_pid ocd_ftdi_vid_pid 0x0403 0x6010
Debug: 39 657 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ftdi_channel 0
Debug: 40 688 command.c:143 script_debug(): command - ftdi_channel ocd_ftdi_channel 0
Debug: 42 719 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ftdi_layout_init 0x0008 0x000b
Debug: 43 735 command.c:143 script_debug(): command - ftdi_layout_init ocd_ftdi_layout_init 0x0008 0x000b
Debug: 45 766 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_reset_config none
Debug: 46 797 command.c:143 script_debug(): command - reset_config ocd_reset_config none
User : 48 813 command.c:544 command_print(): none separate
Debug: 49 828 configuration.c:82 find_file(): found C:\Program Files\Espressif\ESP-IDF Tools\tools\share\openocd\scripts/board/esp-wroom-32.cfg
Debug: 50 860 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_transport select jtag
Debug: 51 891 command.c:143 script_debug(): command - ocd_transport ocd_transport select jtag
Debug: 52 922 command.c:364 register_command_handler(): registering 'ocd_jtag_flush_queue_sleep'...
Debug: 53 938 command.c:364 register_command_handler(): registering 'ocd_jtag_rclk'...
Debug: 54 969 command.c:364 register_command_handler(): registering 'ocd_jtag_ntrst_delay'...
Debug: 55 1000 command.c:364 register_command_handler(): registering 'ocd_jtag_ntrst_assert_width'...
Debug: 56 1016 command.c:364 register_command_handler(): registering 'ocd_scan_chain'...
Debug: 57 1047 command.c:364 register_command_handler(): registering 'ocd_jtag_reset'...
Debug: 58 1063 command.c:364 register_command_handler(): registering 'ocd_runtest'...
Debug: 59 1094 command.c:364 register_command_handler(): registering 'ocd_irscan'...
Debug: 60 1125 command.c:364 register_command_handler(): registering 'ocd_verify_ircapture'...
Debug: 61 1157 command.c:364 register_command_handler(): registering 'ocd_verify_jtag'...
Debug: 62 1188 command.c:364 register_command_handler(): registering 'ocd_tms_sequence'...
Debug: 63 1207 command.c:364 register_command_handler(): registering 'ocd_wait_srst_deassert'...
Debug: 64 1238 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 65 1253 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 66 1285 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 67 1300 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 68 1332 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 69 1347 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 70 1378 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 71 1394 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 72 1425 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 73 1457 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 74 1472 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 75 1503 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 76 1519 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 77 1550 command.c:364 register_command_handler(): registering 'ocd_svf'...
Debug: 78 1566 command.c:364 register_command_handler(): registering 'ocd_xsvf'...
Debug: 79 1597 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_adapter_khz 5000
Debug: 80 1628 command.c:143 script_debug(): command - adapter_khz ocd_adapter_khz 5000
Debug: 83 1644 core.c:1631 jtag_config_khz(): handle jtag khz
Debug: 84 1660 core.c:1598 adapter_khz_to_speed(): convert khz to interface specific speed value
Debug: 85 1691 core.c:1598 adapter_khz_to_speed(): convert khz to interface specific speed value
User : 86 1722 command.c:544 command_print(): adapter speed: 5000 kHz
Debug: 87 1738 configuration.c:82 find_file(): found C:\Program Files\Espressif\ESP-IDF Tools\tools\share\openocd\scripts/target/esp32.cfg
Debug: 88 1769 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_jtag newtap esp32 cpu0 -irlen 5 -expected-id 0x120034e5
Debug: 89 1816 command.c:143 script_debug(): command - ocd_jtag ocd_jtag newtap esp32 cpu0 -irlen 5 -expected-id 0x120034e5
Debug: 90 1847 tcl.c:549 jim_newtap_cmd(): Creating New Tap, Chip: esp32, Tap: cpu0, Dotted: esp32.cpu0, 4 params
Debug: 91 1878 tcl.c:573 jim_newtap_cmd(): Processing option: -irlen
Debug: 92 1894 tcl.c:573 jim_newtap_cmd(): Processing option: -expected-id
Debug: 93 1910 core.c:1304 jtag_tap_init(): Created Tap: esp32.cpu0 @ abs position 0, irlen 5, capture: 0x1 mask: 0x3
Debug: 94 1941 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_target create esp32 esp32 -endian little -chain-position esp32.cpu0 -rtos FreeRTOS
Debug: 95 1988 command.c:143 script_debug(): command - ocd_target ocd_target create esp32 esp32 -endian little -chain-position esp32.cpu0 -rtos FreeRTOS
Debug: 96 2019 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 97 2048 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 98 2079 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 99 2095 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 100 2126 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 101 2157 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 102 2188 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 103 2204 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 104 2235 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 105 2251 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 106 2282 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 107 2298 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 108 2329 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 109 2360 command.c:364 register_command_handler(): registering 'ocd_set_permissive'...
Debug: 110 2392 core.c:1304 jtag_tap_init(): Created Tap: esp32.cpu1 @ abs position 1, irlen 5, capture: 0x1 mask: 0x3
Debug: 111 2423 command.c:399 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 112 2454 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 113 2485 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 114 2501 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 115 2532 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 116 2548 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 117 2579 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 118 2595 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 119 2626 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 120 2657 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 121 2688 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 122 2704 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 123 2735 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 124 2751 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 125 2767 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 126 2782 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 127 2782 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 128 2798 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 129 2813 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 130 2813 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 131 2845 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 132 2845 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 133 2845 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 134 2845 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 135 2860 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 136 2860 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 137 2876 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 138 2892 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 139 2892 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 140 2907 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 141 2907 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 142 2923 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 143 2938 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 144 2954 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 configure -event halted esp_core_halt esp32
Debug: 145 2970 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 configure -event halted esp_core_halt esp32
Debug: 146 2985 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 configure -event examine-end esp_smp_break_config
Debug: 147 3001 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 configure -event examine-end esp_smp_break_config
Debug: 148 3017 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 flashbootstrap 3.3
Debug: 149 3032 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 flashbootstrap 3.3
Debug: 150 3032 log.c:420 keep_alive(): keep_alive() was not invoked in the 1000ms timelimit (1388). This may cause trouble with GDB connections.
Debug: 153 3063 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 maskisr on
Debug: 154 3063 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 maskisr on
User : 156 3079 command.c:544 command_print(): esp32 interrupt mask on
Debug: 157 3079 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 configure -work-area-phys 0x40090000 -work-area-virt 0x40090000 -work-area-size 0x3400 -work-area-backup 1
Debug: 158 3095 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 configure -work-area-phys 0x40090000 -work-area-virt 0x40090000 -work-area-size 0x3400 -work-area-backup 1
Debug: 159 3126 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 160 3142 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 161 3142 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 162 3157 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 163 3157 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 configure -alt-work-area-phys 0x3FFC0000 -alt-work-area-virt 0x3FFC0000 -alt-work-area-size 0x6000 -alt-work-area-backup 1
Debug: 164 3188 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 configure -alt-work-area-phys 0x3FFC0000 -alt-work-area-virt 0x3FFC0000 -alt-work-area-size 0x6000 -alt-work-area-backup 1
Debug: 165 3204 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 166 3220 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 167 3235 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 168 3251 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 169 3251 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_flash bank esp32.flash esp32 0x0 0 0 0 esp32
Debug: 170 3282 command.c:143 script_debug(): command - ocd_flash ocd_flash bank esp32.flash esp32 0x0 0 0 0 esp32
Debug: 172 3298 command.c:399 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 173 3314 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 174 3329 tcl.c:1032 handle_flash_bank_command(): 'esp32' driver usage field missing
Debug: 175 3345 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_flash bank irom esp32 0x0 0 0 0 esp32
Debug: 176 3360 command.c:143 script_debug(): command - ocd_flash ocd_flash bank irom esp32 0x0 0 0 0 esp32
Debug: 178 3360 command.c:399 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 179 3376 command.c:399 register_command(): command 'appimage_offset' is already registered in 'esp32' context
Debug: 180 3392 tcl.c:1032 handle_flash_bank_command(): 'esp32' driver usage field missing
Debug: 181 3407 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_flash bank drom esp32 0x0 0 0 0 esp32
Debug: 182 3407 command.c:143 script_debug(): command - ocd_flash ocd_flash bank drom esp32 0x0 0 0 0 esp32
Debug: 184 3423 command.c:399 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 185 3423 command.c:399 register_command(): command 'appimage_offset' is already registered in 'esp32' context
Debug: 186 3439 tcl.c:1032 handle_flash_bank_command(): 'esp32' driver usage field missing
Debug: 187 3439 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 configure -event gdb-attach halt
Debug: 188 3454 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 configure -event gdb-attach halt
Debug: 189 3470 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_add_help_text program_esp32 write an image to flash, address is only required for binary images. verify, reset, exit are optional
Debug: 190 3485 command.c:143 script_debug(): command - add_help_text ocd_add_help_text program_esp32 write an image to flash, address is only required for binary images. verify, reset, exit are optional
Debug: 192 3501 command.c:323 command_new(): BUG: command 'program_esp32' does not have the '.usage' field filled out
Debug: 193 3517 command.c:1098 help_add_command(): added 'program_esp32' help text
Debug: 194 3532 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_add_usage_text program_esp32 <filename> [address] [verify] [reset] [exit]
Debug: 195 3532 command.c:143 script_debug(): command - add_usage_text ocd_add_usage_text program_esp32 <filename> [address] [verify] [reset] [exit]
Debug: 198 3564 command.c:1123 help_add_command(): added 'program_esp32' usage text
Error: 199 3579 server.c:265 add_service(): couldn't bind tcl to socket: No error
C:\Users\ben>openocd -f interface/ftdi/esp32_devkitj_v1.cfg -f board/esp-wroom-32.cfg
Open On-Chip Debugger 0.10.0-dev (2018-09-20-12:54)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
none separate
adapter speed: 5000 kHz
esp32 interrupt mask on
Error: couldn't bind tcl to socket: No error
I think tcl script cannot bind to the tcpip socket 3333 , but don't know why...
here's openocd with --debug 1 switch
C:\Users\ben>openocd -f interface/ftdi/esp32_devkitj_v1.cfg -f board/esp-wroom-32.cfg --debug 1
Open On-Chip Debugger 0.10.0-dev (2018-09-20-12:54)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
User : 13 16 command.c:544 command_print(): debug_level: 3
Debug: 14 16 options.c:96 add_default_dirs(): bindir=/builds/idf/openocd-esp32/openocd-esp32/bin
Debug: 15 31 options.c:97 add_default_dirs(): pkgdatadir=/builds/idf/openocd-esp32/openocd-esp32/share/openocd
Debug: 16 31 options.c:98 add_default_dirs(): run_prefix=C:/Program Files/Espressif/ESP-IDF Tools/tools/bin
Debug: 17 63 configuration.c:42 add_script_search_dir(): adding C:\Program Files\Espressif\ESP-IDF Tools\tools\share\openocd\scripts
Debug: 18 94 configuration.c:42 add_script_search_dir(): adding C:\Users\ben\AppData\Roaming/OpenOCD
Debug: 19 125 configuration.c:42 add_script_search_dir(): adding C:/Program Files/Espressif/ESP-IDF Tools/tools/bin/builds/idf/openocd-esp32/openocd-esp32/share/openocd/site
Debug: 20 172 configuration.c:42 add_script_search_dir(): adding C:/Program Files/Espressif/ESP-IDF Tools/tools/bin/builds/idf/openocd-esp32/openocd-esp32/share/openocd/scripts
Debug: 21 219 configuration.c:82 find_file(): found C:\Program Files\Espressif\ESP-IDF Tools\tools\share\openocd\scripts/interface/ftdi/esp32_devkitj_v1.cfg
Debug: 22 266 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_interface ftdi
Debug: 23 297 command.c:143 script_debug(): command - interface ocd_interface ftdi
Debug: 25 313 command.c:364 register_command_handler(): registering 'ocd_ftdi_device_desc'...
Debug: 26 344 command.c:364 register_command_handler(): registering 'ocd_ftdi_serial'...
Debug: 27 375 command.c:364 register_command_handler(): registering 'ocd_ftdi_location'...
Debug: 28 407 command.c:364 register_command_handler(): registering 'ocd_ftdi_channel'...
Debug: 29 438 command.c:364 register_command_handler(): registering 'ocd_ftdi_layout_init'...
Debug: 30 469 command.c:364 register_command_handler(): registering 'ocd_ftdi_layout_signal'...
Debug: 31 485 command.c:364 register_command_handler(): registering 'ocd_ftdi_set_signal'...
Debug: 32 516 command.c:364 register_command_handler(): registering 'ocd_ftdi_get_signal'...
Debug: 33 532 command.c:364 register_command_handler(): registering 'ocd_ftdi_vid_pid'...
Debug: 34 563 command.c:364 register_command_handler(): registering 'ocd_ftdi_tdo_sample_edge'...
Debug: 35 594 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ftdi_vid_pid 0x0403 0x6010
Debug: 36 625 command.c:143 script_debug(): command - ftdi_vid_pid ocd_ftdi_vid_pid 0x0403 0x6010
Debug: 39 657 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ftdi_channel 0
Debug: 40 688 command.c:143 script_debug(): command - ftdi_channel ocd_ftdi_channel 0
Debug: 42 719 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ftdi_layout_init 0x0008 0x000b
Debug: 43 735 command.c:143 script_debug(): command - ftdi_layout_init ocd_ftdi_layout_init 0x0008 0x000b
Debug: 45 766 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_reset_config none
Debug: 46 797 command.c:143 script_debug(): command - reset_config ocd_reset_config none
User : 48 813 command.c:544 command_print(): none separate
Debug: 49 828 configuration.c:82 find_file(): found C:\Program Files\Espressif\ESP-IDF Tools\tools\share\openocd\scripts/board/esp-wroom-32.cfg
Debug: 50 860 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_transport select jtag
Debug: 51 891 command.c:143 script_debug(): command - ocd_transport ocd_transport select jtag
Debug: 52 922 command.c:364 register_command_handler(): registering 'ocd_jtag_flush_queue_sleep'...
Debug: 53 938 command.c:364 register_command_handler(): registering 'ocd_jtag_rclk'...
Debug: 54 969 command.c:364 register_command_handler(): registering 'ocd_jtag_ntrst_delay'...
Debug: 55 1000 command.c:364 register_command_handler(): registering 'ocd_jtag_ntrst_assert_width'...
Debug: 56 1016 command.c:364 register_command_handler(): registering 'ocd_scan_chain'...
Debug: 57 1047 command.c:364 register_command_handler(): registering 'ocd_jtag_reset'...
Debug: 58 1063 command.c:364 register_command_handler(): registering 'ocd_runtest'...
Debug: 59 1094 command.c:364 register_command_handler(): registering 'ocd_irscan'...
Debug: 60 1125 command.c:364 register_command_handler(): registering 'ocd_verify_ircapture'...
Debug: 61 1157 command.c:364 register_command_handler(): registering 'ocd_verify_jtag'...
Debug: 62 1188 command.c:364 register_command_handler(): registering 'ocd_tms_sequence'...
Debug: 63 1207 command.c:364 register_command_handler(): registering 'ocd_wait_srst_deassert'...
Debug: 64 1238 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 65 1253 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 66 1285 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 67 1300 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 68 1332 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 69 1347 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 70 1378 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 71 1394 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 72 1425 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 73 1457 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 74 1472 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 75 1503 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 76 1519 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 77 1550 command.c:364 register_command_handler(): registering 'ocd_svf'...
Debug: 78 1566 command.c:364 register_command_handler(): registering 'ocd_xsvf'...
Debug: 79 1597 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_adapter_khz 5000
Debug: 80 1628 command.c:143 script_debug(): command - adapter_khz ocd_adapter_khz 5000
Debug: 83 1644 core.c:1631 jtag_config_khz(): handle jtag khz
Debug: 84 1660 core.c:1598 adapter_khz_to_speed(): convert khz to interface specific speed value
Debug: 85 1691 core.c:1598 adapter_khz_to_speed(): convert khz to interface specific speed value
User : 86 1722 command.c:544 command_print(): adapter speed: 5000 kHz
Debug: 87 1738 configuration.c:82 find_file(): found C:\Program Files\Espressif\ESP-IDF Tools\tools\share\openocd\scripts/target/esp32.cfg
Debug: 88 1769 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_jtag newtap esp32 cpu0 -irlen 5 -expected-id 0x120034e5
Debug: 89 1816 command.c:143 script_debug(): command - ocd_jtag ocd_jtag newtap esp32 cpu0 -irlen 5 -expected-id 0x120034e5
Debug: 90 1847 tcl.c:549 jim_newtap_cmd(): Creating New Tap, Chip: esp32, Tap: cpu0, Dotted: esp32.cpu0, 4 params
Debug: 91 1878 tcl.c:573 jim_newtap_cmd(): Processing option: -irlen
Debug: 92 1894 tcl.c:573 jim_newtap_cmd(): Processing option: -expected-id
Debug: 93 1910 core.c:1304 jtag_tap_init(): Created Tap: esp32.cpu0 @ abs position 0, irlen 5, capture: 0x1 mask: 0x3
Debug: 94 1941 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_target create esp32 esp32 -endian little -chain-position esp32.cpu0 -rtos FreeRTOS
Debug: 95 1988 command.c:143 script_debug(): command - ocd_target ocd_target create esp32 esp32 -endian little -chain-position esp32.cpu0 -rtos FreeRTOS
Debug: 96 2019 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 97 2048 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 98 2079 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 99 2095 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 100 2126 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 101 2157 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 102 2188 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 103 2204 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 104 2235 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 105 2251 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 106 2282 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 107 2298 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 108 2329 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 109 2360 command.c:364 register_command_handler(): registering 'ocd_set_permissive'...
Debug: 110 2392 core.c:1304 jtag_tap_init(): Created Tap: esp32.cpu1 @ abs position 1, irlen 5, capture: 0x1 mask: 0x3
Debug: 111 2423 command.c:399 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 112 2454 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 113 2485 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 114 2501 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 115 2532 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 116 2548 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 117 2579 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 118 2595 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 119 2626 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 120 2657 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 121 2688 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 122 2704 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 123 2735 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 124 2751 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 125 2767 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 126 2782 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 127 2782 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 128 2798 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 129 2813 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 130 2813 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 131 2845 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 132 2845 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 133 2845 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 134 2845 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 135 2860 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 136 2860 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 137 2876 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 138 2892 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 139 2892 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 140 2907 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 141 2907 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 142 2923 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 143 2938 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 144 2954 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 configure -event halted esp_core_halt esp32
Debug: 145 2970 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 configure -event halted esp_core_halt esp32
Debug: 146 2985 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 configure -event examine-end esp_smp_break_config
Debug: 147 3001 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 configure -event examine-end esp_smp_break_config
Debug: 148 3017 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 flashbootstrap 3.3
Debug: 149 3032 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 flashbootstrap 3.3
Debug: 150 3032 log.c:420 keep_alive(): keep_alive() was not invoked in the 1000ms timelimit (1388). This may cause trouble with GDB connections.
Debug: 153 3063 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 maskisr on
Debug: 154 3063 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 maskisr on
User : 156 3079 command.c:544 command_print(): esp32 interrupt mask on
Debug: 157 3079 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 configure -work-area-phys 0x40090000 -work-area-virt 0x40090000 -work-area-size 0x3400 -work-area-backup 1
Debug: 158 3095 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 configure -work-area-phys 0x40090000 -work-area-virt 0x40090000 -work-area-size 0x3400 -work-area-backup 1
Debug: 159 3126 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 160 3142 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 161 3142 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 162 3157 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 163 3157 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 configure -alt-work-area-phys 0x3FFC0000 -alt-work-area-virt 0x3FFC0000 -alt-work-area-size 0x6000 -alt-work-area-backup 1
Debug: 164 3188 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 configure -alt-work-area-phys 0x3FFC0000 -alt-work-area-virt 0x3FFC0000 -alt-work-area-size 0x6000 -alt-work-area-backup 1
Debug: 165 3204 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 166 3220 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 167 3235 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 168 3251 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 169 3251 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_flash bank esp32.flash esp32 0x0 0 0 0 esp32
Debug: 170 3282 command.c:143 script_debug(): command - ocd_flash ocd_flash bank esp32.flash esp32 0x0 0 0 0 esp32
Debug: 172 3298 command.c:399 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 173 3314 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 174 3329 tcl.c:1032 handle_flash_bank_command(): 'esp32' driver usage field missing
Debug: 175 3345 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_flash bank irom esp32 0x0 0 0 0 esp32
Debug: 176 3360 command.c:143 script_debug(): command - ocd_flash ocd_flash bank irom esp32 0x0 0 0 0 esp32
Debug: 178 3360 command.c:399 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 179 3376 command.c:399 register_command(): command 'appimage_offset' is already registered in 'esp32' context
Debug: 180 3392 tcl.c:1032 handle_flash_bank_command(): 'esp32' driver usage field missing
Debug: 181 3407 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_flash bank drom esp32 0x0 0 0 0 esp32
Debug: 182 3407 command.c:143 script_debug(): command - ocd_flash ocd_flash bank drom esp32 0x0 0 0 0 esp32
Debug: 184 3423 command.c:399 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 185 3423 command.c:399 register_command(): command 'appimage_offset' is already registered in 'esp32' context
Debug: 186 3439 tcl.c:1032 handle_flash_bank_command(): 'esp32' driver usage field missing
Debug: 187 3439 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 configure -event gdb-attach halt
Debug: 188 3454 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 configure -event gdb-attach halt
Debug: 189 3470 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_add_help_text program_esp32 write an image to flash, address is only required for binary images. verify, reset, exit are optional
Debug: 190 3485 command.c:143 script_debug(): command - add_help_text ocd_add_help_text program_esp32 write an image to flash, address is only required for binary images. verify, reset, exit are optional
Debug: 192 3501 command.c:323 command_new(): BUG: command 'program_esp32' does not have the '.usage' field filled out
Debug: 193 3517 command.c:1098 help_add_command(): added 'program_esp32' help text
Debug: 194 3532 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_add_usage_text program_esp32 <filename> [address] [verify] [reset] [exit]
Debug: 195 3532 command.c:143 script_debug(): command - add_usage_text ocd_add_usage_text program_esp32 <filename> [address] [verify] [reset] [exit]
Debug: 198 3564 command.c:1123 help_add_command(): added 'program_esp32' usage text
Error: 199 3579 server.c:265 add_service(): couldn't bind tcl to socket: No error
-
- Posts: 9757
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP-Prog debugger on lyrat 4.3 ERROR
Strange... maybe there's a firewall or another program using that port active on your computer?
Re: ESP-Prog debugger on lyrat 4.3 ERROR
ok, I tried again using OSX and eclipse and it worked.
I actually had 2 problems.
The 1st was I had CMD and CLK pins from the SD card socket wired up to other hardware.
I had wrongly assumed the switches disconnect the SD card lines and enable the JTAG socket !
The other problem must be windows firewall problem.
I'm not really familiar with that IDE anyway so I'll just use eclipse.
One thing though, the breakpoints work but doesn't place the cursor or highlight the active breakpoint as I expected.
Since you can only set 2 breakpoint and it reports the line it's not really a big deal.
I'll just have to scrap some other switches or something on the Lyrat boards to find some GPIO for my custom hardware.
Thanks for pointing out i should just run openocd and look at error.
the fact I can't bind to port 3333 and windows gave no error made me realise I'm better off in linux or osx anyway.
I actually had 2 problems.
The 1st was I had CMD and CLK pins from the SD card socket wired up to other hardware.
I had wrongly assumed the switches disconnect the SD card lines and enable the JTAG socket !
The other problem must be windows firewall problem.
I'm not really familiar with that IDE anyway so I'll just use eclipse.
One thing though, the breakpoints work but doesn't place the cursor or highlight the active breakpoint as I expected.
Since you can only set 2 breakpoint and it reports the line it's not really a big deal.
I'll just have to scrap some other switches or something on the Lyrat boards to find some GPIO for my custom hardware.
Thanks for pointing out i should just run openocd and look at error.
the fact I can't bind to port 3333 and windows gave no error made me realise I'm better off in linux or osx anyway.
Who is online
Users browsing this forum: No registered users and 405 guests