ESP32 debugging problem with OpenOCD, GDB and Olimex ARM-USB-OCD-H

rpoeschl
Posts: 4
Joined: Wed Apr 03, 2019 2:01 pm

ESP32 debugging problem with OpenOCD, GDB and Olimex ARM-USB-OCD-H

Postby rpoeschl » Thu Apr 04, 2019 1:16 pm

Hi,
i am trying to use the Olimex ARM-USB-OCD-H JTAG debugger for debugging the Sparkfun ESP32 thing, but i have problems to start the debug process.

My development Environment:
  • Sparkfun ESP32 Thing
  • JTAG Adapter: Olimex ARM-USB-OCD-H
  • GNU gdb (crosstool-NG crosstool-ng-1.22.0-80-g6c4433a) 7.10
  • ESP-IDF: v3.1.3
  • Open On-Chip Debugger 0.10.0-dev (2019-02-12-02:50)
  • Development Env: Command line for OCD and GDB / Eclipse 2018-12 (4.10.0) for Build
  • Operating System: Linux Mint 19.1 on Virtual Machine
I do the following steps:
  • Import the blink project to Eclipse (the same on shell)
  • Build and flash the program to ESP32 Thing module with Eclipse (or shell) and USB
  • Connect the Olimex ARM-USB-OCD-H JTAG Debugger
  • Run OpenOCD
  • Run xtensa-esp32-elf-gdb
I use a gdbinit-file with following content:

Code: Select all

set remotelogfile gdblog.txt
target remote :3333
set remote hardware-watchpoint-limit 2
mon reset halt
flushregs
thb app_main
c
The esp-wroom-32.cfg contains:

Code: Select all

transport select jtag
adapter_khz 20000
source [find target/esp32.cfg]
Starting OpenOCD and GDB with:

Code: Select all

/esp/openocd-esp32$ bin/openocd -d 3 -s share/openocd/scripts -f interface/ftdi/olimex-arm-usb-ocd-h.cfg -f board/esp-wroom-32.cfg 2>&1 | tee openocd.log

/esp/Examples/blink$ xtensa-esp32-elf-gdb -x gdbinit build/blink.elf
Does anyone know what causes this problem and how can I fix it?
Thanks a lot!


Output of GDB:

Code: Select all

/esp/Examples/blink$ xtensa-esp32-elf-gdb -x gdbinit build/blink.elf 
GNU gdb (crosstool-NG crosstool-ng-1.22.0-80-g6c4433a) 7.10
Copyright (C) 2015 Free Software Foundation, Inc.
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=x86_64-build_pc-linux-gnu --target=xtensa-esp32-elf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from build/blink.elf...done.
gdbinit:2: Error in sourced command file:
Remote connection closed
(gdb)

Output of OpenOCD:

Code: Select all

