espressif / openocd-esp32

OpenOCD branch with ESP32 JTAG support
Other
357 stars 131 forks source link

Command 'flash write_image' failed with error code -1202 #126

Closed RavenLite closed 3 years ago

RavenLite commented 3 years ago

Hi!

I found some similar problems here in #125 and #117

And I changed my command from

openocd -f interface/ftdi/olimex-arm-usb-tiny-h.cfg -f board/esp-wroom-32.cfg  -c "adapter_khz 1000" -c "program_esp32 build/partitions_singleapp.bin 0x10000 reset" -c "program_esp32 build/partitions_singleapp.bin 0x8000 verify" -c "program_esp32 build/bootloader/bootloader.bin 0x1000 verify" -c "program_esp32 build/ai-deck-jpeg-streamer-demo.bin 0x10000 verify reset exit"

to

openocd -f interface/ftdi/olimex-arm-usb-tiny-h.cfg -f board/esp-wroom-32.cfg  -c "adapter_khz 1000" -c "program_esp build/partitions_singleapp.bin 0x10000 reset" -c "program_esp build/partitions_singleapp.bin 0x8000" -c "program_esp build/bootloader/bootloader.bin 0x1000" -c "program_esp build/ai-deck-jpeg-streamer-demo.bin 0x10000 reset exit" -d

according to the suggestions given in the issue (program_esp32 --> program_esp, verify) but it didn't still work.

Log with "-d"

