[SOLVED] Unable to upload code to ESP32-EVB

GeorgeFlorian1
Posts: 160
Joined: Thu Jan 31, 2019 2:32 pm

[SOLVED] Unable to upload code to ESP32-EVB

Postby GeorgeFlorian1 » Fri Jun 21, 2019 1:35 pm

Hello !

Today I've started another project ! In this project I will need to use relays. So I've picked up an ESP32 EVB.

The trouble is that I am unable to upload code to it.
I keep getting: A fatal error occurred: Timed out waiting for packet content

All things work, because if I connect a ESP32 DevKitV4 to the same USB Cable and hit Upload it will upload immediately without having to press any buttons.
I am using a USB PowerHub.

This is what I have in platformio.ide:

Code: Select all

[env:esp32-evb]
platform = https://github.com/platformio/platform-espressif32.git
board = esp32-evb
framework = arduino
board_build.flash_mode = qio
upload_port = /dev/ttyUSB0
monitor_port = /dev/ttyUSB0
monitor_speed = 115200

build_flags = -DCORE_DEBUG_LEVEL=5

#libraries
lib_deps = https://github.com/me-no-dev/ESPAsyncWebServer.git
How are you supposed to upload code to it ? Is there a combination of buttons ?

Could this be the problem ?

Code: Select all

For Linux Platform: to allow the access to serial ports the user needs read/write access to the serial device file. Adding the user to the group, that owns this file, gives the required read/write access:

Ubuntu distribution –> dialout group
Arch Linux distribution –> uucp group
After I've ran the following command: sudo usermod -a -G dialout george I still got A fatal error occurred: Timed out waiting for packet content.

I randomly get another error: A fatal error occurred: Invalid head of packet (0xE0) .

Isn't this great ?
Last edited by GeorgeFlorian1 on Wed Jun 26, 2019 12:52 pm, edited 1 time in total.

GeorgeFlorian1
Posts: 160
Joined: Thu Jan 31, 2019 2:32 pm

Re: Unable to upload code to ESP32-EVB

Postby GeorgeFlorian1 » Wed Jun 26, 2019 12:52 pm

This gets solved if you are using Arduino IDE, because it sets the upload speed to 115200.
To make it work in Platformio IDE you have to write upload_speed = 115200 inside platformio.ini.

mikemoy
Posts: 626
Joined: Fri Jan 12, 2018 9:10 pm

Re: [SOLVED] Unable to upload code to ESP32-EVB

Postby mikemoy » Wed Jun 26, 2019 1:22 pm

you should set your upload speed to this.
upload_speed = 921600

GeorgeFlorian1
Posts: 160
Joined: Thu Jan 31, 2019 2:32 pm

Re: [SOLVED] Unable to upload code to ESP32-EVB

Postby GeorgeFlorian1 » Fri Jun 28, 2019 7:51 am

mikemoy wrote:
Wed Jun 26, 2019 1:22 pm
you should set your upload speed to this.
upload_speed = 921600
Actually that doesn't work with the ESP32-EVB. The only available upload_speed for this device is 115200. It's somewhere in its documentation.

upload_speed = 921600 works with a ESP32 DevKit. I am using that speed on my ESP32 DevKitV4 Wrover-B.

Who is online

Users browsing this forum: No registered users and 100 guests