If you are using devices that utilize the CH340G, CH34G, or CH34X chipset, this article provides guidance on how to install the latest macOS Sierra/High Sierra-compatible driver. This driver is commonly found in Arduino-compatible clones and serial-to-USB cables.
Before proceeding with the installation, it’s important to note that this driver is not compatible with macOS Mojave 10.14 or later. If you have a newer macOS version, it already includes a CH34x driver developed by Apple. Installing both drivers simultaneously can create conflicts and result in non-functional serial ports. Additionally, if you encounter issues with serial communication while using Apple’s driver, make sure to set the data rate to 460,800 bps or lower.
Installation Steps
- Unplug any CH34* devices.
- Unload the old drivers, if they are running, using the following commands:
sudo kextunload /Library/Extensions/usbserial.kext
sudo kextunload /System/Library/Extensions/usb.kext
- Remove the old driver by running one of the following commands, depending on your installation:
sudo rm -rf /System/Library/Extensions/usb.kext
sudo rm -rf /Library/Extensions/usbserial.kext
- Double-click on the
CH34x_Install_V1.5.pkg
file and follow the installation prompts. There is no need to reboot. - Instead of rebooting, you can force quit the installer after it completes.
- Load the new driver using the command:
sudo kextload /Library/Extensions/usbserial.kext
- Plug in your device, and it should now be listed under the
/dev
directory. Examples: /dev/cu.wchusbserial1410
-
/dev/tty.wchusbserial14210
(for driver version 1.5)
Installation via Homebrew-Cask
If you prefer to install the driver using Homebrew-Cask, you can follow these commands:
- Open Terminal and run the following commands:
brew tap adrianmihalko/ch340g-ch34g-ch34x-mac-os-x-driver https://github.com/adrianmihalko/ch340g-ch34g-ch34x-mac-os-x-driver
brew install --cask wch-ch34x-usb-serial-driver
Troubleshooting
In case your device does not show up under /dev
, check the “Security and Privacy” section in System Preferences for any notices about blocked software.
It’s worth noting that disabling System Integrity Protection (SIP) is no longer necessary as the current drivers are properly signed by the OEM. If you are experiencing problems, they are most likely unrelated to SIP. However, if you had previously disabled SIP, especially if you did so completely, it is strongly encouraged to fully re-enable SIP. For instructions on how to re-enable SIP, you can refer to Apple’s official documentation.
If, after following the installation instructions, your device is still not recognized or you cannot install the driver, you may need to disable System Integrity Protection. Here is how you can do it:
- Reboot your Mac into Recovery Mode by restarting your computer and holding down
Command+R
until the Apple logo appears on the screen. - Open Terminal (Applications -> Utilities -> Terminal).
- In the Terminal window, type
csrutil enable --without kext
to disable SIP orcsrutil disable
to fully disable it, and press Enter. - Restart your Mac.
We hope this article has been helpful in guiding you through the installation process of the CH340G/CH34G/CH34X Mac OS X driver. If you have any questions or need further assistance, feel free to ask.
Regards,
Blake Bradford
References:
– CH340G/CH34G/CH34X Mac OS X Driver Repository
– OEM Driver Version 1.5 Download
– Apple’s Documentation on System Integrity Protection
– Adrian Mihalko’s Website
Leave a Reply