ESP8266 Error Message

Hello,

I have just started using the ESP8266 Wifi module and am having some issues loading the program. I get the below error message. I am not sure where to start with this... I have been looking around online, and have tried all the different baud rates. No luck. I have been doing this with the TX/RX pins disconnected as I could not load it with them connected.

I can post the main code, along with the .h files I am using, if needed. I was having issues getting the .h files saved and put into the library, but believe that has been solved. I ended up using another .h file and put my code into that and saved it off with the new name. Wasn't entirely certain on how to save it as a type .h.

Thanks in advance.

Arduino: 1.8.9 (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, Flash, Disabled, All SSL ciphers (most compatible), ck, 26 MHz, 40MHz, DOUT (compatible), 512K (no SPIFFS), 2, nonos-sdk 2.2.1 (legacy), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

Build options changed, rebuilding all
Sketch uses 280484 bytes (56%) of program storage space. Maximum is 499696 bytes.
Global variables use 28524 bytes (34%) of dynamic memory, leaving 53396 bytes for local variables. Maximum is 81920 bytes.
esptool.py v2.6
2.6
esptool.py v2.6
Serial port COM4
Connecting......
Traceback (most recent call last):
File "C:\Users\keith\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2/tools/upload.py", line 25, in
esptool.main(fakeargs)
File "C:/Users/keith/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool\esptool.py", line 2663, in main
print("Chip is %s" % (esp.get_chip_description()))
File "C:/Users/keith/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool\esptool.py", line 968, in get_chip_description
efuses = self.get_efuses()
File "C:/Users/keith/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool\esptool.py", line 964, in get_efuses
self.read_reg(0x3ff00054) << 32 |
File "C:/Users/keith/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool\esptool.py", line 475, in read_reg
val, data = self.command(self.ESP_READ_REG, struct.pack('<I', addr))
File "C:/Users/keith/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool\esptool.py", line 332, in command
p = self.read()
File "C:/Users/keith/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool\esptool.py", line 277, in read
return next(self._slip_reader)
File "C:/Users/keith/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool\esptool.py", line 1889, in slip_reader
raise FatalError('Invalid head of packet (0x%s)' % hexify(b))
esptool.FatalError: Invalid head of packet (0x01)
esptool.FatalError: Invalid head of packet (0x01)

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

The code is not the problem, the uploading is the problem. Did you select the right port? Did you install the right driver? Please post a schematic of how everything is wired, and tell us what board you're using.

Pieter

As was wrote above, its not the code, as far as you/we know, cause the Arduino IDE thing do does not even get a proper comms with the ESP.

Have you followed the instructions, on the internet, about how to get the ESP and the Arduino IDE working together?

When the ESP is plugged in do you get an indicator that the ESP has been plugged into your puter?

I selected the correct port, and verified the port was found by removing cable (it disappeared), and reconnecting cable (it appeared).

I used the CP210x driver for the windows 10 install. I also used an older driver to which it replied there was newer one installed. It does pop up in device manager com port as cp210x USB to UART Bridge. So I think I have the correct one installed.

I am using the HiLetgo NodeMCU LUA CP2102 ESP-12E Board.

I have the Vin connected to the Arduino 5v out, and the ground connect to the TB that the Arduino ground and 12v power supply ground are going to.

I also have put the link into the preferences so I could get the board into the board manager, and installed the board.

I also have the ground that is next to the 3.3V connected to ground, but I have nothing powering the 3.3 pin.

I have tried downloading to the board while it was powered as described above, and just with the USB power (blue light is on board and does blink).

It does appear and disappear in device manager when I plug into it, and when I remove the cable.

I have tried a few different cables, and the one I am using now says it is a data cable from the vendor.

Thank you for your help with this. It is appreciated. I will look more into driver and comm settings.

I have also put the link into the preferences, and installed the board in the board manager. FIles are using the 8266 generic selection.

Looks like I got it. Was not aware that the board had to be in a flash mode. Assumed the IDE was setting that to write the program.

PoisonFrog007:
Looks like I got it. Was not aware that the board had to be in a flash mode. Assumed the IDE was setting that to write the program.

You don't have to put it in flash mode yourself.
Selecting the right board in the "Tools" menu of the IDE should work too. (And so does selecting the "nodemcu" Reset Method in the "Tools" menu.)

I can only say that it was not working before i entered the mode, and afterwords it worked everytime (without setting it to flash). I will look at the nodemcu tool. Thanks for the help.