CP210x USB to UART bridge VCP drivers on Ubuntu

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
gndAdafruit
 
Posts: 17
Joined: Wed Dec 29, 2021 4:00 pm

CP210x USB to UART bridge VCP drivers on Ubuntu

Post by gndAdafruit »

HI! So I thought this was going to be a smooth install but when I tried to install the CP210x driver onto my Ubuntu machine it did not work. I got this error instead.
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-56-generic'
CC [M] /home/upt/Downloads/Linux_3.x.x_4.x.x_VCP_Driver_Source/cp210x.o
/home/upt/Downloads/Linux_3.x.x_4.x.x_VCP_Driver_Source/cp210x.c:290:35: error: initialization of ‘void (*)(struct usb_serial_port *)’ from incompatible pointer type ‘int (*)(struct usb_serial_port *)’ [-Werror=incompatible-pointer-types]
290 | .port_remove = cp210x_port_remove,
| ^~~~~~~~~~~~~~~~~~
So I proceeded with their instructions:
Linux kernel also has a default cp210x driver which is maintained at www.kernel.org.
It is recommended to use the driver there that matches your specific kernel version.
And I find a module called cp210x in my sys directory. So now I am confused on why the arduino IDE cannot install the board I want to use which is called the Adafruit Huzzah - ESP32 Feather.

My machine:
Ubuntu 22.04 jammy
Kernal x86_64 Linux 5.15.0-56-generic
ArduinoIDE 1.8.19

Any suggestions?

User avatar
mikeysklar
 
Posts: 14194
Joined: Mon Aug 01, 2016 8:10 pm

Re: CP210x USB to UART bridge VCP drivers on Ubuntu

Post by mikeysklar »

You do not need to install or build the CP210x driver for an Ubuntu machine.
For those running Linux, the drivers are already included.
https://learn.adafruit.com/adafruit-huz ... ll-3125655

When you plug the Huzzah into your machine with a known good USB data cable you should see the board being detected via dmesg. Also be sure to double tap reset just before attempting to upload code from the Arduino IDE.

User avatar
gndAdafruit
 
Posts: 17
Joined: Wed Dec 29, 2021 4:00 pm

Re: CP210x USB to UART bridge VCP drivers on Ubuntu

Post by gndAdafruit »

Thanks for the insight. All I needed to do what insert the link to the board:

https://dl.espressif.com/dl/package_esp32_index.json

in the File>>Preferences section of Arduino IDE and install ESP32 from the board manager.

That solved my issue.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”