Hi everyone,
I want to upload a sketch on NodeMCU from the Arduino IDE running on Ubuntu 16.04 and the operating system doesn't recognize the NodeMCU.
Here is the error message coming from the Arduino IDE :
Executable segment sizes:
IROM : 227612 - code in flash (default or ICACHE_FLASH_ATTR)
BSS : 24880 ) - zeroed variables (global, static) in RAM/HEAP
RODATA : 672 ) / 81920 - constants (global, static) in RAM/HEAP
IRAM : 26768 / 32768 - code in IRAM (ICACHE_RAM_ATTR, ISRs...)
DATA : 1252 ) - initialized variables (global, static) in RAM/HEAP
Le croquis utilise 256 304 octets (24%) de l'espace de stockage de programmes. Le maximum est de 1 044 464 octets.
Les variables globales utilisent 26 804 octets (32%) de mémoire dynamique, ce qui laisse 55 116 octets pour les variables locales. Le maximum est de 81 920 octets.
esptool.py v2.8
Serial port /dev/ttyS0
Connecting........_____....._____....._____....._____....._____....._____....._____
Traceback (most recent call last):
File "/home/benjamin/.arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/upload.py", line 65, in <module>
esptool.main(cmdline)
File "/home/benjamin/.arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/esptool/esptool.py", line 2890, in main
esp.connect(args.before)
File "/home/benjamin/.arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/esptool/esptool.py", line 483, 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
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
here is what I tried so far to solve this problem :
I installed the UART driver CP2102 as it is recommended by the vendor but I get the same error.
For information, TTYACM0 port is automatically open in the IDE when I plug my Arduino Uno and then I can upload sketches to the Arduino Uno. To achieve this I had to type following commands when Uno was plugged :
sudo usermod -a -G tty benjamin
sudo usermod -a -G tty benjamin
sudo chmod a+rw /dev/ttyACM0
Therefore I typed the same commands when nodeMCU is plugged but the operating system doesn't find /dev/TTYACM0 folder.
My question is : what are the steps to get TTYACM0 port automatically open when NodeMCU is plugged in the usb port ?
thanks in advance for any ideas