$ bin/openocd -s share/openocd/scripts -f interface/ftdi/esp32_devkitj_v1.cfg -f board/esp-wroom-32.cfg Open On-Chip Debugger 0.10.0-dev-ga859564 (2017-07-24-16:18) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html none separate adapter speed: 20000 kHz force hard breakpoints Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi_tdo_sample_edge falling" Info : clock speed 20000 kHz Error: JTAG scan chain interrogation failed: all ones Error: Check JTAG interface, timings, target power, etc. Error: Trying to use configured scan chain anyway... Error: esp32.cpu0: IR capture error; saw 0x1f not 0x01 Warn : Bypassing JTAG setup events due to errors Info : esp32: Debug controller was reset (pwrstat=0xFF, after clear 0xFF). Info : esp32: Core was reset (pwrstat=0xFF, after clear 0xFF). Error: cpu0: esp32_fetch_all_regs (line 163): DSR (FFFFFFFF) indicates target still busy! Error: cpu0: esp32_fetch_all_regs (line 163): DSR (FFFFFFFF) indicates DIR instruction generated an exception! Error: cpu0: esp32_fetch_all_regs (line 163): DSR (FFFFFFFF) indicates DIR instruction generated an overrun! Error: cpu0: esp32_fetch_all_regs (line 190): DSR (FFFFFFFF) indicates target still busy! Error: cpu0: esp32_fetch_all_regs (line 190): DSR (FFFFFFFF) indicates DIR instruction generated an exception! Error: cpu0: esp32_fetch_all_regs (line 190): DSR (FFFFFFFF) indicates DIR instruction generated an overrun! Error: Exception reading pc! Info : Target halted. PRO_CPU: PC=0x00000000 APP_CPU: PC=0x00000000 (active) Error: cpu0: xtensa_write_memory (line 696): DSR (FFFFFFFF) indicates target still busy! Error: cpu0: xtensa_write_memory (line 696): DSR (FFFFFFFF) indicates DIR instruction generated an exception! Error: cpu0: xtensa_write_memory (line 696): DSR (FFFFFFFF) indicates DIR instruction generated an overrun! Warn : esp32: Failed writing 4 bytes at address 0x3FF5F064, data - a1, 3a, d8, 50, a1, 3a, d8, 50 embedded:startup.tcl:21: Error: in procedure 'init' in procedure 'ocd_bouncer' in procedure 'flash' in procedure 'ocd_bouncer' in procedure 'esp_core_halt' in procedure 'esp32' called at file "share/openocd/scripts/target/esp32.cfg", line 44 in procedure 'ocd_bouncer' at file "embedded:startup.tcl", line 21 Info : accepting 'gdb' connection on tcp/3333 Info : Use core1 of target 'esp32' Error: cpu0: xtensa_read_memory (line 588): DSR (FFFFFFFF) indicates target still busy! Error: cpu0: xtensa_read_memory (line 588): DSR (FFFFFFFF) indicates DIR instruction generated an exception! Error: cpu0: xtensa_read_memory (line 588): DSR (FFFFFFFF) indicates DIR instruction generated an overrun! Warn : cpu0: Failed reading 7416 bytes at address 0x40090000 Error: no working area available, can't alloc space for stub code! Error: Failed to load stub (-308)! Error: Algorithm run faied (-308)! Info : Auto-detected flash size 0 KB Error: Failed to probe flash, size 0 KB Info : Set current thread to 0x00000000, old= 0x00000000 Error: cpu0: xtensa_read_memory (line 588): DSR (FFFFFFFF) indicates target still busy! Error: cpu0: xtensa_read_memory (line 588): DSR (FFFFFFFF) indicates DIR instruction generated an exception! Error: cpu0: xtensa_read_memory (line 588): DSR (FFFFFFFF) indicates DIR instruction generated an overrun! Warn : cpu0: Failed reading 2 bytes at address 0x400FB7F8 Error: cpu0: xtensa_read_memory (line 588): DSR (FFFFFFFF) indicates target still busy! Error: cpu0: xtensa_read_memory (line 588): DSR (FFFFFFFF) indicates DIR instruction generated an exception! Error: cpu0: xtensa_read_memory (line 588): DSR (FFFFFFFF) indicates DIR instruction generated an overrun! Warn : cpu0: Failed reading 4 bytes at address 0x3FFB76AC Error: Could not read FreeRTOS thread count from target Error: JTAG scan chain interrogation failed: all ones Error: Check JTAG interface, timings, target power, etc. Error: Trying to use configured scan chain anyway... Error: esp32.cpu0: IR capture error; saw 0x1f not 0x01 Warn : Bypassing JTAG setup events due to errors Error: cpu0: xtensa_read_memory (line 588): DSR (FFFFFFFF) indicates target still busy! Error: cpu0: xtensa_read_memory (line 588): DSR (FFFFFFFF) indicates DIR instruction generated an exception! Error: cpu0: xtensa_read_memory (line 588): DSR (FFFFFFFF) indicates DIR instruction generated an overrun! Warn : cpu0: Failed reading 76 bytes at address 0x50000000 Error: esp32_soc_reset 549 err=-4 in procedure 'reset' in procedure 'ocd_bouncer' Error: cpu0: xtensa_read_memory (line 588): DSR (FFFFFFFF) indicates target still busy! Error: cpu0: xtensa_read_memory (line 588): DSR (FFFFFFFF) indicates DIR instruction generated an exception! Error: cpu0: xtensa_read_memory (line 588): DSR (FFFFFFFF) indicates DIR instruction generated an overrun! Warn : cpu0: Failed reading 2 bytes at address 0x400D6B70 Error: cpu0: esp32_write_dirty_registers (line 311): DSR (FFFFFFFF) indicates target still busy! Error: cpu0: esp32_write_dirty_registers (line 311): DSR (FFFFFFFF) indicates DIR instruction generated an exception! Error: cpu0: esp32_write_dirty_registers (line 311): DSR (FFFFFFFF) indicates DIR instruction generated an overrun! Error: cpu1: esp32_write_dirty_registers (line 311): DSR (FFFFFFFF) indicates target still busy! Error: cpu1: esp32_write_dirty_registers (line 311): DSR (FFFFFFFF) indicates DIR instruction generated an exception! Error: cpu1: esp32_write_dirty_registers (line 311): DSR (FFFFFFFF) indicates DIR instruction generated an overrun! Error: cpu0: xtensa_resume (line 431): DSR (FFFFFFFF) indicates target still busy! Error: cpu0: xtensa_resume (line 431): DSR (FFFFFFFF) indicates DIR instruction generated an exception! Error: cpu0: xtensa_resume (line 431): DSR (FFFFFFFF) indicates DIR instruction generated an overrun! Error: cpu1: xtensa_resume (line 431): DSR (FFFFFFFF) indicates target still busy! Error: cpu1: xtensa_resume (line 431): DSR (FFFFFFFF) indicates DIR instruction generated an exception! Error: cpu1: xtensa_resume (line 431): DSR (FFFFFFFF) indicates DIR instruction generated an overrun! Error: cpu0: esp32_fetch_all_regs (line 163): DSR (FFFFFFFF) indicates target still busy! Error: cpu0: esp32_fetch_all_regs (line 163): DSR (FFFFFFFF) indicates DIR instruction generated an exception! Error: cpu0: esp32_fetch_all_regs (line 163): DSR (FFFFFFFF) indicates DIR instruction generated an overrun! Error: cpu0: esp32_fetch_all_regs (line 190): DSR (FFFFFFFF) indicates target still busy! Error: cpu0: esp32_fetch_all_regs (line 190): DSR (FFFFFFFF) indicates DIR instruction generated an exception! Error: cpu0: esp32_fetch_all_regs (line 190): DSR (FFFFFFFF) indicates DIR instruction generated an overrun! Error: Exception reading pc! Info : Target halted. PRO_CPU: PC=0x00000000 APP_CPU: PC=0x00000000 (active) Error: cpu0: xtensa_read_memory (line 588): DSR (FFFFFFFF) indicates target still busy! Error: cpu0: xtensa_read_memory (line 588): DSR (FFFFFFFF) indicates DIR instruction generated an exception! Error: cpu0: xtensa_read_memory (line 588): DSR (FFFFFFFF) indicates DIR instruction generated an overrun! Warn : cpu0: Failed reading 4 bytes at address 0x3FFB76AC Error: Could not read FreeRTOS thread count from target Error: cpu0: xtensa_write_memory (line 696): DSR (FFFFFFFF) indicates target still busy! Error: cpu0: xtensa_write_memory (line 696): DSR (FFFFFFFF) indicates DIR instruction generated an exception! Error: cpu0: xtensa_write_memory (line 696): DSR (FFFFFFFF) indicates DIR instruction generated an overrun! Warn : esp32: Failed writing 4 bytes at address 0x3FF5F064, data - a1, 3a, d8, 50, a1, 3a, d8, 50 embedded:startup.tcl:21: Error: in procedure 'esp_core_halt' in procedure 'esp32' called at file "share/openocd/scripts/target/esp32.cfg", line 44 in procedure 'ocd_bouncer' at file "embedded:startup.tcl", line 21 Error: cpu0: xtensa_read_memory (line 588): DSR (FFFFFFFF) indicates target still busy! Error: cpu0: xtensa_read_memory (line 588): DSR (FFFFFFFF) indicates DIR instruction generated an exception! Error: cpu0: xtensa_read_memory (line 588): DSR (FFFFFFFF) indicates DIR instruction generated an overrun! Warn : cpu0: Failed reading 1 bytes at address 0x3FF56000 Info : esp32: Debug controller was reset (pwrstat=0xE5, after clear 0x5F). Info : esp32: Debug controller was reset (pwrstat=0xFF, after clear 0xFF). Info : esp32: Core was reset (pwrstat=0xFF, after clear 0xFF). Error: cpu0: esp32_fetch_all_regs (line 163): DSR (FFFFFFFF) indicates target still busy! Error: cpu0: esp32_fetch_all_regs (line 163): DSR (FFFFFFFF) indicates DIR instruction generated an exception! Error: cpu0: esp32_fetch_all_regs (line 163): DSR (FFFFFFFF) indicates DIR instruction generated an overrun! Error: cpu0: esp32_fetch_all_regs (line 190): DSR (FFFFFFFF) indicates target still busy! Error: cpu0: esp32_fetch_all_regs (line 190): DSR (FFFFFFFF) indicates DIR instruction generated an exception! Error: cpu0: esp32_fetch_all_regs (line 190): DSR (FFFFFFFF) indicates DIR instruction generated an overrun! Error: Exception reading pc! Info : Target halted. PRO_CPU: PC=0x00000000 APP_CPU: PC=0x00000000 (active) Error: cpu0: xtensa_write_memory (line 696): DSR (FFFFFFFF) indicates target still busy! Error: cpu0: xtensa_write_memory (line 696): DSR (FFFFFFFF) indicates DIR instruction generated an exception! Error: cpu0: xtensa_write_memory (line 696): DSR (FFFFFFFF) indicates DIR instruction generated an overrun! Warn : esp32: Failed writing 4 bytes at address 0x3FF5F064, data - a1, 3a, d8, 50, a1, 3a, d8, 50 embedded:startup.tcl:21: Error: in procedure 'esp_core_halt' in procedure 'esp32' called at file "share/openocd/scripts/target/esp32.cfg", line 44 in procedure 'ocd_bouncer' at file "embedded:startup.tcl", line 21 esp32: target state: halted Error: cpu0: esp32_write_dirty_registers (line 311): DSR (FFFFFFFF) indicates target still busy! Error: cpu0: esp32_write_dirty_registers (line 311): DSR (FFFFFFFF) indicates DIR instruction generated an exception! Error: cpu0: esp32_write_dirty_registers (line 311): DSR (FFFFFFFF) indicates DIR instruction generated an overrun! Error: cpu1: esp32_write_dirty_registers (line 311): DSR (FFFFFFFF) indicates target still busy! Error: cpu1: esp32_write_dirty_registers (line 311): DSR (FFFFFFFF) indicates DIR instruction generated an exception! Error: cpu1: esp32_write_dirty_registers (line 311): DSR (FFFFFFFF) indicates DIR instruction generated an overrun! Error: cpu0: xtensa_resume (line 431): DSR (FFFFFFFF) indicates target still busy! Error: cpu0: xtensa_resume (line 431): DSR (FFFFFFFF) indicates DIR instruction generated an exception! Error: cpu0: xtensa_resume (line 431): DSR (FFFFFFFF) indicates DIR instruction generated an overrun! Error: cpu1: xtensa_resume (line 431): DSR (FFFFFFFF) indicates target still busy! Error: cpu1: xtensa_resume (line 431): DSR (FFFFFFFF) indicates DIR instruction generated an exception! Error: cpu1: xtensa_resume (line 431): DSR (FFFFFFFF) indicates DIR instruction generated an overrun! Error: cpu0: esp32_fetch_all_regs (line 163): DSR (FFFFFFFF) indicates target still busy! Error: cpu0: esp32_fetch_all_regs (line 163): DSR (FFFFFFFF) indicates DIR instruction generated an exception! Error: cpu0: esp32_fetch_all_regs (line 163): DSR (FFFFFFFF) indicates DIR instruction generated an overrun! Error: cpu0: esp32_fetch_all_regs (line 190): DSR (FFFFFFFF) indicates target still busy! Error: cpu0: esp32_fetch_all_regs (line 190): DSR (FFFFFFFF) indicates DIR instruction generated an exception! Error: cpu0: esp32_fetch_all_regs (line 190): DSR (FFFFFFFF) indicates DIR instruction generated an overrun! Error: Exception reading pc! Info : Target halted. PRO_CPU: PC=0x00000000 APP_CPU: PC=0x00000000 (active) Error: cpu0: xtensa_read_memory (line 588): DSR (FFFFFFFF) indicates target still busy! Error: cpu0: xtensa_read_memory (line 588): DSR (FFFFFFFF) indicates DIR instruction generated an exception! Error: cpu0: xtensa_read_memory (line 588): DSR (FFFFFFFF) indicates DIR instruction generated an overrun! Warn : cpu0: Failed reading 4 bytes at address 0x3FFB76AC Error: Could not read FreeRTOS thread count from target Error: cpu0: xtensa_write_memory (line 696): DSR (FFFFFFFF) indicates target still busy! Error: cpu0: xtensa_write_memory (line 696): DSR (FFFFFFFF) indicates DIR instruction generated an exception! Error: cpu0: xtensa_write_memory (line 696): DSR (FFFFFFFF) indicates DIR instruction generated an overrun! Warn : esp32: Failed writing 4 bytes at address 0x3FF5F064, data - a1, 3a, d8, 50, a1, 3a, d8, 50 embedded:startup.tcl:21: Error: in procedure 'esp_core_halt' in procedure 'esp32' called at file "share/openocd/scripts/target/esp32.cfg", line 44 in procedure 'ocd_bouncer' at file "embedded:startup.tcl", line 21 Error: cpu0: xtensa_read_memory (line 588): DSR (FFFFFFFF) indicates target still busy! Error: cpu0: xtensa_read_memory (line 588): DSR (FFFFFFFF) indicates DIR instruction generated an exception! Error: cpu0: xtensa_read_memory (line 588): DSR (FFFFFFFF) indicates DIR instruction generated an overrun! Warn : cpu0: Failed reading 1 bytes at address 0x3FF56000 Info : dropped 'gdb' connection