$ bin/openocd -d 3 -s share/openocd/scripts -f interface/ftdi/olimex-arm-usb-ocd-h.cfg -f board/esp-wroom-32.cfg 2>&1 | tee openocd.log
Open On-Chip Debugger 0.10.0-dev (2019-02-12-02:50)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
User : 13 4 command.c:544 command_print(): debug_level: 3
Debug: 14 4 configuration.c:42 add_script_search_dir(): adding share/openocd/scripts
Debug: 15 4 options.c:96 add_default_dirs(): bindir=/builds/idf/openocd-esp32/openocd-esp32/bin
Debug: 16 4 options.c:97 add_default_dirs(): pkgdatadir=/builds/idf/openocd-esp32/openocd-esp32/share/openocd
Debug: 17 4 options.c:98 add_default_dirs(): run_prefix=
Debug: 18 4 configuration.c:42 add_script_search_dir(): adding /home/user/.openocd
Debug: 19 4 configuration.c:42 add_script_search_dir(): adding /builds/idf/openocd-esp32/openocd-esp32/share/openocd/site
Debug: 20 4 configuration.c:42 add_script_search_dir(): adding /builds/idf/openocd-esp32/openocd-esp32/share/openocd/scripts
Debug: 21 4 configuration.c:82 find_file(): found share/openocd/scripts/interface/ftdi/olimex-arm-usb-ocd-h.cfg
Debug: 22 4 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_interface ftdi
Debug: 23 4 command.c:143 script_debug(): command - interface ocd_interface ftdi
Debug: 25 4 command.c:364 register_command_handler(): registering 'ocd_ftdi_device_desc'...
Debug: 26 4 command.c:364 register_command_handler(): registering 'ocd_ftdi_serial'...
Debug: 27 4 command.c:364 register_command_handler(): registering 'ocd_ftdi_location'...
Debug: 28 4 command.c:364 register_command_handler(): registering 'ocd_ftdi_channel'...
Debug: 29 4 command.c:364 register_command_handler(): registering 'ocd_ftdi_layout_init'...
Debug: 30 4 command.c:364 register_command_handler(): registering 'ocd_ftdi_layout_signal'...
Debug: 31 4 command.c:364 register_command_handler(): registering 'ocd_ftdi_set_signal'...
Debug: 32 4 command.c:364 register_command_handler(): registering 'ocd_ftdi_get_signal'...
Debug: 33 4 command.c:364 register_command_handler(): registering 'ocd_ftdi_vid_pid'...
Debug: 34 4 command.c:364 register_command_handler(): registering 'ocd_ftdi_tdo_sample_edge'...
Debug: 35 4 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ftdi_device_desc Olimex OpenOCD JTAG ARM-USB-OCD-H
Debug: 36 4 command.c:143 script_debug(): command - ftdi_device_desc ocd_ftdi_device_desc Olimex OpenOCD JTAG ARM-USB-OCD-H
Debug: 38 4 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ftdi_vid_pid 0x15ba 0x002b
Debug: 39 4 command.c:143 script_debug(): command - ftdi_vid_pid ocd_ftdi_vid_pid 0x15ba 0x002b
Debug: 41 4 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ftdi_layout_init 0x0908 0x0b1b
Debug: 42 4 command.c:143 script_debug(): command - ftdi_layout_init ocd_ftdi_layout_init 0x0908 0x0b1b
Debug: 44 4 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ftdi_layout_signal nSRST -oe 0x0200
Debug: 45 5 command.c:143 script_debug(): command - ftdi_layout_signal ocd_ftdi_layout_signal nSRST -oe 0x0200
Debug: 47 5 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ftdi_layout_signal nTRST -data 0x0100
Debug: 48 5 command.c:143 script_debug(): command - ftdi_layout_signal ocd_ftdi_layout_signal nTRST -data 0x0100
Debug: 50 5 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ftdi_layout_signal LED -data 0x0800
Debug: 51 5 command.c:143 script_debug(): command - ftdi_layout_signal ocd_ftdi_layout_signal LED -data 0x0800
Debug: 53 5 configuration.c:82 find_file(): found share/openocd/scripts/board/esp-wroom-32.cfg
Debug: 54 5 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_transport select jtag
Debug: 55 5 command.c:143 script_debug(): command - ocd_transport ocd_transport select jtag
Debug: 56 5 command.c:364 register_command_handler(): registering 'ocd_jtag_flush_queue_sleep'...
Debug: 57 5 command.c:364 register_command_handler(): registering 'ocd_jtag_rclk'...
Debug: 58 5 command.c:364 register_command_handler(): registering 'ocd_jtag_ntrst_delay'...
Debug: 59 5 command.c:364 register_command_handler(): registering 'ocd_jtag_ntrst_assert_width'...
Debug: 60 5 command.c:364 register_command_handler(): registering 'ocd_scan_chain'...
Debug: 61 5 command.c:364 register_command_handler(): registering 'ocd_jtag_reset'...
Debug: 62 5 command.c:364 register_command_handler(): registering 'ocd_runtest'...
Debug: 63 5 command.c:364 register_command_handler(): registering 'ocd_irscan'...
Debug: 64 5 command.c:364 register_command_handler(): registering 'ocd_verify_ircapture'...
Debug: 65 5 command.c:364 register_command_handler(): registering 'ocd_verify_jtag'...
Debug: 66 5 command.c:364 register_command_handler(): registering 'ocd_tms_sequence'...
Debug: 67 5 command.c:364 register_command_handler(): registering 'ocd_wait_srst_deassert'...
Debug: 68 5 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 69 5 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 70 5 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 71 5 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 72 5 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 73 5 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 74 5 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 75 5 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 76 5 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 77 5 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 78 5 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 79 5 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 80 5 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 81 5 command.c:364 register_command_handler(): registering 'ocd_svf'...
Debug: 82 5 command.c:364 register_command_handler(): registering 'ocd_xsvf'...
Debug: 83 5 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_adapter_khz 20000
Debug: 84 5 command.c:143 script_debug(): command - adapter_khz ocd_adapter_khz 20000
Debug: 86 5 core.c:1631 jtag_config_khz(): handle jtag khz
Debug: 87 5 core.c:1598 adapter_khz_to_speed(): convert khz to interface specific speed value
Debug: 88 5 core.c:1598 adapter_khz_to_speed(): convert khz to interface specific speed value
User : 89 5 command.c:544 command_print(): adapter speed: 20000 kHz
Debug: 90 5 configuration.c:82 find_file(): found share/openocd/scripts/target/esp32.cfg
Debug: 91 6 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_jtag newtap esp32 cpu0 -irlen 5 -expected-id 0x120034e5
Debug: 92 6 command.c:143 script_debug(): command - ocd_jtag ocd_jtag newtap esp32 cpu0 -irlen 5 -expected-id 0x120034e5
Debug: 93 6 tcl.c:549 jim_newtap_cmd(): Creating New Tap, Chip: esp32, Tap: cpu0, Dotted: esp32.cpu0, 4 params
Debug: 94 6 tcl.c:573 jim_newtap_cmd(): Processing option: -irlen
Debug: 95 6 tcl.c:573 jim_newtap_cmd(): Processing option: -expected-id
Debug: 96 6 core.c:1304 jtag_tap_init(): Created Tap: esp32.cpu0 @ abs position 0, irlen 5, capture: 0x1 mask: 0x3
Debug: 97 6 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_jtag newtap esp32 cpu1 -irlen 5 -expected-id 0x120034e5
Debug: 98 6 command.c:143 script_debug(): command - ocd_jtag ocd_jtag newtap esp32 cpu1 -irlen 5 -expected-id 0x120034e5
Debug: 99 6 tcl.c:549 jim_newtap_cmd(): Creating New Tap, Chip: esp32, Tap: cpu1, Dotted: esp32.cpu1, 4 params
Debug: 100 6 tcl.c:573 jim_newtap_cmd(): Processing option: -irlen
Debug: 101 6 tcl.c:573 jim_newtap_cmd(): Processing option: -expected-id
Debug: 102 6 core.c:1304 jtag_tap_init(): Created Tap: esp32.cpu1 @ abs position 1, irlen 5, capture: 0x1 mask: 0x3
Debug: 103 6 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: 104 6 command.c:143 script_debug(): command - ocd_target ocd_target create esp32 esp32 -endian little -chain-position esp32.cpu0 -rtos FreeRTOS
Debug: 105 6 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 106 6 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 107 6 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 108 6 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 109 6 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 110 6 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 111 6 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 112 6 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 113 6 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 114 6 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 115 6 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 116 6 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 117 6 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 118 6 command.c:364 register_command_handler(): registering 'ocd_set_permissive'...
Info : 119 6 esp32.c:1487 xtensa_target_create(): Configured 2 cores
Debug: 120 6 command.c:399 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 121 6 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 122 6 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 123 7 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 124 7 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 125 7 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 126 7 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 127 7 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 128 7 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 129 7 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 130 7 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 131 7 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 132 7 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 133 7 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 134 7 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 135 7 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 136 7 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 137 7 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 138 7 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 139 7 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 140 7 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 141 7 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 142 7 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 143 7 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 144 7 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 145 7 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 146 7 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 147 7 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 148 7 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 149 7 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 150 7 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 151 7 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 152 7 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 153 7 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 configure -event halted esp_core_halt esp32
Debug: 154 7 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 configure -event halted esp_core_halt esp32
Debug: 155 7 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 flashbootstrap 3.3
Debug: 156 7 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 flashbootstrap 3.3
Debug: 158 7 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 maskisr on
Debug: 159 7 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 maskisr on
User : 161 7 command.c:544 command_print(): esp32 interrupt mask on
Debug: 162 7 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: 163 7 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: 164 7 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 165 7 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 166 7 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 167 7 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 168 7 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: 169 8 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: 170 8 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 171 8 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 172 8 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 173 8 target.c:2008 target_free_all_working_areas_restore(): freeing all working areas
Debug: 174 8 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_flash bank esp32.flash esp32 0x0 0 0 0 esp32
Debug: 175 8 command.c:143 script_debug(): command - ocd_flash ocd_flash bank esp32.flash esp32 0x0 0 0 0 esp32
Debug: 177 8 command.c:399 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 178 8 command.c:364 register_command_handler(): registering 'ocd_esp32'...
Debug: 179 8 tcl.c:1032 handle_flash_bank_command(): 'esp32' driver usage field missing
Debug: 180 8 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_flash bank irom esp32 0x0 0 0 0 esp32
Debug: 181 8 command.c:143 script_debug(): command - ocd_flash ocd_flash bank irom esp32 0x0 0 0 0 esp32
Debug: 183 8 command.c:399 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 184 8 command.c:399 register_command(): command 'appimage_offset' is already registered in 'esp32' context
Debug: 185 8 tcl.c:1032 handle_flash_bank_command(): 'esp32' driver usage field missing
Debug: 186 8 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_flash bank drom esp32 0x0 0 0 0 esp32
Debug: 187 8 command.c:143 script_debug(): command - ocd_flash ocd_flash bank drom esp32 0x0 0 0 0 esp32
Debug: 189 8 command.c:399 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 190 8 command.c:399 register_command(): command 'appimage_offset' is already registered in 'esp32' context
Debug: 191 8 tcl.c:1032 handle_flash_bank_command(): 'esp32' driver usage field missing
Debug: 192 8 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 configure -event gdb-attach  halt 
Debug: 193 8 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 configure -event gdb-attach  halt 
Debug: 194 8 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: 195 8 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: 197 8 command.c:323 command_new(): BUG: command 'program_esp32' does not have the '.usage' field filled out
Debug: 198 8 command.c:1098 help_add_command(): added 'program_esp32' help text
Debug: 199 8 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_add_usage_text program_esp32 <filename> [address] [verify] [reset] [exit]
Debug: 200 8 command.c:143 script_debug(): command - add_usage_text ocd_add_usage_text program_esp32 <filename> [address] [verify] [reset] [exit]
Debug: 202 8 command.c:1123 help_add_command(): added 'program_esp32' usage text
Debug: 203 8 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_init
Debug: 204 9 command.c:143 script_debug(): command - init ocd_init
Debug: 206 9 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_target init
Debug: 207 9 command.c:143 script_debug(): command - ocd_target ocd_target init
Debug: 209 9 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_target names
Debug: 210 9 command.c:143 script_debug(): command - ocd_target ocd_target names
Debug: 211 9 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 cget -event gdb-flash-erase-start
Debug: 212 9 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 cget -event gdb-flash-erase-start
Debug: 213 9 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 configure -event gdb-flash-erase-start reset init
Debug: 214 9 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 configure -event gdb-flash-erase-start reset init
Debug: 215 9 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 cget -event gdb-flash-write-end
Debug: 216 9 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 cget -event gdb-flash-write-end
Debug: 217 9 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 configure -event gdb-flash-write-end reset halt
Debug: 218 9 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 configure -event gdb-flash-write-end reset halt
Debug: 219 9 target.c:1375 handle_target_init_command(): Initializing targets...
Debug: 220 9 esp32.c:1574 xtensa_init_target(): xtensa_init_target
Debug: 221 9 command.c:364 register_command_handler(): registering 'ocd_target_request'...
Debug: 222 9 command.c:364 register_command_handler(): registering 'ocd_trace'...
Debug: 223 9 command.c:364 register_command_handler(): registering 'ocd_trace'...
Debug: 224 9 command.c:364 register_command_handler(): registering 'ocd_fast_load_image'...
Debug: 225 9 command.c:364 register_command_handler(): registering 'ocd_fast_load'...
Debug: 226 9 command.c:364 register_command_handler(): registering 'ocd_profile'...
Debug: 227 9 command.c:364 register_command_handler(): registering 'ocd_virt2phys'...
Debug: 228 9 command.c:364 register_command_handler(): registering 'ocd_reg'...
Debug: 229 9 command.c:364 register_command_handler(): registering 'ocd_poll'...
Debug: 230 9 command.c:364 register_command_handler(): registering 'ocd_wait_halt'...
Debug: 231 9 command.c:364 register_command_handler(): registering 'ocd_halt'...
Debug: 232 9 command.c:364 register_command_handler(): registering 'ocd_resume'...
Debug: 233 9 command.c:364 register_command_handler(): registering 'ocd_reset'...
Debug: 234 9 command.c:364 register_command_handler(): registering 'ocd_soft_reset_halt'...
Debug: 235 9 command.c:364 register_command_handler(): registering 'ocd_step'...
Debug: 236 9 command.c:364 register_command_handler(): registering 'ocd_mdw'...
Debug: 237 9 command.c:364 register_command_handler(): registering 'ocd_mdh'...
Debug: 238 9 command.c:364 register_command_handler(): registering 'ocd_mdb'...
Debug: 239 9 command.c:364 register_command_handler(): registering 'ocd_mww'...
Debug: 240 9 command.c:364 register_command_handler(): registering 'ocd_mwh'...
Debug: 241 9 command.c:364 register_command_handler(): registering 'ocd_mwb'...
Debug: 242 9 command.c:364 register_command_handler(): registering 'ocd_bp'...
Debug: 243 9 command.c:364 register_command_handler(): registering 'ocd_rbp'...
Debug: 244 9 command.c:364 register_command_handler(): registering 'ocd_wp'...
Debug: 245 9 command.c:364 register_command_handler(): registering 'ocd_rwp'...
Debug: 246 9 command.c:364 register_command_handler(): registering 'ocd_load_image'...
Debug: 247 10 command.c:364 register_command_handler(): registering 'ocd_dump_image'...
Debug: 248 10 command.c:364 register_command_handler(): registering 'ocd_verify_image'...
Debug: 249 10 command.c:364 register_command_handler(): registering 'ocd_test_image'...
Debug: 250 10 command.c:364 register_command_handler(): registering 'ocd_reset_nag'...
Debug: 251 10 command.c:364 register_command_handler(): registering 'ocd_ps'...
Debug: 252 10 command.c:364 register_command_handler(): registering 'ocd_test_mem_access'...
Debug: 253 10 command.c:364 register_command_handler(): registering 'ocd_set_core'...
Debug: 254 10 ftdi.c:657 ftdi_initialize(): ftdi interface using shortest path jtag state transitions
Debug: 255 34 mpsse.c:422 mpsse_purge(): -
Debug: 256 39 mpsse.c:703 mpsse_loopback_config(): off
Debug: 257 39 mpsse.c:748 mpsse_set_frequency(): target 20000000 Hz
Debug: 258 39 mpsse.c:740 mpsse_rtck_config(): off
Debug: 259 39 mpsse.c:729 mpsse_divide_by_5_config(): off
Debug: 260 39 mpsse.c:709 mpsse_set_divisor(): 1
Debug: 261 39 mpsse.c:772 mpsse_set_frequency(): actually 15000000 Hz
Debug: 262 41 core.c:1598 adapter_khz_to_speed(): convert khz to interface specific speed value
Debug: 263 41 core.c:1601 adapter_khz_to_speed(): have interface set up
Debug: 264 41 mpsse.c:748 mpsse_set_frequency(): target 20000000 Hz
Debug: 265 41 mpsse.c:740 mpsse_rtck_config(): off
Debug: 266 41 mpsse.c:729 mpsse_divide_by_5_config(): off
Debug: 267 41 mpsse.c:709 mpsse_set_divisor(): 1
Debug: 268 41 mpsse.c:772 mpsse_set_frequency(): actually 15000000 Hz
Info : 269 41 ftdi.c:291 ftdi_speed(): ftdi: if you experience problems at higher adapter clocks, try the command "ftdi_tdo_sample_edge falling"
Debug: 270 41 core.c:1598 adapter_khz_to_speed(): convert khz to interface specific speed value
Debug: 271 41 core.c:1601 adapter_khz_to_speed(): have interface set up
Info : 272 41 core.c:1386 adapter_init(): clock speed 20000 kHz
Debug: 273 41 openocd.c:135 handle_init_command(): Debug Adapter init complete
Debug: 274 41 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_transport init
Debug: 275 41 command.c:143 script_debug(): command - ocd_transport ocd_transport init
Debug: 277 41 transport.c:239 handle_transport_init(): handle_transport_init
Debug: 278 43 core.c:729 jtag_add_reset(): SRST line released
Debug: 279 43 core.c:753 jtag_add_reset(): TRST line released
Debug: 280 43 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 281 45 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_jtag arp_init
Debug: 282 45 command.c:143 script_debug(): command - ocd_jtag ocd_jtag arp_init
Debug: 283 45 core.c:1399 jtag_init_inner(): Init JTAG chain
Debug: 284 45 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 285 47 core.c:1060 jtag_examine_chain(): DR scan interrogation for IDCODE/BYPASS
Debug: 286 47 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
Info : 287 50 core.c:959 jtag_examine_chain_display(): JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : 288 50 core.c:959 jtag_examine_chain_display(): JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Debug: 289 50 core.c:1190 jtag_validate_ircapture(): IR capture validation scan
Debug: 290 51 core.c:1248 jtag_validate_ircapture(): esp32.cpu0: IR capture 0x01
Debug: 291 51 core.c:1248 jtag_validate_ircapture(): esp32.cpu1: IR capture 0x01
Debug: 292 51 openocd.c:148 handle_init_command(): Examining targets...
Debug: 293 51 target.c:1589 target_call_event_callbacks(): target event 21 (examine-start)
Debug: 294 51 esp32.c:922 esp32_handle_target_event(): esp32_handle_target_event 21
Debug: 295 53 esp32.c:1854 xtensa_esp32_examine(): xtensa_esp32_examine: Target idcode=0733bff2 DSR=80000000
Debug: 296 53 target.c:1589 target_call_event_callbacks(): target event 22 (examine-end)
Debug: 297 53 esp32.c:922 esp32_handle_target_event(): esp32_handle_target_event 22
Debug: 298 53 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_flash init
Debug: 299 53 command.c:143 script_debug(): command - ocd_flash ocd_flash init
Debug: 300 55 esp32.c:1644 xtensa_poll(): xtensa_poll: core_poweron_mask=3
Info : 301 55 esp32.c:1651 xtensa_poll(): esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : 302 55 esp32.c:1657 xtensa_poll(): esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : 303 55 esp32.c:1651 xtensa_poll(): esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : 304 55 esp32.c:1657 xtensa_poll(): esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
Debug: 305 59 esp32.c:1684 xtensa_poll(): xtensa_poll: Core 0 came online, setting up DCR
Debug: 306 61 esp32.c:886 xtensa_smpbreak_set_core(): xtensa_smpbreak_set_core[esp32] core 0, set smpbreak=230001, state=1
Debug: 307 63 esp32.c:1684 xtensa_poll(): xtensa_poll: Core 1 came online, setting up DCR
Debug: 308 64 esp32.c:886 xtensa_smpbreak_set_core(): xtensa_smpbreak_set_core[esp32] core 1, set smpbreak=230001, state=1
Info : 309 68 esp32.c:1884 esp32_dbgstubs_get(): Detected debug stubs @ 3ffb2b04 on core0 of target 'esp32'
Debug: 311 71 tcl.c:1098 handle_flash_init_command(): Initializing flash devices...
Debug: 312 71 command.c:364 register_command_handler(): registering 'ocd_flash'...
Debug: 313 71 command.c:364 register_command_handler(): registering 'ocd_flash'...
Debug: 314 71 command.c:364 register_command_handler(): registering 'ocd_flash'...
Debug: 315 71 command.c:364 register_command_handler(): registering 'ocd_flash'...
Debug: 316 71 command.c:364 register_command_handler(): registering 'ocd_flash'...
Debug: 317 71 command.c:364 register_command_handler(): registering 'ocd_flash'...
Debug: 318 71 command.c:364 register_command_handler(): registering 'ocd_flash'...
Debug: 319 71 command.c:364 register_command_handler(): registering 'ocd_flash'...
Debug: 320 71 command.c:364 register_command_handler(): registering 'ocd_flash'...
Debug: 321 71 command.c:364 register_command_handler(): registering 'ocd_flash'...
Debug: 322 71 command.c:364 register_command_handler(): registering 'ocd_flash'...
Debug: 323 71 command.c:364 register_command_handler(): registering 'ocd_flash'...
Debug: 324 71 command.c:364 register_command_handler(): registering 'ocd_flash'...
Debug: 325 71 command.c:364 register_command_handler(): registering 'ocd_flash'...
Debug: 326 71 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_mflash init
Debug: 327 71 command.c:143 script_debug(): command - ocd_mflash ocd_mflash init
Debug: 328 74 esp32.c:1644 xtensa_poll(): xtensa_poll: core_poweron_mask=3
Debug: 329 78 esp32.c:1684 xtensa_poll(): xtensa_poll: Core 0 came online, setting up DCR
Debug: 330 80 esp32.c:886 xtensa_smpbreak_set_core(): xtensa_smpbreak_set_core[esp32] core 0, set smpbreak=230001, state=1
Debug: 331 82 esp32.c:1684 xtensa_poll(): xtensa_poll: Core 1 came online, setting up DCR
Debug: 332 83 esp32.c:886 xtensa_smpbreak_set_core(): xtensa_smpbreak_set_core[esp32] core 1, set smpbreak=230001, state=1
Debug: 334 86 mflash.c:1377 handle_mflash_init_command(): Initializing mflash devices...
Debug: 335 86 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_nand init
Debug: 336 86 command.c:143 script_debug(): command - ocd_nand ocd_nand init
Debug: 338 95 tcl.c:495 handle_nand_init_command(): Initializing NAND devices...
Debug: 339 95 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_pld init
Debug: 340 95 command.c:143 script_debug(): command - ocd_pld ocd_pld init
Debug: 342 104 pld.c:205 handle_pld_init_command(): Initializing PLDs...
Info : 343 71329 server.c:96 add_connection(): accepting 'gdb' connection on tcp/3333
Debug: 344 71330 breakpoints.c:357 breakpoint_clear_target_internal(): Delete all breakpoints for target: esp32
Debug: 345 71330 breakpoints.c:497 watchpoint_clear_target(): Delete all watchpoints for target: esp32
Debug: 346 71330 FreeRTOS.c:717 FreeRTOS_clean(): FreeRTOS_clean
Debug: 347 71330 target.c:1589 target_call_event_callbacks(): target event 23 (gdb-attach)
Debug: 348 71330 target.c:4457 target_handle_event(): target: (0) esp32 (esp32) event: 23 (gdb-attach) action:  halt 
Debug: 349 71330 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_halt
Debug: 350 71330 command.c:143 script_debug(): command - halt ocd_halt
Debug: 352 71340 target.c:2964 handle_halt_command(): -
Debug: 353 71340 esp32.c:392 xtensa_halt(): xtensa_halt, target: esp32
Debug: 354 71341 esp32.c:412 xtensa_halt(): Need to halt CPU 0
Debug: 355 71352 esp32.c:1720 xtensa_poll(): Stopped: CPU0: 1 CPU1: 1
Debug: 356 71352 esp32.c:184 esp32_fetch_all_regs(): esp32: esp32_fetch_all_regs
Error: 357 71361 esp32.c:262 esp32_fetch_all_regs(): Exception reading configid1!

