Sysprogs forums › Forums › VisualGDB › ESP32 w JTAG (tumpa)
Tagged: ESP32 JTAG tumpa
- This topic has 6 replies, 2 voices, and was last updated 5 years, 6 months ago by support.
-
AuthorPosts
-
May 29, 2019 at 02:36 #25027dave93cabParticipant
I flashed my JTAG debugger to WinUSB, and can connect to it using Visual Studio Code/platformIO. Struggling to get connected using VisualGDB.
I select OpenOCD and interface/ftdi/tumpa.cfg in the Debug settings. This is what I get with an additional -d tacked on to the command line:
VisualGDB version: 5.4.105.3084
—————— System.Exception ——————
System.Exception: Stub exited before a gdb connection could be made
at VisualGDB.Common_GUI.WPF.DebugMethodTestWindow.ThrowTestFailedException()
at VisualGDB.Common_GUI.WPF.DebugMethodTestWindow.TestThreadBody()AppData\Local\VisualGDB\EmbeddedDebugPackages\com.sysprogs.esp32.core\bin\openocd.exe -c "gdb_port 65118" -c "telnet_port 65119" -f interface/ftdi/tumpa.cfg -c "adapter_khz 3000" -f target/esp32.cfg -d -c "echo VisualGDB_OpenOCD_Ready"
Open On-Chip Debugger 0.9.0 (2019-01-11)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
User : 13 2 command.c:544 command_print(): debug_level: 3
Debug: 14 2 options.c:96 add_default_dirs(): bindir=../../bin
Debug: 15 2 options.c:97 add_default_dirs(): pkgdatadir=.
Debug: 16 2 options.c:98 add_default_dirs(): run_prefix=C:/Users/dave/AppData/Local/VisualGDB/EmbeddedDebugPackages/com.sysprogs.esp32.core/bin
Debug: 17 3 configuration.c:42 add_script_search_dir(): adding C:\Users\dave\AppData\Roaming/OpenOCD
Debug: 18 3 configuration.c:42 add_script_search_dir(): adding C:/Users/dave/AppData/Local/VisualGDB/EmbeddedDebugPackages/com.sysprogs.esp32.core/bin./site
Debug: 19 3 configuration.c:42 add_script_search_dir(): adding C:/Users/dave/AppData/Local/VisualGDB/EmbeddedDebugPackages/com.sysprogs.esp32.core/bin./scripts
Debug: 20 5 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_gdb_port 65118
Debug: 21 5 command.c:143 script_debug(): command - gdb_port ocd_gdb_port 65118
Debug: 23 5 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_telnet_port 65119
Debug: 24 5 command.c:143 script_debug(): command - telnet_port ocd_telnet_port 65119
Debug: 26 6 configuration.c:82 find_file(): found interface/ftdi/tumpa.cfg
Debug: 27 7 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_interface ftdi
Debug: 28 7 command.c:143 script_debug(): command - interface ocd_interface ftdi
Debug: 30 7 command.c:364 register_command_handler(): registering 'ocd_ftdi_device_desc'...
Debug: 31 8 command.c:364 register_command_handler(): registering 'ocd_ftdi_serial'...
Debug: 32 8 command.c:364 register_command_handler(): registering 'ocd_ftdi_channel'...
Debug: 33 8 command.c:364 register_command_handler(): registering 'ocd_ftdi_layout_init'...
Debug: 34 8 command.c:364 register_command_handler(): registering 'ocd_ftdi_layout_signal'...
Debug: 35 8 command.c:364 register_command_handler(): registering 'ocd_ftdi_set_signal'...
Debug: 36 9 command.c:364 register_command_handler(): registering 'ocd_ftdi_get_signal'...
Debug: 37 9 command.c:364 register_command_handler(): registering 'ocd_ftdi_vid_pid'...
Debug: 38 9 command.c:364 register_command_handler(): registering 'ocd_ftdi_tdo_sample_edge'...
Debug: 39 9 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ftdi_vid_pid 0x0403 0x8a98 0x0403 0x6010
Debug: 40 9 command.c:143 script_debug(): command - ftdi_vid_pid ocd_ftdi_vid_pid 0x0403 0x8a98 0x0403 0x6010
Debug: 42 10 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ftdi_layout_init 0x0038 0x087b
Debug: 43 10 command.c:143 script_debug(): command - ftdi_layout_init ocd_ftdi_layout_init 0x0038 0x087b
Debug: 45 10 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ftdi_layout_signal nTRST -data 0x0020
Debug: 46 10 command.c:143 script_debug(): command - ftdi_layout_signal ocd_ftdi_layout_signal nTRST -data 0x0020
Debug: 48 11 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ftdi_layout_signal nSRST -data 0x0010
Debug: 49 11 command.c:143 script_debug(): command - ftdi_layout_signal ocd_ftdi_layout_signal nSRST -data 0x0010
Debug: 51 11 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_reset_config srst_push_pull
Debug: 52 12 command.c:143 script_debug(): command - reset_config ocd_reset_config srst_push_pull
User : 54 12 command.c:544 command_print(): none separate
Debug: 55 12 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_adapter_khz 3000
Debug: 56 12 command.c:143 script_debug(): command - adapter_khz ocd_adapter_khz 3000
Debug: 58 12 core.c:1631 jtag_config_khz(): handle jtag khz
Debug: 59 13 core.c:1598 adapter_khz_to_speed(): convert khz to interface specific speed value
Debug: 60 13 core.c:1598 adapter_khz_to_speed(): convert khz to interface specific speed value
User : 61 13 command.c:544 command_print(): adapter speed: 3000 kHz
Debug: 62 14 configuration.c:82 find_file(): found target/esp32.cfg
Debug: 63 14 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_transport select
Debug: 64 14 command.c:143 script_debug(): command - ocd_transport ocd_transport select
Info : 65 14 transport.c:286 jim_transport_select(): auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
Debug: 66 15 command.c:364 register_command_handler(): registering 'ocd_jtag_flush_queue_sleep'...
Debug: 67 15 command.c:364 register_command_handler(): registering 'ocd_jtag_rclk'...
Debug: 68 15 command.c:364 register_command_handler(): registering 'ocd_jtag_ntrst_delay'...
Debug: 69 15 command.c:364 register_command_handler(): registering 'ocd_jtag_ntrst_assert_width'...
Debug: 70 16 command.c:364 register_command_handler(): registering 'ocd_scan_chain'...
Debug: 71 16 command.c:364 register_command_handler(): registering 'ocd_jtag_reset'...
Debug: 72 16 command.c:364 register_command_handler(): registering 'ocd_runtest'...
Debug: 73 16 command.c:364 register_command_handler(): registering 'ocd_irscan'...
Debug: 74 17 command.c:364 register_command_handler(): registering 'ocd_verify_ircapture'...
Debug: 75 17 command.c:364 register_command_handler(): registering 'ocd_verify_jtag'...
Debug: 76 17 command.c:364 register_command_handler(): registering 'ocd_tms_sequence'...
Debug: 77 17 command.c:364 register_command_handler(): registering 'ocd_wait_srst_deassert'...
Debug: 78 18 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 79 18 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 80 18 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 81 18 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 82 18 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 83 18 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 84 19 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 85 19 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 86 19 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 87 19 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 88 19 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 89 19 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 90 20 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 91 20 command.c:364 register_command_handler(): registering 'ocd_svf'...
Debug: 92 20 command.c:364 register_command_handler(): registering 'ocd_xsvf'...
Debug: 93 20 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_transport select
Debug: 94 20 command.c:143 script_debug(): command - ocd_transport ocd_transport select
Debug: 95 21 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_jtag newtap esp32 cpu0 -irlen 5 -expected-id 0x120034e5
Debug: 96 21 command.c:143 script_debug(): command - ocd_jtag ocd_jtag newtap esp32 cpu0 -irlen 5 -expected-id 0x120034e5
Debug: 97 21 tcl.c:549 jim_newtap_cmd(): Creating New Tap, Chip: esp32, Tap: cpu0, Dotted: esp32.cpu0, 4 params
Debug: 98 21 tcl.c:573 jim_newtap_cmd(): Processing option: -irlen
Debug: 99 22 tcl.c:573 jim_newtap_cmd(): Processing option: -expected-id
Debug: 100 22 core.c:1304 jtag_tap_init(): Created Tap: esp32.cpu0 @ abs position 0, irlen 5, capture: 0x1 mask: 0x3
Debug: 101 22 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: 102 22 command.c:143 script_debug(): command - ocd_target ocd_target create esp32 esp32 -endian little -chain-position esp32.cpu0 -rtos FreeRTOS
Debug: 103 23 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 104 23 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 105 23 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 106 23 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 107 24 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 108 24 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 109 24 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 110 24 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 111 24 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 112 24 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 113 24 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 114 25 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 115 25 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 116 25 command.c:364 register_command_handler(): registering 'ocd_set_permissive'...
Debug: 117 25 core.c:1304 jtag_tap_init(): Created Tap: esp32.cpu1 @ abs position 1, irlen 5, capture: 0x1 mask: 0x3
Debug: 118 25 command.c:399 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 119 26 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 120 26 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 121 26 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 122 26 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 123 26 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 124 27 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 125 27 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 126 27 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 127 27 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 128 27 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 129 27 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 130 28 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 131 28 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 132 28 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 133 28 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 134 28 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 135 28 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 136 29 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 137 29 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 138 29 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 139 29 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 140 29 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 141 29 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 142 30 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 143 30 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 144 30 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 145 30 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 146 30 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 147 30 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 148 31 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 149 31 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 150 31 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 151 31 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 configure -event halted esp_core_halt esp32
Debug: 152 31 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 configure -event halted esp_core_halt esp32
Debug: 153 32 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 flashbootstrap 3.3
Debug: 154 32 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 flashbootstrap 3.3
Debug: 156 32 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 maskisr on
Debug: 157 33 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 maskisr on
User : 159 33 command.c:544 command_print(): esp32 interrupt mask on
Debug: 160 33 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: 161 33 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: 162 34 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 163 34 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 164 34 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 165 35 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 166 35 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: 167 35 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: 168 36 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 169 36 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 170 36 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 171 36 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 172 36 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_flash bank esp32.flash esp32 0x0 0 0 0 esp32
Debug: 173 37 command.c:143 script_debug(): command - ocd_flash ocd_flash bank esp32.flash esp32 0x0 0 0 0 esp32
Debug: 175 37 command.c:399 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 176 37 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 177 37 tcl.c:1032 handle_flash_bank_command(): 'esp32' driver usage field missing
Debug: 178 37 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_flash bank irom esp32 0x0 0 0 0 esp32
Debug: 179 38 command.c:143 script_debug(): command - ocd_flash ocd_flash bank irom esp32 0x0 0 0 0 esp32
Debug: 181 38 command.c:399 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 182 38 command.c:399 register_command(): command 'appimage_offset' is already registered in 'esp32' context
Debug: 183 38 tcl.c:1032 handle_flash_bank_command(): 'esp32' driver usage field missing
Debug: 184 39 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_flash bank drom esp32 0x0 0 0 0 esp32
Debug: 185 39 command.c:143 script_debug(): command - ocd_flash ocd_flash bank drom esp32 0x0 0 0 0 esp32
Debug: 187 39 command.c:399 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 188 39 command.c:399 register_command(): command 'appimage_offset' is already registered in 'esp32' context
Debug: 189 39 tcl.c:1032 handle_flash_bank_command(): 'esp32' driver usage field missing
Debug: 190 40 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 configure -event gdb-attach halt
Debug: 191 40 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 configure -event gdb-attach halt
Debug: 192 40 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: 193 40 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: 195 41 command.c:323 command_new(): BUG: command 'program_esp32' does not have the '.usage' field filled out
Debug: 196 41 command.c:1098 help_add_command(): added 'program_esp32' help text
Debug: 197 41 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_add_usage_text program_esp32 <filename> [address] [verify] [reset] [exit]
Debug: 198 42 command.c:143 script_debug(): command - add_usage_text ocd_add_usage_text program_esp32 <filename> [address] [verify] [reset] [exit]
Debug: 200 42 command.c:1123 help_add_command(): added 'program_esp32' usage text
Debug: 201 42 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_echo VisualGDB_OpenOCD_Ready
Debug: 202 42 command.c:143 script_debug(): command - echo ocd_echo VisualGDB_OpenOCD_Ready
User : 204 43 command.c:762 jim_echo(): VisualGDB_OpenOCD_Ready
Debug: 205 44 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_init
Debug: 206 44 command.c:143 script_debug(): command - init ocd_init
Debug: 208 44 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_target init
Debug: 209 44 command.c:143 script_debug(): command - ocd_target ocd_target init
Debug: 211 44 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_target names
Debug: 212 45 command.c:143 script_debug(): command - ocd_target ocd_target names
Debug: 213 45 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 cget -event gdb-flash-erase-start
Debug: 214 45 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 cget -event gdb-flash-erase-start
Debug: 215 45 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 configure -event gdb-flash-erase-start reset init
Debug: 216 46 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 configure -event gdb-flash-erase-start reset init
Debug: 217 46 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 cget -event gdb-flash-write-end
Debug: 218 46 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 cget -event gdb-flash-write-end
Debug: 219 47 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 configure -event gdb-flash-write-end reset halt
Debug: 220 47 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 configure -event gdb-flash-write-end reset halt
Debug: 221 47 target.c:1375 handle_target_init_command(): Initializing targets...
Debug: 222 47 esp32.c:1541 xtensa_init_target(): xtensa_init_target
Debug: 223 47 command.c:364 register_command_handler(): registering 'ocd_target_request'...
Debug: 224 48 command.c:364 register_command_handler(): registering 'ocd_trace'...
Debug: 225 48 command.c:364 register_command_handler(): registering 'ocd_trace'...
Debug: 226 48 command.c:364 register_command_handler(): registering 'ocd_fast_load_image'...
Debug: 227 48 command.c:364 register_command_handler(): registering 'ocd_fast_load'...
Debug: 228 48 command.c:364 register_command_handler(): registering 'ocd_profile'...
Debug: 229 48 command.c:364 register_command_handler(): registering 'ocd_virt2phys'...
Debug: 230 49 command.c:364 register_command_handler(): registering 'ocd_reg'...
Debug: 231 49 command.c:364 register_command_handler(): registering 'ocd_poll'...
Debug: 232 49 command.c:364 register_command_handler(): registering 'ocd_wait_halt'...
Debug: 233 49 command.c:364 register_command_handler(): registering 'ocd_halt'...
Debug: 234 49 command.c:364 register_command_handler(): registering 'ocd_resume'...
Debug: 235 49 command.c:364 register_command_handler(): registering 'ocd_reset'...
Debug: 236 49 command.c:364 register_command_handler(): registering 'ocd_soft_reset_halt'...
Debug: 237 50 command.c:364 register_command_handler(): registering 'ocd_step'...
Debug: 238 50 command.c:364 register_command_handler(): registering 'ocd_mdw'...
Debug: 239 50 command.c:364 register_command_handler(): registering 'ocd_mdh'...
Debug: 240 50 command.c:364 register_command_handler(): registering 'ocd_mdb'...
Debug: 241 50 command.c:364 register_command_handler(): registering 'ocd_mww'...
Debug: 242 50 command.c:364 register_command_handler(): registering 'ocd_mwh'...
Debug: 243 50 command.c:364 register_command_handler(): registering 'ocd_mwb'...
Debug: 244 51 command.c:364 register_command_handler(): registering 'ocd_bp'...
Debug: 245 51 command.c:364 register_command_handler(): registering 'ocd_rbp'...
Debug: 246 51 command.c:364 register_command_handler(): registering 'ocd_wp'...
Debug: 247 51 command.c:364 register_command_handler(): registering 'ocd_rwp'...
Debug: 248 51 command.c:364 register_command_handler(): registering 'ocd_load_image'...
Debug: 249 51 command.c:364 register_command_handler(): registering 'ocd_dump_image'...
Debug: 250 52 command.c:364 register_command_handler(): registering 'ocd_verify_image'...
Debug: 251 52 command.c:364 register_command_handler(): registering 'ocd_test_image'...
Debug: 252 52 command.c:364 register_command_handler(): registering 'ocd_reset_nag'...
Debug: 253 52 command.c:364 register_command_handler(): registering 'ocd_ps'...
Debug: 254 52 command.c:364 register_command_handler(): registering 'ocd_test_mem_access'...
Debug: 255 52 command.c:364 register_command_handler(): registering 'ocd_set_core'...
Debug: 256 53 ftdi.c:657 ftdi_initialize(): ftdi interface using shortest path jtag state transitions
Any help/ideas?
May 29, 2019 at 02:43 #25028dave93cabParticipantI also get this when I try to use the regular embedded project wizard:
I can’t help but think my install is borked or something..
VisualGDB version: 5.4.105.3154
------------------ hb+q ------------------
hb+q: Failed to start process (C:\SysGCC\esp32\opt\xtensa-esp32-elf\bin\make.exe -v): The system cannot find the file specified ---> System.ComponentModel.Win32Exception: The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at hb.n()
--- End of inner exception stack trace ---
at hb.n()
at pm1.l1(gf1 e, String c, String b, String a, ExpandedEnvironment d, CommandFlags f)
at he.v1(String c, String b, String a, ModifiedEnvirionment e, lq1 d, Int32 f, CommandFlags g)
at er1.b(he g, String c, ModifiedEnvirionment h, Regex i, Regex e, Int32 d, lq1 a, Boolean f, String b)
at er1.e(he c, String a, ModifiedEnvirionment e, lq1 b, Boolean d)
at ji1.n(bd1 a, Dictionary`2 b)
at xm1.g(bd1 a)
at VisualGDB.Common_GUI.WPF.ItemizedProgressWindow.<>c__DisplayClass2_2`1.<RunAction>b__0()
------------------ Inner exception ------------------
------------------ System.ComponentModel.Win32Exception ------------------
System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at hb.n()
Attachments:
You must be logged in to view attached files.May 29, 2019 at 02:46 #25030supportKeymasterHi,
Please try restarting your computer. If it doesn’t help, please try comparing the OpenOCD command lines used with Visual Studio Code and with VisualGDB. Ensure that you are using the same scripts and other command line arguments in both modes.
If all the options are the same, please try running the VisualGDB’s OpenOCD manually with the command line shown in the log and then try connecting the esp32 GDB to it (target remote :<port>) and let us know what happens then.
May 30, 2019 at 03:25 #25035dave93cabParticipantHere is output from openocd as provided by espressif:
PS C:\msys32\home\dave\esp\openocd-esp32> .\bin\openocd.exe -s .\share\openocd\scripts\ -f interface/ftdi/tumpa.cfg -f board/esp-wroom-32.cfg Open On-Chip Debugger v0.10.0-esp32-20190313 (2019-03-13-09:57) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html none separate adapter speed: 20000 kHz Info : Configured 2 cores esp32 interrupt mask on Info : Listening on port 6666 for tcl connections Info : Listening on port 4444 for telnet connections Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi_tdo_sample_edge falling" Info : clock speed 20000 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 0 was reset (pwrstat=0x5F, after clear 0x0F). Info : esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F). Info : esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F). Info : esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F). Info : Detected debug stubs @ 3ffb26a4 on core0 of target 'esp32' Info : Listening on port 3333 for gdb connections
And here is same command executed is visualgdb folder:
PS C:\Users\dave\AppData\Local\VisualGDB\EmbeddedDebugPackages\com.sysprogs.esp32.core\bin> cd .. PS C:\Users\dave\AppData\Local\VisualGDB\EmbeddedDebugPackages\com.sysprogs.esp32.core> .\bin\openocd.exe -s .\share\openocd\scripts\ -f interface/ftdi/tumpa.cfg -f board/esp-wroom-32.cfg Open On-Chip Debugger 0.9.0 (2019-01-11) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html none separate adapter speed: 20000 kHz esp32 interrupt mask on PS C:\Users\dave\AppData\Local\VisualGDB\EmbeddedDebugPackages\com.sysprogs.esp32.core> .\bin\openocd.exe -s .\share\openocd\scripts\ -f interface/ftdi/tumpa.cfg -f target/esp32.cfg Open On-Chip Debugger 0.9.0 (2019-01-11) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html none separate Info : auto-selecting first available session transport "jtag". To override use 'transport select '. esp32 interrupt mask on PS C:\Users\dave\AppData\Local\VisualGDB\EmbeddedDebugPackages\com.sysprogs.esp32.core>
replacing bin and share in visualgdb folder seems to have worked. Any issues running this way?
Thanks
- This reply was modified 5 years, 6 months ago by dave93cab.
June 3, 2019 at 06:36 #25046supportKeymasterThanks for the update. It indeed looks like Espressif has ported their OpenOCD fork to a newer OpenOCD version, adding support for more devices.
We have merged these changes into our branch and released an updated debug package. Please update it via Tools->VisualGDB->Manage VisualGDB Packages.
June 8, 2019 at 03:10 #25101dave93cabParticipantFYI updated to 20190603 ESP32 debug package and it doesn’t work.
Thanks
June 8, 2019 at 04:17 #25102supportKeymasterStrange, it is based on the same codebase as the ESP32 version.
Could you please try replacing just the bin folder and check if this solves the problem. If not, does combining the VisualGDB’s version of the bin folder with the Espressif’s version of the share folder work?
-
AuthorPosts
- You must be logged in to reply to this topic.