Overview
Installing drivers
To interface with the FTDI I2C/SPI to USB drivers on the CTS Gen3 EVK, you must install the FTDI drivers available here.
If using Windows you must also install Microsoft C++ Build Tools with C++ development tools ticked.
Alternatively if using linux you can do:
#!/bin/bash
# FT4222 USB to SPI/I2C chip driver
sudo su
DRIVER_VERSION=1.4.33
DRIVER_URL=https://ftdichip.com/wp-content/uploads/2025/03/libftd2xx-linux-x86_64-${DRIVER_VERSION}.tgz
wget -q ${DRIVER_URL} -O driver.tgz
tar -xf driver.tgz
cd linux-x86_64
cp libftd2xx.* /usr/local/lib
chmod 0755 /usr/local/lib/libftd2xx.so.${DRIVER_VERSION}
ln -sf /usr/local/lib/libftd2xx.so.${DRIVER_VERSION} /usr/local/lib/libftd2xx.so
cp ftd2xx.h /usr/local/include
cp WinTypes.h /usr/local/include
ldconfig -v
cd ..
rm driver.tgz
rm -r linux-x86_64
rmmod usbserial
rmmod ftdi-sio
You should also create this udev rule /etc/udev/rules.d/99-ftdi.rules
# FTDI's ft4222 USB-I2C Adapter
SUBSYSTEM=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="601c", GROUP="plugdev", MODE="0666"
Or for Windows make this into a batch script:
$WorkingDir = "$PSScriptRoot"
$DownloadUrl = "https://ftdichip.com/wp-content/uploads/2025/03/CDM-v2.12.36.20-Universal-Driver-for-x64-WHQL-Certified.zip"
$ZipPath = Join-Path $WorkingDir "FTDI_Driver.zip"
$ExtractPath = Join-Path $WorkingDir "FTDI_Driver_Extracted"
Invoke-WebRequest -Uri $DownloadUrl -OutFile $ZipPath
Expand-Archive -Path $ZipPath -DestinationPath $ExtractPath
pnputil.exe /add-driver (Join-Path $ExtractPath "Image\FTDIPORT.inf") /install
pnputil.exe /add-driver (Join-Path $ExtractPath "Image\FTDIBUS.inf") /install
Remove-Item -Path $ZipPath -Force
Remove-Item -Path $ExtractPath -Recurse -Force
Using ctsgen3 python package
The ctsgen3 python package is a poetry project that enables interaction with the FT4222 USB to I2C/SPI chip on an ctsgen3 EVK.
It can be installed as a regular python package with
pip install ctsgen3-x.x.x.tar.gz
Or
pip install ctsgen3-x.x.x-py3-none-any.whl
Alternatively, you can use poetry.
pip install poetry>=2.0.0
cd ctsgen3-x.x.x.tar.gz
poetry install