So I made it work after some hassle…
This is my platformio.ini:
[env:mhetesp32minikit]
platform = espressif32
board = mhetesp32minikit
framework = arduino
# UPLOAD via SERIAL pins on board #
# upload_port = /dev/cu.SLAB_USBtoUART
# monitor_protocol = esptool
upload_speed = 921600
# UPLOAD via JTAG pins #
; /dev/cu.usbserial-FT2D6SDLAA is my FT2232H port_A - connected to the ESP32 JTAG pins
; change to your device name if needed [in OSX list them with ls /dev/{tty,cu}.* ]
upload_port = /dev/cu.usbserial-FT2D6SDLAA
upload_protocol = minimodule
# SERIAL MONTITOR #
; uncomment what you use.
; /dev/cu.SLAB_USBtoUART is the MH-ET-Mini onboard USB-UART
; /dev/cu.usbserial-FT2D6SDLAB is the name of my FT2232H port_B [ESP32 TX_pin <-> FT2232H BDBUS_0 | ESP32 RX_pin <-> FT2232H BDBUS_1]
; UART @ 2.000.000 baud seems exessive, but works fine for me on all ESP boards and the FT2232H
; monitor_port = /dev/cu.SLAB_USBtoUART
monitor_port = /dev/cu.usbserial-FT2D6SDLAB
monitor_speed = 2000000
# DEBUG SETTINGS #
# SUPER IMPORTANT: keep the [env:debug] on top of those settings!] #
[env:debug]
platform = espressif32
board = mhetesp32minikit
framework = arduino
; upload_port = /dev/cu.usbserial-FT2D6SDLAA
upload_protocol = minimodule
; debug_port = /dev/cu.usbserial-FT2D6SDLAA
debug_tool = minimodule
Following this guide https://www.instructables.com/id/ESP32-Cheap-Solution-for-in-Circruit-Debug/ I changed openOCD myminimodule config /Users/username/.platformio/packages/tool-openocd-esp32/share/openocd/scripts/interface/minimodule.cfg
to this [original values commented out]:
interface ftdi
# ftdi_device_desc "FT2232H MiniModule"
ftdi_vid_pid 0x0403 0x6010
# ftdi_layout_init 0x0018 0x05fb
ftdi_layout_init 0x0008 0x000b
ftdi_layout_signal nSRST -data 0x0020
ftdi_tdo_sample_edge falling
Another important part:
You need to both unload FTDI’s and APPLE’s drivers that hog the ports:
sudo kextunload -bundle-id com.apple.driver.AppleUSBFTDI
sudo kextunload -bundle-id com.FTDI.driver.FTDIUSBSerialDriver
Otherwise you will get some USBlib errors that your port is n/a.
The FTDI drivers can be deinstalled:
See detailed instruction in official application note (Page 16, Section 4: Uninstalling FTDI Drivers on OS X) AN134: FTDI Drivers Installation guide for MAC OS X