Hi guys
Im on the road to explore the possibilities of ESP8266 wifimodule. But in order to do so, i need to learn how to upload code. Atm im trying to upload the Blink example, just to see if it works. Sadly not.
I am aware that i needs to enter flashmode, before im able to upload the code.
The error im getting is: "A fatal esptool.py error occurred: Failed to connect to ESP8266: Timed out waiting for packet header"
Which from i can read, is because it didnt nenter flashmode properly.
Beside the ESP8266, i have the ESP8266 USBprogrammer Picture of the programmer im using
So what have i done so faar?
-
Added the ESP8266 link as additional board manager
-
Installed the ESP8266 board module
-
Verified that i have the following settings:
- Select; Tools -> Board: -> (Select the board of your choice). 'Generic ESP8266 Module'
- Select; Tools -> Flash Mode: -> 'DIO'
- Select; Tools -> Flash Frequency: -> '40MHz'
- Select; Tools -> CPU Frequency: -> '80 MHz'
- Select; Tools -> Flash Size: -> '512K (64K SPIFFS)'
- Select; Tools -> Debug Port: -> 'Disabled'
- Select; Tools -> Debug Level: -> 'None'
- Select; Tools -> Reset Method: -> 'ck' "Please confirm its same as: "No dtr AKA CK"
- Select; Tools -> Upload Speed: -> '115200'
- Verified that i select the proper COM.
Then i press upload sketch and i get the error mentioned earlier.
So how is my hardware setup?`
From what i can read on the internet, i cannot use the USB-drive right away. I need to make two modifications:
- Link the vcc (3.3v) to the CP_EN
- Switch between GND and GPIO 0.
I mirrored a youtubevideo:
The switch is turned on while i insert the USB drive into the computer. Once plugged in, i turn switch off.
Nevertheless, keeps saying unsuccesfully upload sketch
So how did i make the button?
Use breadboard and set a wire between GND and GIPO0, once USB is inserted, i remove wire to break connection (instead of welding).
See picture of setup:
i tried to doublecheck the wiring, but cant find error there.
Hope someone can crack the code and explain me how to being able to upload code to the ESP8266.
Thank you all.