Error when trying to flash via arduinoIDE from a Manjrao(linux arch) System.
Posted: Thu May 02, 2019 8:17 pm
My new ESP32 just arrived!
I wanted to use the arduinoIDE to write some sketches and wanted to start with a simple LED blink as a test. Here is code that i want to put on the esp:
I already installed the git stuff so that i can select the ESP32 dev board from the drop down menu inside the IDE. So that worked. I don't know which board i have to select from the dropdown menu. Can you tell me which one i should click? i bought this one here: https://www.amazon.de/dp/B071P98VTG?ref ... E_DDE_dt_1
I followed a guide that was written for ubuntu and not for manjaro. Ubuntu is based on debian and manjaro is based on arch so this might be the source of the problems. This command does not work for me:
But i read somehwere that i need to add the user to the uucp group instead. I don;t remember how but i did that and can check that i am part of the group:
When i try to upload the sketch i get the following error:
Almost the same happens when i use the other port:
I did try to hold down the 'boot' button on my device until the Connecting part of the ide appeared.
Here is a dmesg | grep tty output:
Can you please help me get this awesome board to play nice with my laptop?
same error output if i start my arduinoIDE with sudo. Also the same error when i switch to upload speed 115200.
I wanted to use the arduinoIDE to write some sketches and wanted to start with a simple LED blink as a test. Here is code that i want to put on the esp:
Code: Select all
/*
* https://circuits4you.com
* ESP32 LED Blink Example
* Board ESP23 DEVKIT V1
*
* ON Board LED GPIO 2
*/
#define LED 2
void setup() {
// Set pin mode
pinMode(LED,OUTPUT);
}
void loop() {
delay(5000);
digitalWrite(LED,HIGH);
delay(5000);
digitalWrite(LED,LOW);
}
I already installed the git stuff so that i can select the ESP32 dev board from the drop down menu inside the IDE. So that worked. I don't know which board i have to select from the dropdown menu. Can you tell me which one i should click? i bought this one here: https://www.amazon.de/dp/B071P98VTG?ref ... E_DDE_dt_1
I followed a guide that was written for ubuntu and not for manjaro. Ubuntu is based on debian and manjaro is based on arch so this might be the source of the problems. This command does not work for me:
Code: Select all
/home/artur c=3 sudo usermod -a -G dialout $USER
usermod: group 'dialout' does not exist
But i read somehwere that i need to add the user to the uucp group instead. I don;t remember how but i did that and can check that i am part of the group:
Code: Select all
/home/artur c=3 groups
sys lp wheel uucp lock network video optical storage scanner power autologin artur
When i try to upload the sketch i get the following error:
Code: Select all
Arduino: 1.8.9 (Linux), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"
Sketch uses 194856 bytes (14%) of program storage space. Maximum is 1310720 bytes.
Global variables use 13348 bytes (4%) of dynamic memory, leaving 314332 bytes for local variables. Maximum is 327680 bytes.
esptool.py v2.6
Serial port /dev/ttyUSB0
Connecting........_____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
Almost the same happens when i use the other port:
Code: Select all
Arduino: 1.8.9 (Linux), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"
Sketch uses 194856 bytes (14%) of program storage space. Maximum is 1310720 bytes.
Global variables use 13348 bytes (4%) of dynamic memory, leaving 314332 bytes for local variables. Maximum is 327680 bytes.
esptool.py v2.6
Serial port /dev/ttyS0
Connecting........_____....._____....._____....._____....._____....._____.....____An error occurred while uploading the sketch
_
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
Here is a dmesg | grep tty output:
Code: Select all
[ 0.000000] console [tty0] enabled
[ 1.414333] systemd[1]: Created slice system-getty.slice.
[ 1.992146] dw-apb-uart.1: ttyS0 at MMIO 0xdcc32000 (irq = 20, base_baud = 115200) is a 16550A
[ 2.343860] usb 1-1: cp210x converter now attached to ttyUSB0
[ 751.546600] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0
[ 769.159488] usb 1-1: cp210x converter now attached to ttyUSB0
Can you please help me get this awesome board to play nice with my laptop?
same error output if i start my arduinoIDE with sudo. Also the same error when i switch to upload speed 115200.