Open On-Chip Debugger  v0.10.0-esp32-20200709 (2020-07-09-08:54)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
User : 13 2 options.c:60 configuration_output_handler(): debug_level: 3
User : 14 2 options.c:60 configuration_output_handler(): 
Debug: 15 2 options.c:184 add_default_dirs(): bindir=/builds/idf/openocd-esp32/openocd-esp32/bin
Debug: 16 2 options.c:185 add_default_dirs(): pkgdatadir=/builds/idf/openocd-esp32/openocd-esp32/share/openocd
Debug: 17 2 options.c:186 add_default_dirs(): exepath=/home/bitcraze/.espressif/tools/openocd-esp32/v0.10.0-esp32-20200709/openocd-esp32/bin
Debug: 18 2 options.c:187 add_default_dirs(): bin2data=../share/openocd
Debug: 19 2 configuration.c:42 add_script_search_dir(): adding /home/bitcraze/.openocd
Debug: 20 3 configuration.c:42 add_script_search_dir(): adding /home/bitcraze/.espressif/tools/openocd-esp32/v0.10.0-esp32-20200709/openocd-esp32/bin/../share/openocd/site
Debug: 21 3 configuration.c:42 add_script_search_dir(): adding /home/bitcraze/.espressif/tools/openocd-esp32/v0.10.0-esp32-20200709/openocd-esp32/bin/../share/openocd/scripts
Debug: 22 3 configuration.c:97 find_file(): found /home/bitcraze/.espressif/tools/openocd-esp32/v0.10.0-esp32-20200709/openocd-esp32/bin/../share/openocd/scripts/interface/ftdi/olimex-arm-usb-tiny-h.cfg
Debug: 23 3 command.c:143 script_debug(): command - interface interface ftdi
Debug: 25 3 command.c:355 register_command_handler(): registering 'ftdi_device_desc'...
Debug: 26 3 command.c:355 register_command_handler(): registering 'ftdi_serial'...
Debug: 27 3 command.c:355 register_command_handler(): registering 'ftdi_channel'...
Debug: 28 3 command.c:355 register_command_handler(): registering 'ftdi_layout_init'...
Debug: 29 3 command.c:355 register_command_handler(): registering 'ftdi_layout_signal'...
Debug: 30 3 command.c:355 register_command_handler(): registering 'ftdi_set_signal'...
Debug: 31 3 command.c:355 register_command_handler(): registering 'ftdi_get_signal'...
Debug: 32 3 command.c:355 register_command_handler(): registering 'ftdi_vid_pid'...
Debug: 33 3 command.c:355 register_command_handler(): registering 'ftdi_tdo_sample_edge'...
Debug: 34 3 command.c:143 script_debug(): command - ftdi_device_desc ftdi_device_desc Olimex OpenOCD JTAG ARM-USB-TINY-H
Debug: 36 3 command.c:143 script_debug(): command - ftdi_vid_pid ftdi_vid_pid 0x15ba 0x002a
Debug: 38 3 command.c:143 script_debug(): command - ftdi_layout_init ftdi_layout_init 0x0808 0x0a1b
Debug: 40 3 command.c:143 script_debug(): command - ftdi_layout_signal ftdi_layout_signal nSRST -oe 0x0200
Debug: 42 3 command.c:143 script_debug(): command - ftdi_layout_signal ftdi_layout_signal nTRST -data 0x0100 -oe 0x0100
Debug: 44 3 command.c:143 script_debug(): command - ftdi_layout_signal ftdi_layout_signal LED -data 0x0800
Debug: 46 3 configuration.c:97 find_file(): found /home/bitcraze/.espressif/tools/openocd-esp32/v0.10.0-esp32-20200709/openocd-esp32/bin/../share/openocd/scripts/board/esp-wroom-32.cfg
Debug: 47 3 command.c:143 script_debug(): command - echo echo WARNING: boards/esp-wroom-32.cfg is deprecated, and may be removed in a future release.
User : 49 3 command.c:770 jim_echo(): WARNING: boards/esp-wroom-32.cfg is deprecated, and may be removed in a future release.
Debug: 50 4 configuration.c:97 find_file(): found /home/bitcraze/.espressif/tools/openocd-esp32/v0.10.0-esp32-20200709/openocd-esp32/bin/../share/openocd/scripts/target/esp32.cfg
Debug: 51 4 command.c:143 script_debug(): command - transport transport select jtag
Debug: 52 4 command.c:355 register_command_handler(): registering 'jtag_flush_queue_sleep'...
Debug: 53 4 command.c:355 register_command_handler(): registering 'jtag_rclk'...
Debug: 54 4 command.c:355 register_command_handler(): registering 'jtag_ntrst_delay'...
Debug: 55 4 command.c:355 register_command_handler(): registering 'jtag_ntrst_assert_width'...
Debug: 56 4 command.c:355 register_command_handler(): registering 'scan_chain'...
Debug: 57 4 command.c:355 register_command_handler(): registering 'jtag_reset'...
Debug: 58 4 command.c:355 register_command_handler(): registering 'runtest'...
Debug: 59 4 command.c:355 register_command_handler(): registering 'irscan'...
Debug: 60 4 command.c:355 register_command_handler(): registering 'verify_ircapture'...
Debug: 61 4 command.c:355 register_command_handler(): registering 'verify_jtag'...
Debug: 62 4 command.c:355 register_command_handler(): registering 'tms_sequence'...
Debug: 63 4 command.c:355 register_command_handler(): registering 'wait_srst_deassert'...
Debug: 64 4 command.c:355 register_command_handler(): registering 'jtag'...
Debug: 65 4 command.c:355 register_command_handler(): registering 'jtag'...
Debug: 66 4 command.c:355 register_command_handler(): registering 'jtag'...
Debug: 67 4 command.c:355 register_command_handler(): registering 'jtag'...
Debug: 68 4 command.c:355 register_command_handler(): registering 'jtag'...
Debug: 69 4 command.c:355 register_command_handler(): registering 'jtag'...
Debug: 70 4 command.c:355 register_command_handler(): registering 'jtag'...
Debug: 71 4 command.c:355 register_command_handler(): registering 'jtag'...
Debug: 72 4 command.c:355 register_command_handler(): registering 'jtag'...
Debug: 73 4 command.c:355 register_command_handler(): registering 'jtag'...
Debug: 74 4 command.c:355 register_command_handler(): registering 'jtag'...
Debug: 75 4 command.c:355 register_command_handler(): registering 'jtag'...
Debug: 76 5 command.c:355 register_command_handler(): registering 'jtag'...
Debug: 77 5 command.c:355 register_command_handler(): registering 'svf'...
Debug: 78 5 command.c:355 register_command_handler(): registering 'xsvf'...
Debug: 79 5 configuration.c:97 find_file(): found /home/bitcraze/.espressif/tools/openocd-esp32/v0.10.0-esp32-20200709/openocd-esp32/bin/../share/openocd/scripts/target/esp_common.cfg
Debug: 80 5 command.c:143 script_debug(): command - add_help_text add_help_text program_esp write an image to flash, address is only required for binary images. verify, reset, exit are optional
Debug: 82 5 command.c:1127 help_add_command(): added 'program_esp' help text
Debug: 83 5 command.c:143 script_debug(): command - add_usage_text add_usage_text program_esp  [address] [verify] [reset] [exit]
Debug: 85 5 command.c:1153 help_add_command(): added 'program_esp' usage text
Debug: 86 5 command.c:143 script_debug(): command - jtag jtag newtap esp32 cpu0 -irlen 5 -expected-id 0x120034e5
Debug: 87 5 tcl.c:567 jim_newtap_cmd(): Creating New Tap, Chip: esp32, Tap: cpu0, Dotted: esp32.cpu0, 4 params
Debug: 88 5 tcl.c:591 jim_newtap_cmd(): Processing option: -irlen
Debug: 89 5 tcl.c:591 jim_newtap_cmd(): Processing option: -expected-id
Debug: 90 5 core.c:1373 jtag_tap_init(): Created Tap: esp32.cpu0 @ abs position 0, irlen 5, capture: 0x1 mask: 0x3
Debug: 91 5 command.c:143 script_debug(): command - jtag jtag newtap esp32 cpu1 -irlen 5 -expected-id 0x120034e5
Debug: 92 5 tcl.c:567 jim_newtap_cmd(): Creating New Tap, Chip: esp32, Tap: cpu1, Dotted: esp32.cpu1, 4 params
Debug: 93 5 tcl.c:591 jim_newtap_cmd(): Processing option: -irlen
Debug: 94 5 tcl.c:591 jim_newtap_cmd(): Processing option: -expected-id
Debug: 95 5 core.c:1373 jtag_tap_init(): Created Tap: esp32.cpu1 @ abs position 1, irlen 5, capture: 0x1 mask: 0x3
Debug: 96 6 command.c:143 script_debug(): command - target target create esp32 esp32 -endian little -chain-position esp32.cpu0 -rtos FreeRTOS
Debug: 97 6 target.c:2036 target_free_all_working_areas_restore(): freeing all working areas
Debug: 98 6 target.c:2036 target_free_all_working_areas_restore(): freeing all working areas
Info : 99 6 xtensa_mcore.c:353 xtensa_mcore_init_arch_info(): Configured 2 cores
Debug: 100 6 command.c:355 register_command_handler(): registering 'xtensa'...
Debug: 101 6 command.c:355 register_command_handler(): registering 'xtensa'...
Debug: 102 6 command.c:355 register_command_handler(): registering 'xtensa'...
Debug: 103 6 command.c:355 register_command_handler(): registering 'xtensa'...
Debug: 104 6 command.c:355 register_command_handler(): registering 'xtensa'...
Debug: 105 6 command.c:355 register_command_handler(): registering 'xtensa'...
Debug: 106 6 command.c:355 register_command_handler(): registering 'xtensa'...
Debug: 107 6 command.c:355 register_command_handler(): registering 'xtensa'...
Debug: 108 6 command.c:355 register_command_handler(): registering 'esp'...
Debug: 109 6 command.c:355 register_command_handler(): registering 'esp'...
Debug: 110 6 command.c:355 register_command_handler(): registering 'esp'...
Debug: 111 6 command.c:355 register_command_handler(): registering 'esp'...
Debug: 112 6 command.c:355 register_command_handler(): registering 'esp'...
Debug: 113 6 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 114 6 command.c:377 register_command(): command 'esp32' is already registered in '' context
Debug: 115 6 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 116 6 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 117 7 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 118 7 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 119 7 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 120 7 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 121 7 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 122 7 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 123 7 command.c:377 register_command(): command 'esp32' is already registered in '' context
Debug: 124 7 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 125 7 command.c:377 register_command(): command 'flashbootstrap' is already registered in 'esp32' context
Debug: 126 7 command.c:377 register_command(): command 'esp32' is already registered in '' context
Debug: 127 7 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 128 7 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 129 7 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 130 7 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 131 7 command.c:377 register_command(): command 'esp32' is already registered in '' context
Debug: 132 7 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 133 7 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 134 8 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 135 8 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 136 8 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 137 8 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 138 9 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 139 9 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 140 9 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 141 9 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 142 9 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 143 9 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 144 9 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 145 9 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 146 9 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 147 9 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 148 9 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 149 9 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 150 9 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 151 9 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 152 9 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 153 9 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 154 9 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 155 9 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 156 9 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 157 9 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 158 9 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 159 9 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 160 9 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 161 9 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 162 9 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 163 9 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 164 9 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 165 9 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 166 9 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 167 10 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 168 10 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 169 10 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 170 10 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 171 10 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 172 10 command.c:377 register_command(): command 'esp32' is already registered in 'esp32' context
Debug: 173 10 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 174 10 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 175 10 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 176 10 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 177 10 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 178 10 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 179 10 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 180 10 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 181 10 command.c:377 register_command(): command 'esp32' is already registered in 'esp32' context
Debug: 182 10 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 183 10 command.c:377 register_command(): command 'flashbootstrap' is already registered in 'esp32' context
Debug: 184 10 command.c:377 register_command(): command 'esp32' is already registered in 'esp32' context
Debug: 185 10 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 186 10 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 187 10 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 188 10 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 189 10 command.c:143 script_debug(): command - esp32 esp32 configure -work-area-phys 0x40090000 -work-area-virt 0x40090000 -work-area-size 0x3400 -work-area-backup 1
Debug: 190 10 target.c:2036 target_free_all_working_areas_restore(): freeing all working areas
Debug: 191 10 target.c:2036 target_free_all_working_areas_restore(): freeing all working areas
Debug: 192 10 target.c:2036 target_free_all_working_areas_restore(): freeing all working areas
Debug: 193 11 target.c:2036 target_free_all_working_areas_restore(): freeing all working areas
Debug: 194 11 command.c:143 script_debug(): command - esp32 esp32 configure -alt-work-area-phys 0x3FFC0000 -alt-work-area-virt 0x3FFC0000 -alt-work-area-size 0x6000 -alt-work-area-backup 1
Debug: 195 11 target.c:2036 target_free_all_working_areas_restore(): freeing all working areas
Debug: 196 11 target.c:2036 target_free_all_working_areas_restore(): freeing all working areas
Debug: 197 11 target.c:2036 target_free_all_working_areas_restore(): freeing all working areas
Debug: 198 11 target.c:2036 target_free_all_working_areas_restore(): freeing all working areas
Debug: 199 11 command.c:143 script_debug(): command - flash flash bank esp32.flash esp32 0x0 0 0 0 esp32
Debug: 201 11 command.c:377 register_command(): command 'esp' is already registered in '' context
Debug: 202 11 command.c:355 register_command_handler(): registering 'esp'...
Debug: 203 11 command.c:377 register_command(): command 'esp32' is already registered in '' context
Debug: 204 11 command.c:355 register_command_handler(): registering 'esp32'...
Debug: 205 11 tcl.c:1156 handle_flash_bank_command(): 'esp32' driver usage field missing
Debug: 206 11 command.c:143 script_debug(): command - flash flash bank esp32.irom esp32 0x0 0 0 0 esp32
Debug: 208 11 command.c:377 register_command(): command 'esp' is already registered in '' context
Debug: 209 11 command.c:377 register_command(): command 'appimage_offset' is already registered in 'esp' context
Debug: 210 11 command.c:377 register_command(): command 'esp32' is already registered in '' context
Debug: 211 11 command.c:377 register_command(): command 'appimage_offset' is already registered in 'esp32' context
Debug: 212 11 tcl.c:1156 handle_flash_bank_command(): 'esp32' driver usage field missing
Debug: 213 11 command.c:143 script_debug(): command - flash flash bank esp32.drom esp32 0x0 0 0 0 esp32
Debug: 215 11 command.c:377 register_command(): command 'esp' is already registered in '' context
Debug: 216 11 command.c:377 register_command(): command 'appimage_offset' is already registered in 'esp' context
Debug: 217 11 command.c:377 register_command(): command 'esp32' is already registered in '' context
Debug: 218 11 command.c:377 register_command(): command 'appimage_offset' is already registered in 'esp32' context
Debug: 219 11 tcl.c:1156 handle_flash_bank_command(): 'esp32' driver usage field missing
Debug: 220 11 command.c:143 script_debug(): command - esp32 esp32 configure -event gdb-attach  halt 
Debug: 221 11 command.c:143 script_debug(): command - esp32 esp32 flashbootstrap 3.3
Debug: 223 12 command.c:143 script_debug(): command - xtensa xtensa maskisr on
Debug: 225 12 command.c:143 script_debug(): command - esp esp semihost_basedir .
Debug: 227 12 command.c:143 script_debug(): command - add_help_text add_help_text program_esp32 write an image to flash, address is only required for binary images. verify, reset, exit are optional
Debug: 229 12 command.c:1127 help_add_command(): added 'program_esp32' help text
Debug: 230 12 command.c:143 script_debug(): command - add_usage_text add_usage_text program_esp32  [address] [verify] [reset] [exit]
Debug: 232 12 command.c:1153 help_add_command(): added 'program_esp32' usage text
Debug: 233 12 command.c:143 script_debug(): command - adapter_khz adapter_khz 1000
Debug: 235 12 core.c:1705 jtag_config_khz(): handle jtag khz
Debug: 236 12 core.c:1668 adapter_khz_to_speed(): convert khz to interface specific speed value
Debug: 237 12 core.c:1668 adapter_khz_to_speed(): convert khz to interface specific speed value
User : 238 12 options.c:60 configuration_output_handler(): adapter speed: 1000 kHz
User : 239 12 options.c:60 configuration_output_handler(): 
Debug: 240 12 command.c:143 script_debug(): command - init init
Debug: 242 12 command.c:143 script_debug(): command - target target init
Debug: 244 12 command.c:143 script_debug(): command - target target names
Debug: 245 12 command.c:143 script_debug(): command - esp32 esp32 cget -event gdb-flash-erase-start
Debug: 246 12 command.c:143 script_debug(): command - esp32 esp32 configure -event gdb-flash-erase-start reset init
Debug: 247 12 command.c:143 script_debug(): command - esp32 esp32 cget -event gdb-flash-write-end
Debug: 248 12 command.c:143 script_debug(): command - esp32 esp32 configure -event gdb-flash-write-end reset halt
Debug: 249 12 command.c:143 script_debug(): command - esp32 esp32 cget -event gdb-attach
Debug: 250 12 target.c:1474 handle_target_init_command(): Initializing targets...
Debug: 251 12 xtensa_mcore.c:320 xtensa_mcore_target_init(): xtensa_mcore_target_init
Debug: 252 12 semihosting_common.c:98 semihosting_common_init():  
Debug: 253 13 semihosting_common.c:98 semihosting_common_init():  
Debug: 254 13 semihosting_common.c:98 semihosting_common_init():  
Debug: 255 13 semihosting_common.c:98 semihosting_common_init():  
Debug: 256 13 command.c:355 register_command_handler(): registering 'target_request'...
Debug: 257 13 command.c:355 register_command_handler(): registering 'trace'...
Debug: 258 13 command.c:355 register_command_handler(): registering 'trace'...
Debug: 259 13 command.c:355 register_command_handler(): registering 'fast_load_image'...
Debug: 260 13 command.c:355 register_command_handler(): registering 'fast_load'...
Debug: 261 13 command.c:355 register_command_handler(): registering 'profile'...
Debug: 262 13 command.c:355 register_command_handler(): registering 'virt2phys'...
Debug: 263 13 command.c:355 register_command_handler(): registering 'reg'...
Debug: 264 13 command.c:355 register_command_handler(): registering 'poll'...
Debug: 265 13 command.c:355 register_command_handler(): registering 'wait_halt'...
Debug: 266 13 command.c:355 register_command_handler(): registering 'halt'...
Debug: 267 13 command.c:355 register_command_handler(): registering 'resume'...
Debug: 268 13 command.c:355 register_command_handler(): registering 'reset'...
Debug: 269 13 command.c:355 register_command_handler(): registering 'soft_reset_halt'...
Debug: 270 13 command.c:355 register_command_handler(): registering 'step'...
Debug: 271 13 command.c:355 register_command_handler(): registering 'mdd'...
Debug: 272 13 command.c:355 register_command_handler(): registering 'mdw'...
Debug: 273 13 command.c:355 register_command_handler(): registering 'mdh'...
Debug: 274 13 command.c:355 register_command_handler(): registering 'mdb'...
Debug: 275 13 command.c:355 register_command_handler(): registering 'mwd'...
Debug: 276 13 command.c:355 register_command_handler(): registering 'mww'...
Debug: 277 13 command.c:355 register_command_handler(): registering 'mwh'...
Debug: 278 14 command.c:355 register_command_handler(): registering 'mwb'...
Debug: 279 14 command.c:355 register_command_handler(): registering 'bp'...
Debug: 280 14 command.c:355 register_command_handler(): registering 'rbp'...
Debug: 281 14 command.c:355 register_command_handler(): registering 'wp'...
Debug: 282 14 command.c:355 register_command_handler(): registering 'rwp'...
Debug: 283 14 command.c:355 register_command_handler(): registering 'load_image'...
Debug: 284 14 command.c:355 register_command_handler(): registering 'dump_image'...
Debug: 285 14 command.c:355 register_command_handler(): registering 'verify_image_checksum'...
Debug: 286 14 command.c:355 register_command_handler(): registering 'verify_image'...
Debug: 287 14 command.c:355 register_command_handler(): registering 'test_image'...
Debug: 288 14 command.c:355 register_command_handler(): registering 'reset_nag'...
Debug: 289 14 command.c:355 register_command_handler(): registering 'ps'...
Debug: 290 14 command.c:355 register_command_handler(): registering 'test_mem_access'...
Debug: 291 14 command.c:355 register_command_handler(): registering 'set_core'...
Debug: 292 14 ftdi.c:657 ftdi_initialize(): ftdi interface using shortest path jtag state transitions
Debug: 293 39 mpsse.c:425 mpsse_purge(): -
Debug: 294 47 mpsse.c:706 mpsse_loopback_config(): off
Debug: 295 47 mpsse.c:751 mpsse_set_frequency(): target 1000000 Hz
Debug: 296 47 mpsse.c:743 mpsse_rtck_config(): off
Debug: 297 47 mpsse.c:732 mpsse_divide_by_5_config(): off
Debug: 298 47 mpsse.c:712 mpsse_set_divisor(): 29
Debug: 299 47 mpsse.c:775 mpsse_set_frequency(): actually 1000000 Hz
Debug: 300 51 core.c:1668 adapter_khz_to_speed(): convert khz to interface specific speed value
Debug: 301 51 core.c:1672 adapter_khz_to_speed(): have interface set up
Debug: 302 51 mpsse.c:751 mpsse_set_frequency(): target 1000000 Hz
Debug: 303 51 mpsse.c:743 mpsse_rtck_config(): off
Debug: 304 51 mpsse.c:732 mpsse_divide_by_5_config(): off
Debug: 305 51 mpsse.c:712 mpsse_set_divisor(): 29
Debug: 306 51 mpsse.c:775 mpsse_set_frequency(): actually 1000000 Hz
Debug: 307 51 core.c:1668 adapter_khz_to_speed(): convert khz to interface specific speed value
Debug: 308 51 core.c:1672 adapter_khz_to_speed(): have interface set up
Info : 309 51 core.c:1450 adapter_init(): clock speed 1000 kHz
Debug: 310 51 openocd.c:141 handle_init_command(): Debug Adapter init complete
Debug: 311 51 command.c:143 script_debug(): command - transport transport init
Debug: 313 51 transport.c:239 handle_transport_init(): handle_transport_init
Debug: 314 55 core.c:729 jtag_add_reset(): SRST line released
Debug: 315 55 core.c:753 jtag_add_reset(): TRST line released
Debug: 316 55 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 317 58 command.c:143 script_debug(): command - jtag jtag arp_init
Debug: 318 58 core.c:1463 jtag_init_inner(): Init JTAG chain
Debug: 319 58 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 320 62 core.c:1128 jtag_examine_chain(): DR scan interrogation for IDCODE/BYPASS
Debug: 321 62 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
Info : 322 67 core.c:1027 jtag_examine_chain_display(): JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : 323 67 core.c:1027 jtag_examine_chain_display(): JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Debug: 324 67 core.c:1259 jtag_validate_ircapture(): IR capture validation scan
Debug: 325 69 core.c:1317 jtag_validate_ircapture(): esp32.cpu0: IR capture 0x01
Debug: 326 69 core.c:1317 jtag_validate_ircapture(): esp32.cpu1: IR capture 0x01
Debug: 327 69 command.c:143 script_debug(): command - dap dap init
Debug: 329 69 arm_dap.c:106 dap_init_all(): Initializing all DAPs ...
Debug: 330 69 openocd.c:158 handle_init_command(): Examining targets...
Debug: 331 69 target.c:1662 target_call_event_callbacks(): target event 17 (examine-start) for core esp32
Debug: 332 69 esp32.c:593 esp32_handle_target_event(): 17
Debug: 333 69 target.c:1662 target_call_event_callbacks(): target event 17 (examine-start) for core cpu0
Debug: 334 69 esp_xtensa.c:111 esp_xtensa_handle_target_event(): 17
Debug: 335 69 target.c:1662 target_call_event_callbacks(): target event 17 (examine-start) for core cpu1
Debug: 336 69 esp_xtensa.c:111 esp_xtensa_handle_target_event(): 17
Debug: 337 69 xtensa.c:548 xtensa_examine(): xtensa_examine coreid=0
Debug: 338 75 xtensa.c:561 xtensa_examine(): OCD_ID = 0733bff2
Debug: 339 75 xtensa.c:548 xtensa_examine(): xtensa_examine coreid=1
Debug: 340 81 xtensa.c:561 xtensa_examine(): OCD_ID = 0733bff2
Debug: 341 81 target.c:1662 target_call_event_callbacks(): target event 18 (examine-end) for core esp32
Debug: 342 81 esp32.c:593 esp32_handle_target_event(): 18
Debug: 343 81 target.c:1662 target_call_event_callbacks(): target event 18 (examine-end) for core cpu0
Debug: 344 81 esp_xtensa.c:111 esp_xtensa_handle_target_event(): 18
Debug: 345 81 target.c:1662 target_call_event_callbacks(): target event 18 (examine-end) for core cpu1
Debug: 346 81 esp_xtensa.c:111 esp_xtensa_handle_target_event(): 18
Debug: 347 81 command.c:143 script_debug(): command - flash flash init
Debug: 348 85 xtensa_mcore.c:442 xtensa_mcore_poll(): xtensa_mcore_poll: core_poweron_mask=3
Debug: 349 95 xtensa_mcore.c:470 xtensa_mcore_poll(): xtensa_mcore_poll: Core 0 came online, setting up DCR
Debug: 350 98 xtensa.c:595 xtensa_smpbreak_set(): xtensa_smpbreak_set set smpbreak=30000, state=1
Debug: 351 103 xtensa_mcore.c:470 xtensa_mcore_poll(): xtensa_mcore_poll: Core 1 came online, setting up DCR
Debug: 352 104 xtensa.c:595 xtensa_smpbreak_set(): xtensa_smpbreak_set set smpbreak=30000, state=1
Debug: 353 108 xtensa.c:720 xtensa_fetch_all_regs(): cpu0: start
Debug: 354 129 xtensa.c:618 xtensa_core_status_check(): cpu0: DSR (8000CC11)
Debug: 355 165 xtensa.c:618 xtensa_core_status_check(): cpu0: DSR (8000CC11)
Debug: 356 165 xtensa.c:720 xtensa_fetch_all_regs(): cpu1: start
Debug: 357 187 xtensa.c:618 xtensa_core_status_check(): cpu1: DSR (80808411)
Debug: 358 222 xtensa.c:618 xtensa_core_status_check(): cpu1: DSR (80808411)
Debug: 359 222 xtensa_mcore.c:614 xtensa_mcore_poll(): esp32.cpu0: Target halted, pc=0x40000400, debug_reason=00000008, target_state_old=00000001, active=true
Debug: 360 222 xtensa_mcore.c:620 xtensa_mcore_poll(): esp32.cpu0: Halt reason=0x00000020, exc_cause=0, dsr=0x8000cc11
Info : 361 222 xtensa_mcore.c:624 xtensa_mcore_poll(): Target halted. CPU0: PC=0x40000400 (active)
Debug: 362 224 xtensa_mcore.c:614 xtensa_mcore_poll(): esp32.cpu1: Target halted, pc=0x40000400, debug_reason=00000008, target_state_old=00000001, active=false
Debug: 363 224 xtensa_mcore.c:620 xtensa_mcore_poll(): esp32.cpu1: Halt reason=0x00000020, exc_cause=0, dsr=0x80808411
Info : 364 224 xtensa_mcore.c:624 xtensa_mcore_poll(): Target halted. CPU1: PC=0x40000400 
Debug: 365 227 target.c:2571 target_write_u32(): address: 0x3ff5f064, value: 0x50d83aa1
Debug: 366 235 xtensa.c:618 xtensa_core_status_check(): cpu0: DSR (8000CC11)
Debug: 367 235 target.c:2571 target_write_u32(): address: 0x3ff5f048, value: 0x00000000
Debug: 368 241 xtensa.c:618 xtensa_core_status_check(): cpu0: DSR (8000CC11)
Debug: 369 241 target.c:2571 target_write_u32(): address: 0x3ff60064, value: 0x50d83aa1
Debug: 370 247 xtensa.c:618 xtensa_core_status_check(): cpu0: DSR (8000CC11)
Debug: 371 247 target.c:2571 target_write_u32(): address: 0x3ff60048, value: 0x00000000
Debug: 372 253 xtensa.c:618 xtensa_core_status_check(): cpu0: DSR (8000CC11)
Debug: 373 253 target.c:2571 target_write_u32(): address: 0x3ff480a4, value: 0x50d83aa1
Debug: 374 259 xtensa.c:618 xtensa_core_status_check(): cpu0: DSR (8000CC11)
Debug: 375 259 target.c:2571 target_write_u32(): address: 0x3ff4808c, value: 0x00000000
Debug: 376 265 xtensa.c:618 xtensa_core_status_check(): cpu0: DSR (8000CC11)
Debug: 377 265 target.c:1662 target_call_event_callbacks(): target event 0 (gdb-halt) for core esp32
Debug: 378 265 esp32.c:593 esp32_handle_target_event(): 0
Debug: 379 265 target.c:1662 target_call_event_callbacks(): target event 0 (gdb-halt) for core cpu0
Debug: 380 265 esp_xtensa.c:111 esp_xtensa_handle_target_event(): 0
Debug: 381 265 target.c:1662 target_call_event_callbacks(): target event 0 (gdb-halt) for core cpu1
Debug: 382 265 esp_xtensa.c:111 esp_xtensa_handle_target_event(): 0
Debug: 383 265 target.c:1662 target_call_event_callbacks(): target event 1 (halted) for core esp32
Debug: 384 265 esp32.c:593 esp32_handle_target_event(): 1
Debug: 385 265 esp32.c:498 esp32_is_app_cpu_enabled(): Read cores number
Debug: 386 269 xtensa.c:618 xtensa_core_status_check(): cpu0: DSR (8000CC11)
Debug: 387 269 esp32.c:506 esp32_is_app_cpu_enabled(): Read APP CPU ctrl reg 0x1
Debug: 388 269 esp32.c:508 esp32_is_app_cpu_enabled(): APP CPU enabled
Debug: 389 269 esp32.c:601 esp32_handle_target_event(): Detected 2 cores
Debug: 390 269 target.c:1662 target_call_event_callbacks(): target event 0 (gdb-halt) for core cpu0
Debug: 391 269 esp_xtensa.c:111 esp_xtensa_handle_target_event(): 0
Debug: 392 269 target.c:1662 target_call_event_callbacks(): target event 1 (halted) for core cpu0
Debug: 393 269 esp_xtensa.c:111 esp_xtensa_handle_target_event(): 1
Debug: 394 269 target.c:1662 target_call_event_callbacks(): target event 0 (gdb-halt) for core cpu1
Debug: 395 269 esp_xtensa.c:111 esp_xtensa_handle_target_event(): 0
Debug: 396 269 target.c:1662 target_call_event_callbacks(): target event 1 (halted) for core cpu1
Debug: 397 269 esp_xtensa.c:111 esp_xtensa_handle_target_event(): 1
Debug: 399 272 tcl.c:1222 handle_flash_init_command(): Initializing flash devices...
Debug: 400 272 command.c:355 register_command_handler(): registering 'flash'...
Debug: 401 272 command.c:355 register_command_handler(): registering 'flash'...
Debug: 402 272 command.c:355 register_command_handler(): registering 'flash'...
Debug: 403 272 command.c:355 register_command_handler(): registering 'flash'...
Debug: 404 272 command.c:355 register_command_handler(): registering 'flash'...
Debug: 405 272 command.c:355 register_command_handler(): registering 'flash'...
Debug: 406 272 command.c:355 register_command_handler(): registering 'flash'...
Debug: 407 272 command.c:355 register_command_handler(): registering 'flash'...
Debug: 408 272 command.c:355 register_command_handler(): registering 'flash'...
Debug: 409 272 command.c:355 register_command_handler(): registering 'flash'...
Debug: 410 272 command.c:355 register_command_handler(): registering 'flash'...
Debug: 411 272 command.c:355 register_command_handler(): registering 'flash'...
Debug: 412 272 command.c:355 register_command_handler(): registering 'flash'...
Debug: 413 272 command.c:355 register_command_handler(): registering 'flash'...
Debug: 414 272 command.c:143 script_debug(): command - nand nand init
Debug: 416 296 tcl.c:498 handle_nand_init_command(): Initializing NAND devices...
Debug: 417 296 command.c:143 script_debug(): command - pld pld init
Debug: 419 319 pld.c:206 handle_pld_init_command(): Initializing PLDs...
Debug: 420 319 gdb_server.c:3491 gdb_target_start(): starting gdb server for esp32 on 3333
Info : 421 319 server.c:311 add_service(): Listening on port 3333 for gdb connections
Debug: 422 319 command.c:143 script_debug(): command - reset reset init
Debug: 424 343 target.c:1680 target_call_reset_callbacks(): target reset 3 (init)
Debug: 425 343 command.c:143 script_debug(): command - target target names
Debug: 426 343 command.c:143 script_debug(): command - esp32 esp32 invoke-event reset-start
Debug: 427 343 command.c:143 script_debug(): command - transport transport select
Debug: 428 343 command.c:143 script_debug(): command - jtag jtag arp_init-reset
Debug: 429 343 core.c:1577 jtag_init_reset(): Initializing with hard TRST+SRST reset
Debug: 430 343 core.c:742 jtag_add_reset(): JTAG reset with TLR instead of TRST
Debug: 431 343 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 432 345 core.c:1463 jtag_init_inner(): Init JTAG chain
Debug: 433 345 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 434 348 core.c:1128 jtag_examine_chain(): DR scan interrogation for IDCODE/BYPASS
Debug: 435 348 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
Info : 436 353 core.c:1027 jtag_examine_chain_display(): JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : 437 353 core.c:1027 jtag_examine_chain_display(): JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Debug: 438 353 core.c:1259 jtag_validate_ircapture(): IR capture validation scan
Debug: 439 354 core.c:1317 jtag_validate_ircapture(): esp32.cpu0: IR capture 0x01
Debug: 440 354 core.c:1317 jtag_validate_ircapture(): esp32.cpu1: IR capture 0x01
Debug: 441 354 command.c:143 script_debug(): command - transport transport select
Debug: 442 354 command.c:143 script_debug(): command - esp32 esp32 cget -chain-position
Debug: 443 354 command.c:143 script_debug(): command - jtag jtag tapisenabled esp32.cpu0
Debug: 444 354 command.c:143 script_debug(): command - esp32 esp32 invoke-event examine-start
Debug: 445 354 command.c:143 script_debug(): command - esp32 esp32 arp_examine allow-defer
Debug: 446 354 xtensa.c:548 xtensa_examine(): xtensa_examine coreid=0
Debug: 447 360 xtensa.c:561 xtensa_examine(): OCD_ID = 0733bff2
Debug: 448 360 xtensa.c:548 xtensa_examine(): xtensa_examine coreid=1
Debug: 449 366 xtensa.c:561 xtensa_examine(): OCD_ID = 0733bff2
Debug: 450 366 command.c:143 script_debug(): command - esp32 esp32 invoke-event examine-end
Debug: 451 366 command.c:143 script_debug(): command - esp32 esp32 invoke-event reset-assert-pre
Debug: 452 366 command.c:143 script_debug(): command - transport transport select
Debug: 453 366 command.c:143 script_debug(): command - esp32 esp32 cget -chain-position
Debug: 454 366 command.c:143 script_debug(): command - jtag jtag tapisenabled esp32.cpu0
Debug: 455 366 command.c:143 script_debug(): command - esp32 esp32 arp_reset assert 1
Debug: 456 366 target.c:2036 target_free_all_working_areas_restore(): freeing all working areas
Debug: 457 366 target.c:2036 target_free_all_working_areas_restore(): freeing all working areas
Debug: 458 366 esp32.c:256 esp32_assert_reset(): esp32: begin
Debug: 459 366 esp32.c:287 esp32_soc_reset(): start
Debug: 460 366 esp32.c:375 esp32_soc_reset(): loading stub code into RTC RAM
Debug: 461 366 target.c:2336 target_read_buffer(): reading buffer of 212 byte at 0x50000000
Debug: 462 380 xtensa.c:618 xtensa_core_status_check(): cpu0: DSR (8000CC11)
Debug: 463 380 target.c:2274 target_write_buffer(): writing buffer of 212 byte at 0x50000000
Debug: 464 390 xtensa.c:618 xtensa_core_status_check(): cpu0: DSR (8000CC11)
Debug: 465 390 esp32.c:400 esp32_soc_reset(): resuming the target
Debug: 466 390 xtensa.c:1015 xtensa_resume(): cpu0:
Debug: 467 390 xtensa.c:944 xtensa_prepare_resume(): cpu0: current=0 address=0x50000004, handle_breakpoints=0, debug_execution=0)
Debug: 468 390 xtensa.c:413 xtensa_write_dirty_registers(): cpu0: start
Debug: 469 390 xtensa.c:427 xtensa_write_dirty_registers(): cpu0: Writing back reg pc val 50000004
Debug: 470 390 xtensa.c:488 xtensa_write_dirty_registers(): cpu0: Writing back reg a3 value 3FF00034, num =4
Debug: 471 397 xtensa.c:618 xtensa_core_status_check(): cpu0: DSR (8000CC11)
Debug: 472 397 xtensa.c:997 xtensa_do_resume(): cpu0: start
Debug: 473 402 xtensa.c:618 xtensa_core_status_check(): cpu0: DSR (80000000)
Debug: 474 402 target.c:1662 target_call_event_callbacks(): target event 2 (resumed) for core cpu0
Debug: 475 402 esp_xtensa.c:111 esp_xtensa_handle_target_event(): 2
Debug: 476 402 esp32.c:409 esp32_soc_reset(): resume done, waiting for the target to come alive
Debug: 478 505 esp32.c:427 esp32_soc_reset(): halting the target
Debug: 479 505 xtensa.c:899 xtensa_halt(): xtensa_halt, target: cpu0
Info : 480 513 xtensa.c:1544 xtensa_poll(): cpu0: Debug controller 0 was reset.
Info : 481 513 xtensa.c:1546 xtensa_poll(): cpu0: Core 0 was reset.
Debug: 482 519 xtensa.c:720 xtensa_fetch_all_regs(): cpu0: start
Debug: 483 540 xtensa.c:618 xtensa_core_status_check(): cpu0: DSR (80208411)
Debug: 484 573 xtensa.c:618 xtensa_core_status_check(): cpu0: DSR (80208411)
Debug: 485 573 xtensa.c:1588 xtensa_poll(): cpu0: Target halted, pc=0x500000CF, debug_reason=00000000, oldstate=00000001
Debug: 486 573 xtensa.c:1593 xtensa_poll(): cpu0: Halt reason=0x00000020, exc_cause=0, dsr=0x80208411
Info : 487 573 xtensa.c:1596 xtensa_poll(): cpu0: Target halted, PC=0x500000CF, debug_reason=00000000
Debug: 488 575 target.c:1662 target_call_event_callbacks(): target event 0 (gdb-halt) for core cpu0
Debug: 489 575 esp_xtensa.c:111 esp_xtensa_handle_target_event(): 0
Debug: 490 575 target.c:1662 target_call_event_callbacks(): target event 1 (halted) for core cpu0
Debug: 491 575 esp_xtensa.c:111 esp_xtensa_handle_target_event(): 1
Debug: 492 575 esp32.c:436 esp32_soc_reset(): restoring RTC_SLOW_MEM
Debug: 493 575 target.c:2274 target_write_buffer(): writing buffer of 212 byte at 0x50000000
Debug: 494 587 xtensa.c:618 xtensa_core_status_check(): cpu0: DSR (8000CC11)
Debug: 495 587 FreeRTOS.c:688 FreeRTOS_post_reset_cleanup(): FreeRTOS_post_reset_cleanup
Debug: 496 587 xtensa_mcore.c:34 xtensa_mcore_assert_reset(): esp32: begin
Debug: 497 587 xtensa.c:675 xtensa_assert_reset(): xtensa_assert_reset[cpu0] coreid=0, target_number=0, begin
Debug: 498 589 xtensa.c:675 xtensa_assert_reset(): xtensa_assert_reset[cpu1] coreid=1, target_number=0, begin
Debug: 499 593 command.c:143 script_debug(): command - esp32 esp32 invoke-event reset-assert-post
Debug: 500 593 command.c:143 script_debug(): command - esp32 esp32 invoke-event reset-deassert-pre
Debug: 501 593 command.c:143 script_debug(): command - transport transport select
Debug: 502 593 command.c:143 script_debug(): command - esp32 esp32 cget -chain-position
Debug: 503 593 command.c:143 script_debug(): command - jtag jtag tapisenabled esp32.cpu0
Debug: 504 593 command.c:143 script_debug(): command - esp32 esp32 arp_reset deassert 1
Debug: 505 593 target.c:2036 target_free_all_working_areas_restore(): freeing all working areas
Debug: 506 593 target.c:2036 target_free_all_working_areas_restore(): freeing all working areas
Debug: 507 597 xtensa.c:595 xtensa_smpbreak_set(): xtensa_smpbreak_set set smpbreak=30000, state=3
Debug: 508 601 xtensa.c:595 xtensa_smpbreak_set(): xtensa_smpbreak_set set smpbreak=30000, state=3
Debug: 509 601 xtensa.c:694 xtensa_deassert_reset(): xtensa_deassert_reset coreid=0 halt=1
Debug: 510 605 xtensa.c:694 xtensa_deassert_reset(): xtensa_deassert_reset coreid=1 halt=1
Debug: 511 609 command.c:143 script_debug(): command - esp32 esp32 invoke-event reset-deassert-post
Debug: 512 609 command.c:143 script_debug(): command - transport transport select
Debug: 513 609 command.c:143 script_debug(): command - esp32 esp32 cget -chain-position
Debug: 514 609 command.c:143 script_debug(): command - jtag jtag tapisenabled esp32.cpu0
Debug: 515 609 command.c:143 script_debug(): command - esp32 esp32 was_examined
Debug: 516 609 command.c:143 script_debug(): command - esp32 esp32 arp_waitstate halted 1000
Info : 517 617 xtensa_mcore.c:455 xtensa_mcore_poll(): esp32: Core 0 was reset.
Debug: 518 617 esp_xtensa.c:230 esp_xtensa_on_reset(): start
Info : 519 623 xtensa_mcore.c:451 xtensa_mcore_poll(): esp32: Debug controller 1 was reset.
Info : 520 623 xtensa_mcore.c:455 xtensa_mcore_poll(): esp32: Core 1 was reset.
Debug: 521 623 esp_xtensa.c:230 esp_xtensa_on_reset(): start
Debug: 522 631 xtensa.c:720 xtensa_fetch_all_regs(): cpu0: start
Debug: 523 650 xtensa.c:618 xtensa_core_status_check(): cpu0: DSR (8031CC11)
Debug: 524 683 xtensa.c:618 xtensa_core_status_check(): cpu0: DSR (8031CC11)
Debug: 525 683 xtensa.c:720 xtensa_fetch_all_regs(): cpu1: start
Debug: 526 705 xtensa.c:618 xtensa_core_status_check(): cpu1: DSR (80B08411)
Debug: 527 736 xtensa.c:618 xtensa_core_status_check(): cpu1: DSR (80B08411)
Debug: 528 736 xtensa_mcore.c:614 xtensa_mcore_poll(): esp32.cpu0: Target halted, pc=0x40000400, debug_reason=00000000, target_state_old=00000001, active=true
Debug: 529 736 xtensa_mcore.c:620 xtensa_mcore_poll(): esp32.cpu0: Halt reason=0x00000020, exc_cause=0, dsr=0x8031cc11
Info : 530 736 xtensa_mcore.c:624 xtensa_mcore_poll(): Target halted. CPU0: PC=0x40000400 (active)
Debug: 531 738 xtensa_mcore.c:614 xtensa_mcore_poll(): esp32.cpu1: Target halted, pc=0x40000400, debug_reason=00000000, target_state_old=00000001, active=false
Debug: 532 738 xtensa_mcore.c:620 xtensa_mcore_poll(): esp32.cpu1: Halt reason=0x00000020, exc_cause=0, dsr=0x80b08411
Info : 533 738 xtensa_mcore.c:624 xtensa_mcore_poll(): Target halted. CPU1: PC=0x40000400 
Debug: 534 742 target.c:2571 target_write_u32(): address: 0x3ff5f064, value: 0x50d83aa1
Debug: 535 750 xtensa.c:618 xtensa_core_status_check(): cpu0: DSR (8000CC11)
Debug: 536 750 target.c:2571 target_write_u32(): address: 0x3ff5f048, value: 0x00000000
Debug: 537 756 xtensa.c:618 xtensa_core_status_check(): cpu0: DSR (8000CC11)
Debug: 538 756 target.c:2571 target_write_u32(): address: 0x3ff60064, value: 0x50d83aa1
Debug: 539 762 xtensa.c:618 xtensa_core_status_check(): cpu0: DSR (8000CC11)
Debug: 540 762 target.c:2571 target_write_u32(): address: 0x3ff60048, value: 0x00000000
Debug: 541 767 xtensa.c:618 xtensa_core_status_check(): cpu0: DSR (8000CC11)
Debug: 542 767 target.c:2571 target_write_u32(): address: 0x3ff480a4, value: 0x50d83aa1
Debug: 543 773 xtensa.c:618 xtensa_core_status_check(): cpu0: DSR (8000CC11)
Debug: 544 773 target.c:2571 target_write_u32(): address: 0x3ff4808c, value: 0x00000000
Debug: 545 779 xtensa.c:618 xtensa_core_status_check(): cpu0: DSR (8000CC11)
Debug: 546 779 target.c:1662 target_call_event_callbacks(): target event 0 (gdb-halt) for core esp32
Debug: 547 779 esp32.c:593 esp32_handle_target_event(): 0
Debug: 548 779 target.c:1662 target_call_event_callbacks(): target event 0 (gdb-halt) for core cpu0
Debug: 549 779 esp_xtensa.c:111 esp_xtensa_handle_target_event(): 0
Debug: 550 779 target.c:1662 target_call_event_callbacks(): target event 0 (gdb-halt) for core cpu1
Debug: 551 779 esp_xtensa.c:111 esp_xtensa_handle_target_event(): 0
Debug: 552 779 target.c:1662 target_call_event_callbacks(): target event 1 (halted) for core esp32
Debug: 553 779 esp32.c:593 esp32_handle_target_event(): 1
Debug: 554 779 esp32.c:498 esp32_is_app_cpu_enabled(): Read cores number
Debug: 555 783 xtensa.c:618 xtensa_core_status_check(): cpu0: DSR (8000CC11)
Debug: 556 783 esp32.c:506 esp32_is_app_cpu_enabled(): Read APP CPU ctrl reg 0x1
Debug: 557 783 esp32.c:508 esp32_is_app_cpu_enabled(): APP CPU enabled
Debug: 558 783 esp32.c:601 esp32_handle_target_event(): Detected 2 cores
Debug: 559 783 target.c:1662 target_call_event_callbacks(): target event 0 (gdb-halt) for core cpu0
Debug: 560 783 esp_xtensa.c:111 esp_xtensa_handle_target_event(): 0
Debug: 561 783 target.c:1662 target_call_event_callbacks(): target event 1 (halted) for core cpu0
Debug: 562 783 esp_xtensa.c:111 esp_xtensa_handle_target_event(): 1
Debug: 563 783 target.c:1662 target_call_event_callbacks(): target event 0 (gdb-halt) for core cpu1
Debug: 564 783 esp_xtensa.c:111 esp_xtensa_handle_target_event(): 0
Debug: 565 783 target.c:1662 target_call_event_callbacks(): target event 1 (halted) for core cpu1
Debug: 566 783 esp_xtensa.c:111 esp_xtensa_handle_target_event(): 1
Debug: 567 787 command.c:143 script_debug(): command - esp32 esp32 curstate
Debug: 568 787 command.c:143 script_debug(): command - transport transport select
Debug: 569 787 command.c:143 script_debug(): command - esp32 esp32 cget -chain-position
Debug: 570 787 command.c:143 script_debug(): command - jtag jtag tapisenabled esp32.cpu0
Debug: 571 787 command.c:143 script_debug(): command - esp32 esp32 was_examined
Debug: 572 787 command.c:143 script_debug(): command - esp32 esp32 arp_waitstate halted 5000
Debug: 573 791 xtensa_mcore.c:442 xtensa_mcore_poll(): xtensa_mcore_poll: core_poweron_mask=3
Debug: 574 804 xtensa_mcore.c:470 xtensa_mcore_poll(): xtensa_mcore_poll: Core 1 came online, setting up DCR
Debug: 575 806 xtensa.c:595 xtensa_smpbreak_set(): xtensa_smpbreak_set set smpbreak=30000, state=2
Debug: 576 814 command.c:143 script_debug(): command - esp32 esp32 invoke-event reset-init
Debug: 577 814 command.c:143 script_debug(): command - esp32 esp32 invoke-event reset-end
Debug: 578 837 command.c:143 script_debug(): command - echo echo ** Programming Started **
User : 580 860 command.c:770 jim_echo(): ** Programming Started **
Debug: 581 860 command.c:143 script_debug(): command - flash flash write_image erase build/partitions_singleapp.bin 0x10000
Error: 583 883 fileio.c:90 fileio_open_local(): couldn't open build/partitions_singleapp.bin
Debug: 584 883 command.c:630 run_command(): Command 'flash write_image' failed with error code -1202
User : 585 884 command.c:695 command_run_line(): embedded:startup.tcl:449: Error: ** Programming Failed **
in procedure 'program_esp' 
in procedure 'program_error' called at file "/home/bitcraze/.espressif/tools/openocd-esp32/v0.10.0-esp32-20200709/openocd-esp32/bin/../share/openocd/scripts/target/esp_common.cfg", line 106
at file "embedded:startup.tcl", line 449
Debug: 586 884 esp_xtensa.c:213 esp_xtensa_target_deinit(): start
Debug: 587 884 xtensa.c:2157 xtensa_deinit(): start
Debug: 588 885 esp_xtensa.c:213 esp_xtensa_target_deinit(): start
Debug: 589 885 xtensa.c:2157 xtensa_deinit(): start
Debug: 590 890 target.c:2036 target_free_all_working_areas_restore(): freeing all working areas
gerekon commented 3 years ago

Hi @RavenLite . According to the log

Error: 583 883 fileio.c:90 fileio_open_local(): couldn't open build/partitions_singleapp.bin

Could you ensure that relative path build/partitions_singleapp.bin is valid? Also you can try with absolute path

RavenLite commented 3 years ago

Yes, it is! Thanks!