Using the new Arduino IDE for ESP8266 and found bugs, report them here

Moderator: igrr

User avatar
By diegoclimbing
#91249 OS Debian GNU/Linux 9 (stretch) 64-bit
Arduino 1.8.13

I make the necessary group settings following the instructions in:
https://linuxhint.com/install_arduino_ide_debian_10/

add to Additional boards Manager and installed the 2.7.4 version of esp8266
http://arduino.esp8266.com/stable/packa ... index.json

Select the NodeMCU 1.0 (ESP-12E Module) board.

I plugged in my new NodeMCU v3 and tried to load the Blink example .


Code: Select allExecutable segment sizes:
BSS    : 24880 )         - zeroed variables      (global, static) in RAM/HEAP
IRAM   : 26752   / 32768 - code in IRAM          (ICACHE_RAM_ATTR, ISRs...)
IROM   : 228640          - code in flash         (default or ICACHE_FLASH_ATTR)
DATA   : 1248  )         - initialized variables (global, static) in RAM/HEAP
RODATA : 688   ) / 81920 - constants             (global, static) in RAM/HEAP
Sketch uses 257328 bytes (24%) of program storage space. Maximum is 1044464 bytes.
Global variables use 26816 bytes (32%) of dynamic memory, leaving 55104 bytes for local variables. Maximum is 81920 bytes.
esptool.py v2.8
Serial port /dev/ttyUSB0
Connecting........_____....._____....._____....._____....._____....._____....._____
Traceback (most recent call last):
  File "/home/diegoclimbing/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/upload.py", line 65, in <module>
    esptool.main(cmdline)
  File "/home/diegoclimbing/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool/esptool.py", line 2890, in main
    esp.connect(args.before)
  File "/home/diegoclimbing/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/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: Invalid head of packet (0x00)
esptool.FatalError: Failed to connect to ESP8266: Invalid head of packet (0x00)



I have tried different baud rates.
Also different solutions proposed in other forums related to the reset and flash pins.
https://github.com/espressif/esptool/issues/432

Nothing works, any idea what is causing the failure?
User avatar
By QuickFix
#91255 Have you tried putting the NodeMCU in programming mode manually? :idea:

The message given is typically caused when the ESP cannot be set into programming mode, either because communication cannot be established or unable to initiate the automatic flash sequence (controlled by the RTS and DTR lines of your COM-port).
  • Keep and hold FLASH button
  • Press and release RESET button
  • Release FLASH button
  • Press play on tape
User avatar
By diegoclimbing
#91321
QuickFix wrote:Have you tried putting the NodeMCU in programming mode manually? :idea:

The message given is typically caused when the ESP cannot be set into programming mode, either because communication cannot be established or unable to initiate the automatic flash sequence (controlled by the RTS and DTR lines of your COM-port).
  • Keep and hold FLASH button
  • Press and release RESET button
  • Release FLASH button
  • Press play on tape



Yes, I already tried this.

I think the problem may be in the baud rate of the arduino IDE for linux.
With windows 10 I was able to load a program perfectly. In debian I can't see anything on the serial monitor for any of the baud rates. It only shows square symbols.