so i'm trying to program my esp8266 from raspbian linux (raspberry pi 4b) with the arduino IDE, but it is failing to connect to the board.
I can read the serial output from the board with the serial monitor, reading ttyUSB0
i'm using IDE 1.8.17, not the build-in apt-get crap.
Running te IDE as root does not change anything.
Both users i tried it as are part of the dialout group
Online everyone seems to talk about the ttyACM0, i only have ttyUSB0 and ttyAMA0 as options. the ttyAMA0 does even less then the ttyUSB0
The troubleshooting page does not seem to give a solution, or i hve not found the correct page yet.
Any suggestions ? i'm a very average linux user, i normaly use it for webservers, databases and that sort of stuff...
Plugging the board into a windows machine, everything work just fine and as expected.
Arduino: 1.8.17 Hourly Build 2021/09/06 02:19 (Linux), Board: "LOLIN(WEMOS) D1 R2 & mini, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 921600"
Executable segment sizes:
ICACHE : 32768 - flash instruction cache
IROM : 241396 - code in flash (default or ICACHE_FLASH_ATTR)
IRAM : 27681 / 32768 - code in IRAM (IRAM_ATTR, ISRs...)
DATA : 1508 ) - initialized variables (global, static) in RAM/HEAP
RODATA : 972 ) / 81920 - constants (global, static) in RAM/HEAP
BSS : 26008 ) - zeroed variables (global, static) in RAM/HEAP
Sketch uses 271557 bytes (25%) of program storage space. Maximum is 1044464 bytes.
Global variables use 28488 bytes (34%) of dynamic memory, leaving 53432 bytes for local variables. Maximum is 81920 bytes.
Serial port /dev/ttyUSB0
Connecting......................................____Traceback (most recent call last):
File "/home/pi/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/upload.py", line 66, in
File "/home/pi/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/esptool/esptool.py", line 3552, in main
File "/home/pi/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/esptool/esptool.py", line 529, in connect
raise FatalError('Failed to connect to %s: %s' % (self.CHIP_NAME, last_error))
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
the selected serial port _
does not exist or your board is not connected