Hello, I am trying to upload my sketch to ESP8266 on just an empty board without anything connected to it. It used to work a long time ago, but I've reinstalled my PC and not sure what is missing or why it's not uploading. The error I am receiving:
Looking for upload port...
Auto-detected: COM1
Uploading .pio\build\nodemcuv2\firmware.bin
esptool.py v3.0
Serial port COM1
Connecting........_____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to ESP8266: Timed out waiting for packet header
*** [upload] Error 2
I have also tried installing CP210X drivers. Even though it said it was successfully installed, in the Device Manager under ports it's not appearing.
Not sure if this is an issue? What can I do to solve this issue? Thank you.
To enable ESP8266 firmware flashing GPIO0 pin must be pulled low before the device is reset. Conversely, for a normal boot, GPIO0 must be pulled high or floating.
If you have a NodeMCU dev kit then you don't need to do anything, as the USB connection can pull GPIO0 low by asserting DTR and reset your board by asserting RTS.
As I understand, I do not need to do anything?
In the logs it says that it's building in release mode. Do I need to do something? I've tried pressing Flash while it's booting, but nothing changed. Also, when it's plugged in the USB, the blue light is on all the time.
Full logs:
Processing nodemcuv2 (platform: espressif8266; board: nodemcuv2; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/nodemcuv2.html
PLATFORM: Espressif 8266 (4.0.1) > NodeMCU 1.0 (ESP-12E Module)
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES:
- framework-arduinoespressif8266 @ 3.30002.0 (3.0.2)
- tool-esptool @ 1.413.0 (4.13)
- tool-esptoolpy @ 1.30000.201119 (3.0.0)
- tool-mklittlefs @ 1.203.210628 (2.3)
- tool-mkspiffs @ 1.200.0 (2.0)
- toolchain-xtensa @ 2.100300.210717 (10.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 44 compatible libraries
Scanning dependencies...
Dependency Graph
|-- DallasTemperature @ 3.11.0
| |-- OneWire @ 2.3.7
|-- NTPClient @ 3.2.1
|-- ESP8266HTTPClient @ 1.2
| |-- ESP8266WiFi @ 1.0
|-- ESP8266WiFi @ 1.0
|-- OneWire @ 2.3.7
Building in release mode
Retrieving maximum program size .pio\build\nodemcuv2\firmware.elf
Checking size .pio\build\nodemcuv2\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [==== ] 36.0% (used 29524 bytes from 81920 bytes)
Flash: [=== ] 28.2% (used 294945 bytes from 1044464 bytes)
Configuring upload protocol...
AVAILABLE: espota, esptool
CURRENT: upload_protocol = esptool
Looking for upload port...
Auto-detected: COM1
Uploading .pio\build\nodemcuv2\firmware.bin
esptool.py v3.0
Serial port COM1
Connecting........_____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to ESP8266: Timed out waiting for packet header
*** [upload] Error 2
Oh hi @runaway_pancake, indeed, I've been trying to solve this mystery problem for the last 5 hours with 'just power' USB. This mistake has got me once more. Switching to data/sync USB resolved this issue. Also, Silicon Labs Driver appears under Ports in the Device Manager. Thanks