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
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
I randomly get another error: A fatal error occurred: Invalid head of packet (0xE0) .
Isn't this great ?