Can't flash ESP32 on Ubuntu VirtualBox

SteaLTH_INSteaD
Posts: 5
Joined: Sun Feb 16, 2020 4:20 am

Can't flash ESP32 on Ubuntu VirtualBox

Postby SteaLTH_INSteaD » Tue Oct 27, 2020 3:54 am

Hi,

I can't seem to flash ESP32-DevKitC on the VirtualBox with Windows 10 as the Host Machine and Ubuntu 20.04.1 as the Guest Machine after following multiple guides, including this one:
https://docs.espressif.com/projects/esp ... ction.html



After plugging/unplugging the ESP32 and typing the command

Code: Select all

ls /dev/tty*
I see /dev/ttyUSB0 appear.
I see a black terminal when I try to connect with PuTTy, but nothing happens when I restart the ESP32 chip by pressing EN.
img1.png
img1.png (188.43 KiB) Viewed 3920 times
When I try to flash the device with

Code: Select all

idf.py -p /dev/ttyUSB0 -b 115200 flash
it says timed out waiting for packet header even if I hold down the Boot button.

I have tried typing

Code: Select all

dmesg | grep tty
which shows the following output

Code: Select all

cp210x converter now attached to ttyUSB0
Here are the settings for my Ubuntu virtual box. Any Ideas?
img2.png
img2.png (19.21 KiB) Viewed 3920 times

SteaLTH_INSteaD
Posts: 5
Joined: Sun Feb 16, 2020 4:20 am

Re: Can't flash ESP32 on Ubuntu VirtualBox

Postby SteaLTH_INSteaD » Tue Oct 27, 2020 5:50 pm

I tried next morning and it seems to be working now on ttyS1 instead of ttyUSB0!
My guess is that it should be ttyS instead of ttyUSB since it's Serial instead of USB even though it's connected to the USB port.

doglike
Posts: 63
Joined: Fri Aug 18, 2017 4:21 pm

Re: Can't flash ESP32 on Ubuntu VirtualBox

Postby doglike » Fri Oct 30, 2020 11:52 am

If I am not wrong, there should be a menuconfig option for the port configuration...

Who is online

Users browsing this forum: No registered users and 265 guests