Can't upload program from Arduino IDE to ESP32 Board (Adafruit ESP-WROOM-32, Ubuntu)

kevineverson
Posts: 2
Joined: Tue Jul 18, 2017 8:02 pm

Can't upload program from Arduino IDE to ESP32 Board (Adafruit ESP-WROOM-32, Ubuntu)

Postby kevineverson » Wed Jul 19, 2017 12:32 pm

Hello, I am trying to program my ESP-WROOM-32 board using the Arduino IDE. I followed the steps to install the core on Ubuntu, so the ESP32 boards show up under "Tools/Board:" in Arduino. I was able to confirm the correct serial port as /dev/ttyUSB0 on my computer using the terminal window, and it shows up under "Tools/Port:" when the board is plugged in.

However, when I try to upload a simple program to the board, it says "Could not open port /dev/ttyUSB0: [Errno 13] Permission denied: '/dev/ttyUSB0'"

Has anyone else encountered this issue, and does anyone know of a fix? Thanks!

kgnete
Posts: 1
Joined: Mon Sep 04, 2017 11:02 pm

Re: Can't upload program from Arduino IDE to ESP32 Board (Adafruit ESP-WROOM-32, Ubuntu)

Postby kgnete » Mon Sep 04, 2017 11:04 pm

Try

sudo chown <username> /dev/ttyUSB0

ESP_Sprite
Posts: 9708
Joined: Thu Nov 26, 2015 4:08 am

Re: Can't upload program from Arduino IDE to ESP32 Board (Adafruit ESP-WROOM-32, Ubuntu)

Postby ESP_Sprite » Tue Sep 05, 2017 1:08 am

Or to fix the issue permanently, for all ports: sudo adduser <username> dialout, log out and log in again.

User avatar
loboris
Posts: 514
Joined: Wed Dec 21, 2016 7:40 pm

Re: Can't upload program from Arduino IDE to ESP32 Board (Adafruit ESP-WROOM-32, Ubuntu)

Postby loboris » Tue Sep 05, 2017 7:35 am

You can also add new udev rule in /etc/udev/rules.d. Here is the content my 98-esp32.rules for various esp32 boards I'm using:

Code: Select all

ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6015", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
Add idVendor&idProduct of your usb to serial adapter.
New rules will be activated after reboot or you can execute:

Code: Select all

sudo udevadm control --reload-rules && udevadm trigger
You can also change your port 'name' by adding SYMLINK="ttyESP32", you can choose any name you want.

Who is online

Users browsing this forum: No registered users and 72 guests