OpenOCD+ESP8266

Sysprogs forums Forums Other tools & products OpenOCD+ESP8266

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #25653
    faten
    Participant

    Hi,
    I would like to debug ESP8266 firmware running on NodeMCU board using JTAG (type FT2232H Mini Module).
    To get started, I followed this repository
    My minimodule.cfg  looks like this:
    interface ftdi
    ftdi_device_desc "FT2232H MiniModule"
    ftdi_vid_pid 0x0403 0x6010
    ftdi_layout_init 0x0008 0x000b
    ftdi_layout_signal nSRST -data 0x0020
    My esp2866.cfg is taken from this link .
    In the terminal, I type: Sudo openocd -f interface/ftdi/minimodule.cfg -f target/esp2866.cfg , I got this error:
    Open On-Chip Debugger  v0.10.0-esp32-20190708-12-g06051dbf (2019-08-06-10:44)
    Licensed under GNU GPL v2
    For bug reports, read http://openocd.org/doc/doxygen/bugs.html
    adapter speed: 16000 kHz
    none separate
    Warn : Transport "jtag" was already selected
    srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst
    adapter speed: 16000 kHz
    embedded:startup.tcl:24: Error: Unknown target type xtensa, try one of arm7tdmi, arm9tdmi, arm920t, arm720t, arm966e, arm946e, arm926ejs, fa526, feroceon, dragonite, xscale, cortex_m, cortex_a, cortex_r4, arm11, ls1_sap, mips_m4k, avr, dsp563xx, dsp5680xx, testee, avr32_ap7k, hla_target, nds32_v2, nds32_v3, nds32_v3m, esp32, esp32_s2, or1k, quark_x10xx, quark_d20xx, stm8, riscv, mem_ap, esirisc,  or aarch64
    in procedure 'script'
    at file "embedded:startup.tcl", line 63
    in procedure 'target' called at file "target/esp8266.cfg", line 12
    in procedure 'ocd_bouncer'
    at file "embedded:startup.tcl", line 24
    How could I fix the problem?
    Has anyone had any success with this version of openocd+ESP8266 or the one from sysprogs?
    Thank you in advance.

    • This topic was modified 5 years, 3 months ago by faten.
    • This topic was modified 5 years, 3 months ago by faten.
    • This topic was modified 5 years, 3 months ago by faten. Reason: Reformatting
    • This topic was modified 5 years, 3 months ago by faten. Reason: Reformatting
    • This topic was modified 5 years, 3 months ago by faten. Reason: Reformatting
    • This topic was modified 5 years, 3 months ago by faten. Reason: Reformatting
    #25701
    faten
    Participant

    I fix the problem by building OpenOCD packages and resolving some bugs while running the following sequence of commands
    ./bootstrap
    ./configure
    make
    sudo make install

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.