Setting Up Open OCD on Mac - Unknown target type ESP108

tedwood
Posts: 11
Joined: Thu Mar 16, 2017 2:02 pm

Setting Up Open OCD on Mac - Unknown target type ESP108

Postby tedwood » Thu Apr 13, 2017 11:12 am

I'm struggling to get OpenOCD running on OSX.
I've copied and edited esp32.cfg as described here:
https://github.com/espressif/esp-idf/bl ... penocd.rst

When I run it I get:
openocd -s ./tcl -f esp32.cfg
Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
adapter speed: 200 kHz
embedded:startup.tcl:21: Error: Unknown target type esp108, 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, or1k, quark_x10xx, or quark_d20xx
in procedure 'script'
at file "embedded:startup.tcl", line 60
at file "esp32.cfg", line 38
in procedure 'target' called at file "./tcl/target/esp32.cfg", line 73
in procedure 'ocd_bouncer'
at file "embedded:startup.tcl", line 21

So it seems to be finding the esp32,cfg in the target directory but esp108 remains undefined. Any suggestions?

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: Setting Up Open OCD on Mac - Unknown target type ESP108

Postby ESP_igrr » Thu Apr 13, 2017 3:23 pm

Are you sure you are running OpenOCD compiled from openocd-esp32 repository, and not the one installed via a package manager? Log output mentions version 0.10, which is certainly not the openocd modified for ESP32 support.

tedwood
Posts: 11
Joined: Thu Mar 16, 2017 2:02 pm

Re: Setting Up Open OCD on Mac - Unknown target type ESP108

Postby tedwood » Tue Apr 25, 2017 3:35 pm

That fixed it.
Thanks

Who is online

Users browsing this forum: Google [Bot] and 101 guests