Page 1 of 1

Getting JTAG to work on Mac 14.2.1

Posted: Mon Jan 08, 2024 7:39 pm
by gamename
Hi,

I'm trying to bring up my connection to the JTAG and get this error:

Code: Select all

openocd -f board/esp32-wrover-kit-3.3v.cfg                                                           
Open On-Chip Debugger 0.11.0-g8e3c38f (2023-12-01-13:56)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
/Users/tennis/.espressif/tools/openocd-esp32/v0.12.0-esp32-20230921/openocd-esp32/share/openocd/scripts/interface/ftdi/esp32_devkitj_v1.cfg:8: Error: invalid command name "ftdi"
in procedure 'script' 
at file "embedded:startup.tcl", line 26
at file "/Users/tennis/.espressif/tools/openocd-esp32/v0.12.0-esp32-20230921/openocd-esp32/share/openocd/scripts/board/esp32-wrover-kit-3.3v.cfg", line 11
at file "/Users/tennis/.espressif/tools/openocd-esp32/v0.12.0-esp32-20230921/openocd-esp32/share/openocd/scripts/interface/ftdi/esp32_devkitj_v1.cfg", line 8
I've tried unloading the FTDI drivers (per some recommendations) and just get this:

Code: Select all

sudo kextunload -b com.FTDI.driver.FTDIUSBSerialDriver                                                                                                                                         
Executing: /usr/bin/kmutil unload -b com.FTDI.driver.FTDIUSBSerialDriver
Error Domain=KMErrorDomain Code=3 "Error occurred unloading extensions: Missing extension with identifier com.FTDI.driver.FTDIUSBSerialDriver : Could not find: Extension with identifier 'com.FTDI.driver.FTDIUSBSerialDriver' not found" UserInfo={NSLocalizedDescription=Error occurred unloading extensions: Missing extension with identifier com.FTDI.driver.FTDIUSBSerialDriver : Could not find: Extension with identifier 'com.FTDI.driver.FTDIUSBSerialDriver' not found}
Anyone have any ideas?

Thanks in advance,
-Tennis

Re: Getting JTAG to work on Mac 14.2.1

Posted: Thu Jan 11, 2024 12:41 pm
by JohnnyZ
I don't have Mac but it seems that your OpenOCD is compiled without ftdi support.
Mine built from source on FreeBSD:

Code: Select all

esp32-openocd -c 'adapter list'
Open On-Chip Debugger v0.12.0-esp32-20230921-194-g5a454ea9 (2023-12-22-08:44)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
The following debug adapters are available:
1: ftdi
2: usb_blaster
3: esp_usb_jtag
4: ft232r
5: presto
6: usbprog
7: openjtag
8: vsllink
9: rlink
10: ulink
11: angie
12: arm-jtag-ew
13: buspirate
14: hla
15: osbdm
16: opendous
17: cmsis-dap
18: xds110
19: st-link
20: jtag_esp_remote

Re: Getting JTAG to work on Mac 14.2.1

Posted: Sun Jan 14, 2024 12:53 am
by gamename
Thanks! That's what I needed.