Getting JTAG to work on Mac 14.2.1

gamename
Posts: 32
Joined: Fri Dec 08, 2023 11:33 pm

Getting JTAG to work on Mac 14.2.1

Postby gamename » Mon Jan 08, 2024 7:39 pm

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

JohnnyZ
Posts: 8
Joined: Thu Jan 11, 2024 10:24 am

Re: Getting JTAG to work on Mac 14.2.1

Postby JohnnyZ » Thu Jan 11, 2024 12:41 pm

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

gamename
Posts: 32
Joined: Fri Dec 08, 2023 11:33 pm

Re: Getting JTAG to work on Mac 14.2.1

Postby gamename » Sun Jan 14, 2024 12:53 am

Thanks! That's what I needed.

Who is online

Users browsing this forum: No registered users and 134 guests