Score:1

How to use ESP32 WROVER B with Ubuntu?

gh flag

I want to use ESP32 WROVER B, and as I read here I need CP210x USB driver to use with Arduino IDE. But when I want to use it, I got this error:

usb_driver/cp210x.c:290:18: 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,
      |                  ^~~~~~~~~~~~~~~~~~

Than I noticed that it is already installed on ubuntu 17+ versions, and I can see it:

user@user:ls -al /lib/modules/"$(uname -r)"/kernel/drivers/usb/serial/cp210x.ko
-rw-r--r-- 1 root root 63361 ian 14 00:11 /lib/modules/5.13.0-27-generic/kernel/drivers/usb/serial/cp210x.ko

Then I used sudo modprobe cp210x, restarted, but nothing has changed, in Arduino IDE the Tools > Port submenu is unavailable.

What can I do? How can I connect my Ubuntu to ESP32?

EDIT: With lsusb -t I got:

/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/9p, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M

And I am on

Distributor ID: Ubuntu
Description:    Ubuntu 20.04.3 LTS
Release:    20.04
Codename:   focal
N0rbert avatar
zw flag
It should work out the box. You do not need to compile anything. What is your Ubuntu version? What is the output of `lsusb -t` with board connected? Have you tried to use other cable? What are the board model, vendor and URL?
gabor aron avatar
gh flag
@N0rbert Yep seems that cable was bad, but, now I got `No module named serial`, but I have installed `pyserial` via `pip`
Score:0
zw flag

You have to check cable, this driver is built-in to the kernel package.

Then you can install esptool from the repository as follows:

sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install esptool

To use it as normal user you have to execute below command to add your user to dialout group:

sudo usermod -a -G dialout $USER

then logout and login back.

gabor aron avatar
gh flag
Also got `No module named serial`, but I did: `pip install pyserial Requirement already satisfied: pyserial in /usr/lib/python3/dist-packages (3.4)`
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.