Debug: 358 71362 esp32.c:1738 xtensa_poll(): cpu0: Target halted, pc=0x00000000, debug_reason=00000000, oldstate=00000001, active=true
Debug: 359 71362 esp32.c:1740 xtensa_poll(): cpu0: Halt reason=0x00000000, exc_cause=0, dsr=0x80310010
Debug: 360 71365 esp32.c:1738 xtensa_poll(): cpu1: Target halted, pc=0x00000000, debug_reason=00000000, oldstate=00000001, active=false
Debug: 361 71365 esp32.c:1740 xtensa_poll(): cpu1: Halt reason=0x00000000, exc_cause=0, dsr=0x80100010
Info : 362 71365 esp32.c:1781 xtensa_poll(): Target halted. PRO_CPU: PC=0x00000000 (active)    APP_CPU: PC=0x00000000 
Debug: 363 71365 target.c:1589 target_call_event_callbacks(): target event 0 (gdb-halt)
Debug: 364 71365 esp32.c:922 esp32_handle_target_event(): esp32_handle_target_event 0
Debug: 365 71365 target.c:1589 target_call_event_callbacks(): target event 1 (halted)
Debug: 366 71365 target.c:4457 target_handle_event(): target: (0) esp32 (esp32) event: 1 (halted) action: esp_core_halt esp32
Debug: 367 71365 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 mww 0x3FF5F064 0x50D83AA1
Debug: 368 71365 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 mww 0x3FF5F064 0x50D83AA1
Debug: 369 71365 esp32.c:706 xtensa_write_memory(): esp32: xtensa_write_memory: writing 4 bytes to addr 3FF5F064
Debug: 370 71369 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 mww 0x3FF5F048 0x0
Debug: 371 71369 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 mww 0x3FF5F048 0x0
Debug: 372 71369 esp32.c:706 xtensa_write_memory(): esp32: xtensa_write_memory: writing 4 bytes to addr 3FF5F048
Debug: 373 71372 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 mww 0x3FF60064 0x50D83AA1
Debug: 374 71372 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 mww 0x3FF60064 0x50D83AA1
Debug: 375 71372 esp32.c:706 xtensa_write_memory(): esp32: xtensa_write_memory: writing 4 bytes to addr 3FF60064
Debug: 376 71376 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 mww 0x3FF60048 0x0
Debug: 377 71376 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 mww 0x3FF60048 0x0
Debug: 378 71376 esp32.c:706 xtensa_write_memory(): esp32: xtensa_write_memory: writing 4 bytes to addr 3FF60048
Debug: 379 71380 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 mww 0x3FF480A4 0x50D83AA1
Debug: 380 71380 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 mww 0x3FF480A4 0x50D83AA1
Debug: 381 71380 esp32.c:706 xtensa_write_memory(): esp32: xtensa_write_memory: writing 4 bytes to addr 3FF480A4
Debug: 382 71383 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_esp32 mww 0x3FF4808C 0x0
Debug: 383 71383 command.c:143 script_debug(): command - ocd_esp32 ocd_esp32 mww 0x3FF4808C 0x0
Debug: 384 71383 esp32.c:706 xtensa_write_memory(): esp32: xtensa_write_memory: writing 4 bytes to addr 3FF4808C
Debug: 385 71387 esp32.c:922 esp32_handle_target_event(): esp32_handle_target_event 1
Debug: 386 71387 esp32.c:1590 esp32_is_app_cpu_enabled(): Read cores number
Debug: 387 71387 esp32.c:621 xtensa_read_memory(): esp32: xtensa_read_memory: reading 4 bytes from addr 3FF00030
Debug: 388 71389 esp32.c:1596 esp32_is_app_cpu_enabled(): Read APP CPU ctrl reg 0x1
Debug: 389 71389 esp32.c:1598 esp32_is_app_cpu_enabled(): APP CPU enabled
Debug: 390 71389 esp32.c:930 esp32_handle_target_event(): Detected 2 cores
Debug: 391 71389 esp32.c:621 xtensa_read_memory(): esp32: xtensa_read_memory: reading 8 bytes from addr 3FFB2B04
Debug: 392 71391 esp32.c:1924 esp32_dbgstubs_update_info(): Check dbg stub 0
Debug: 393 71391 esp32.c:1927 esp32_dbgstubs_update_info(): New dbg stub 0 at 3ffb2b0c
Debug: 394 71391 esp32.c:1924 esp32_dbgstubs_update_info(): Check dbg stub 1
Debug: 395 71391 esp32.c:1932 esp32_dbgstubs_update_info(): Not full dbg stub table 1 of 2
Debug: 396 71391 target.c:2076 target_arch_state(): esp32: target state: halted
Debug: 397 71391 esp32.c:1864 xtensa_arch_state(): xtensa_arch_state
Debug: 398 71391 esp32.c:922 esp32_handle_target_event(): esp32_handle_target_event 23
Debug: 399 71391 esp32.c:637 esp32_probe(): Flash size = 0 KB @ 0x0 'esp32' - 'halted'
Debug: 400 71391 esp32.c:181 esp32_init_flasher_image(): base=00000000 set=0
Debug: 401 71392 esp32.c:2398 esp32_run_do(): Set arg[0] = 5
Debug: 402 71392 esp32.c:2406 esp32_run_do(): Set arg[1] = -1
Debug: 403 71392 esp32.c:2406 esp32_run_do(): Set arg[2] = 0
Debug: 404 71392 esp32.c:1994 esp32_stub_load(): stub: base 0x0, start 0x40090814, 2 sections
Debug: 405 71392 esp32.c:1998 esp32_stub_load(): addr 0, sz 5891, flags 1
Debug: 406 71392 target.c:1809 alloc_working_area_try_do(): MMU disabled, using physical address for working memory 0x40090000
Debug: 407 71392 target.c:1862 alloc_working_area_try_do(): allocated new working area of 5892 bytes at address 0x40090000
Debug: 408 71392 esp32.c:621 xtensa_read_memory(): esp32: xtensa_read_memory: reading 5892 bytes from addr 40090000
Error: 409 71439 esp108_common.c:184 esp108_do_checkdsr(): cpu0: xtensa_read_memory (line 654): DSR (80008413) indicates DIR instruction generated an exception!
Warn : 410 71440 esp32.c:659 xtensa_read_memory(): cpu0: Failed reading 5892 bytes at address 0x40090000
Error: 411 71440 esp32.c:2001 esp32_stub_load(): no working area available, can't alloc space for stub code!
Error: 412 71440 esp32.c:2182 esp32_algo_run(): Failed to load stub (-308)!
Error: 413 71440 esp32.c:2414 esp32_run_do(): Algorithm run failed (-308)!
Error: 414 71440 esp32.c:293 esp32_get_mappings(): Failed to run flasher stub (-308)!
Warn : 415 71440 esp32.c:646 esp32_probe(): Failed to get flash mappings (-308)!
Debug: 416 71440 esp32.c:181 esp32_init_flasher_image(): base=00000000 set=0
Debug: 417 71440 esp32.c:2398 esp32_run_do(): Set arg[0] = 4
Debug: 418 71440 esp32.c:1994 esp32_stub_load(): stub: base 0x0, start 0x40090814, 2 sections
Debug: 419 71440 esp32.c:1998 esp32_stub_load(): addr 0, sz 5891, flags 1
Debug: 420 71440 target.c:1862 alloc_working_area_try_do(): allocated new working area of 5892 bytes at address 0x40090000
Debug: 421 71440 esp32.c:621 xtensa_read_memory(): esp32: xtensa_read_memory: reading 5892 bytes from addr 40090000
Error: 422 71486 esp108_common.c:184 esp108_do_checkdsr(): cpu0: xtensa_read_memory (line 654): DSR (8022CC13) indicates DIR instruction generated an exception!
Warn : 423 71488 esp32.c:659 xtensa_read_memory(): cpu0: Failed reading 5892 bytes at address 0x40090000
Error: 424 71488 esp32.c:2001 esp32_stub_load(): no working area available, can't alloc space for stub code!
Error: 425 71488 esp32.c:2182 esp32_algo_run(): Failed to load stub (-308)!
Error: 426 71488 esp32.c:2414 esp32_run_do(): Algorithm run failed (-308)!
Error: 427 71488 esp32.c:257 esp32_get_size(): Failed to run flasher stub (-308)!
Error: 428 71488 esp32.c:684 esp32_probe(): Failed to probe flash, size 0 KB
Error: 429 71488 core.c:215 get_flash_bank_by_num(): auto_probe failed
Error: 430 71488 gdb_server.c:982 gdb_new_connection(): Connect failed. Consider setting up a gdb-attach event for the target to prepare target for GDB connect, or use 'gdb_memory_map disable'.
Error: 431 71488 server.c:100 add_connection(): attempted 'gdb' connection rejected
Info : 432 71491 esp32.c:1651 xtensa_poll(): esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : 433 71491 esp32.c:1657 xtensa_poll(): esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
Debug: 434 71604 esp32.c:1644 xtensa_poll(): xtensa_poll: core_poweron_mask=3
Debug: 435 71609 esp32.c:1684 xtensa_poll(): xtensa_poll: Core 1 came online, setting up DCR
Debug: 436 71610 esp32.c:886 xtensa_smpbreak_set_core(): xtensa_smpbreak_set_core[esp32] core 1, set smpbreak=230001, state=2
Info : 437 351451 esp32.c:1651 xtensa_poll(): esp32: Debug controller 1 was reset (pwrstat=0xFF, after clear 0xFF).
Info : 438 351451 esp32.c:1657 xtensa_poll(): esp32: Core 1 was reset (pwrstat=0xFF, after clear 0xFF).
Debug: 439 351566 esp32.c:1644 xtensa_poll(): xtensa_poll: core_poweron_mask=3
Debug: 440 351572 esp32.c:1684 xtensa_poll(): xtensa_poll: Core 1 came online, setting up DCR
Debug: 441 351573 esp32.c:886 xtensa_smpbreak_set_core(): xtensa_smpbreak_set_core[esp32] core 1, set smpbreak=230001, state=2
Info : 442 352878 esp32.c:1651 xtensa_poll(): esp32: Debug controller 1 was reset (pwrstat=0xFF, after clear 0xFF).
Info : 443 352878 esp32.c:1657 xtensa_poll(): esp32: Core 1 was reset (pwrstat=0xFF, after clear 0xFF).
Debug: 444 352995 esp32.c:1644 xtensa_poll(): xtensa_poll: core_poweron_mask=3
Debug: 445 353000 esp32.c:1684 xtensa_poll(): xtensa_poll: Core 1 came online, setting up DCR
Debug: 446 353002 esp32.c:886 xtensa_smpbreak_set_core(): xtensa_smpbreak_set_core[esp32] core 1, set smpbreak=230001, state=2
Info : 447 527197 esp32.c:1651 xtensa_poll(): esp32: Debug controller 1 was reset (pwrstat=0xFF, after clear 0xFF).
Info : 448 527197 esp32.c:1657 xtensa_poll(): esp32: Core 1 was reset (pwrstat=0xFF, after clear 0xFF).
Debug: 449 527316 esp32.c:1644 xtensa_poll(): xtensa_poll: core_poweron_mask=3
Debug: 450 527322 esp32.c:1684 xtensa_poll(): xtensa_poll: Core 1 came online, setting up DCR
Debug: 451 527323 esp32.c:886 xtensa_smpbreak_set_core(): xtensa_smpbreak_set_core[esp32] core 1, set smpbreak=230001, state=2

littlemtn
Posts: 1
Joined: Fri Apr 19, 2019 7:53 pm

Re: ESP32 debugging problem with OpenOCD, GDB and Olimex ARM-USB-OCD-H

Postby littlemtn » Fri Apr 19, 2019 8:12 pm

I was just having a similar problem with the same JTAG debugger and an Adafruit ESP32 Feather. I am building openocd-esp32 from source. There were two things I needed to do, and now I am successfully debugging:

1) I was missing the libftd2xx dependency. See https://docs.espressif.com/projects/esp ... pendencies This particular JTAG adapter utilizes an FT2232 chip.

2) I changed the adapter_khz to 2000 (5000 didn't work) in esp-wroom-32.cfg

Hope this helps. Let me know if you need further information.

rpoeschl
Posts: 4
Joined: Wed Apr 03, 2019 2:01 pm

Re: ESP32 debugging problem with OpenOCD, GDB and Olimex ARM-USB-OCD-H

Postby rpoeschl » Tue Apr 23, 2019 9:00 am

Thank you. I get it also to work with a reduced adapter frequency of 2000 in the esp-wroom-32.cfg.

Who is online

Users browsing this forum: No registered users and 68 guests