I am trying to debug hello_world example using ESP-IDF GDB OpenOCD Debugging in Eclipse 2020-12 with ESP-IDF 4.2V with the default settings. However, the debug does not start in any way and I am always getting the same debug log as shown below. Even when modifying config option to suit the board I am using (ESP32-Ethernet-Kit V1.1) to be:
Code: Select all
-s ${openocd_path}/share/openocd/scripts -f interface/ftdi/esp32_devkitj_v1.cfg -f board/esp32-ethernet-kit-3.3v.cfg
Is there anything I am missing here? any help?
Code: Select all
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
adapter speed: 20000 kHz
Warn : Interface already configured, ignoring
Info : Configured 2 cores
Started by GNU MCU Eclipse
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi_tdo_sample_edge falling"
Info : clock speed 20000 kHz
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : Target halted. CPU0: PC=0x40000400 (active)
Info : Target halted. CPU1: PC=0x40000400
Info : Listening on port 3333 for gdb connections
Info : accepting 'gdb' connection on tcp/3333
Error: No symbols for FreeRTOS
Info : cpu0: Target halted, PC=0x40091856, debug_reason=00000001
Info : Flash mapping 0: 0x10020 -> 0x3f400020, 22 KB
Info : Flash mapping 1: 0x20018 -> 0x400d0018, 75 KB
Info : cpu0: Target halted, PC=0x40091856, debug_reason=00000001
Info : Auto-detected flash bank 'esp32.flash' size 4096 KB
Info : Using flash bank 'esp32.flash' size 4096 KB
Info : cpu0: Target halted, PC=0x40091856, debug_reason=00000001
Info : Flash mapping 0: 0x10020 -> 0x3f400020, 22 KB
Info : Flash mapping 1: 0x20018 -> 0x400d0018, 75 KB
Info : Using flash bank 'esp32.irom' size 76 KB
Info : cpu0: Target halted, PC=0x40091856, debug_reason=00000001
Info : Flash mapping 0: 0x10020 -> 0x3f400020, 22 KB
Info : Flash mapping 1: 0x20018 -> 0x400d0018, 75 KB
Info : Using flash bank 'esp32.drom' size 24 KB
undefined debug reason 8 - target needs reset
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : cpu0: Debug controller 0 was reset.
Info : cpu0: Core 0 was reset.
Info : cpu0: Target halted, PC=0x500000CF, debug_reason=00000000
Info : esp32: Core 0 was reset.
Info : esp32: Debug controller 1 was reset.
Info : esp32: Core 1 was reset.
Info : Target halted. CPU0: PC=0x40000400 (active)
Info : Target halted. CPU1: PC=0x40000400
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : cpu0: Debug controller 0 was reset.
Info : cpu0: Core 0 was reset.
Info : cpu0: Target halted, PC=0x500000CF, debug_reason=00000000
Info : esp32: Core 0 was reset.
Info : esp32: Debug controller 1 was reset.
Info : esp32: Core 1 was reset.
Info : Target halted. CPU0: PC=0x40000400 (active)
Info : Target halted. CPU1: PC=0x40000400
invalid command name "arm"
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : cpu0: Debug controller 0 was reset.
Info : cpu0: Core 0 was reset.
Info : cpu0: Target halted, PC=0x500000CF, debug_reason=00000000
Info : esp32: Core 0 was reset.
Info : esp32: Debug controller 1 was reset.
Info : esp32: Core 1 was reset.
Info : Target halted. CPU0: PC=0x40000400 (active)
Info : Target halted. CPU1: PC=0x40000400
===== Xtensa registers
(0) pc (/32): 0x40000400
(1) ar0 (/32): 0x00000000
(2) ar1 (/32): 0x00000000
(3) ar2 (/32): 0x00000000
(4) ar3 (/32): 0x00000000
(5) ar4 (/32): 0x00000000
(6) ar5 (/32): 0x00000000
(7) ar6 (/32): 0x00000000
(8) ar7 (/32): 0x00000000
(9) ar8 (/32): 0x00000000
(10) ar9 (/32): 0x00000000
(11) ar10 (/32): 0x00000000
(12) ar11 (/32): 0x00000000
(13) ar12 (/32): 0x00000000
(14) ar13 (/32): 0x00000000
(15) ar14 (/32): 0x00000000
(16) ar15 (/32): 0x00000000
(17) ar16 (/32): 0x00000000
(18) ar17 (/32): 0x00000000
(19) ar18 (/32): 0x00000000
(20) ar19 (/32): 0x00000000
(21) ar20 (/32): 0x00000000
(22) ar21 (/32): 0x00000000
(23) ar22 (/32): 0x00000000
(24) ar23 (/32): 0x00000000
(25) ar24 (/32): 0x00000000
(26) ar25 (/32): 0x00000000
(27) ar26 (/32): 0x00000000
(28) ar27 (/32): 0x00000000
(29) ar28 (/32): 0x00000000
(30) ar29 (/32): 0x00000000
(31) ar30 (/32): 0x00000000
(32) ar31 (/32): 0x00000000
(33) ar32 (/32): 0x00000000
(34) ar33 (/32): 0x00000000
(35) ar34 (/32): 0x00000000
(36) ar35 (/32): 0x00000000
(37) ar36 (/32): 0x00000000
(38) ar37 (/32): 0x00000000
(39) ar38 (/32): 0x00000000
(40) ar39 (/32): 0x00000000
(41) ar40 (/32): 0x00000000
(42) ar41 (/32): 0x00000000
(43) ar42 (/32): 0x00000000
(44) ar43 (/32): 0x00000000
(45) ar44 (/32): 0x00000000
(46) ar45 (/32): 0x00000000
(47) ar46 (/32): 0x00000000
(48) ar47 (/32): 0x00000000
(49) ar48 (/32): 0x00000000
(50) ar49 (/32): 0x00000000
(51) ar50 (/32): 0x00000000
(52) ar51 (/32): 0x00000000
(53) ar52 (/32): 0x00000000
(54) ar53 (/32): 0x00000000
(55) ar54 (/32): 0x00000000
(56) ar55 (/32): 0x00000000
(57) ar56 (/32): 0x00000000
(58) ar57 (/32): 0x00000000
(59) ar58 (/32): 0x00000000
(60) ar59 (/32): 0x00000000
(61) ar60 (/32): 0x00000000
(62) ar61 (/32): 0x00000000
(63) ar62 (/32): 0x00000000
(64) ar63 (/32): 0x00000000
(65) lbeg (/32): 0x00000000
(66) lend (/32): 0x00000000
(67) lcount (/32): 0x00000000
(68) sar (/32): 0x00000000
(69) windowbase (/32): 0x00000000
(70) windowstart (/32): 0x00000001
(71) configid0 (/32): 0x40000400
(72) configid1 (/32): 0x1CC5FE96
(73) ps (/32): 0x0000001F
(74) threadptr (/32): 0x00000000
(75) br (/32): 0x00000000
(76) scompare1 (/32): 0x00000000
(77) acclo (/32): 0x00000000
(78) acchi (/32): 0x00000000
(79) m0 (/32): 0x00000000
(80) m1 (/32): 0x00000000
(81) m2 (/32): 0x00000000
(82) m3 (/32): 0x00000000
(83) expstate (/32): 0x00000000
(84) f64r_lo (/32): 0x00000000
(85) f64r_hi (/32): 0x00000000
(86) f64s (/32): 0x00000000
(87) f0 (/32): 0x00000000
(88) f1 (/32): 0x00000000
(89) f2 (/32): 0x00000000
(90) f3 (/32): 0x00000000
(91) f4 (/32): 0x00000000
(92) f5 (/32): 0x00000000
(93) f6 (/32): 0x00000000
(94) f7 (/32): 0x00000000
(95) f8 (/32): 0x00000000
(96) f9 (/32): 0x00000000
(97) f10 (/32): 0x00000000
(98) f11 (/32): 0x00000000
(99) f12 (/32): 0x00000000
(100) f13 (/32): 0x00000000
(101) f14 (/32): 0x00000000
(102) f15 (/32): 0x00000000
(105) mmid (/32)
(106) ibreakenable (/32): 0x00000000
(107) memctl (/32): 0x00000000
(108) atomctl (/32): 0x00000028
(109) ddr (/32)
(110) ibreaka0 (/32): 0x00000000
(111) ibreaka1 (/32): 0x00000000
(112) dbreaka0 (/32): 0x00000000
(113) dbreaka1 (/32): 0x00000000
(114) dbreakc0 (/32): 0x00000000
(115) dbreakc1 (/32): 0x00000000
(116) epc1 (/32): 0x00000000
(117) epc2 (/32): 0x00000000
(118) epc3 (/32): 0x00000000
(119) epc4 (/32): 0x00000000
(120) epc5 (/32): 0x00000000
(121) epc6 (/32): 0x40000400
(122) epc7 (/32): 0x00000000
(123) depc (/32): 0x00000000
(124) eps2 (/32): 0x00000000
(125) eps3 (/32): 0x00000000
(126) eps4 (/32): 0x00000000
(127) eps5 (/32): 0x00000000
(128) eps6 (/32): 0x0000001F
(129) eps7 (/32): 0x00000000
(130) excsave1 (/32): 0x00000000
(131) excsave2 (/32): 0x00000000
(132) excsave3 (/32): 0x00000000
(133) excsave4 (/32): 0x00000000
(134) excsave5 (/32): 0x00000000
(135) excsave6 (/32): 0x00000000
(136) excsave7 (/32): 0x00000000
(137) cpenable (/32): 0x000000FF
(138) interrupt (/32): 0x00018040
(139) intset (/32)
(140) intclear (/32)
(141) intenable (/32): 0x00000000
(143) exccause (/32): 0x00000000
(144) debugcause (/32): 0x00000020
(145) ccount (/32): 0x00000004
(147) icount (/32): 0x00000000
(148) icountlevel (/32): 0x00000000
(149) excvaddr (/32): 0x00000000
(150) ccompare0 (/32): 0x00000000
(151) ccompare1 (/32): 0x00000000
(152) ccompare2 (/32): 0x00000000
(153) misc0 (/32): 0x00000000
(154) misc1 (/32): 0x00000000
(155) misc2 (/32): 0x00000000
(156) misc3 (/32): 0x00000000
(168) a0 (/32): 0x00000000
(169) a1 (/32): 0x00000000
(170) a2 (/32): 0x00000000
(171) a3 (/32): 0x00000000 (dirty)
(172) a4 (/32): 0x00000000
(173) a5 (/32): 0x00000000
(174) a6 (/32): 0x00000000
(175) a7 (/32): 0x00000000
(176) a8 (/32): 0x00000000
(177) a9 (/32): 0x00000000
(178) a10 (/32): 0x00000000
(179) a11 (/32): 0x00000000
(180) a12 (/32): 0x00000000
(181) a13 (/32): 0x00000000
(182) a14 (/32): 0x00000000
(183) a15 (/32): 0x00000000
Error: cpu0: Failed to write breakpoint instruction (-4)!
Error: cpu0: Failed to add SW breakpoint!
Error: can't add breakpoint: unknown reason