How to connect and upload
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 35
- Joined: 11 Nov 2015, 13:52
How to connect and upload
Hello
I am trying to upload the espeasy r039 to a esp-12e module but I keep getting a error in the arduino ide.
Error: espcom_open failed
I am using 1.6.5
And a bare esp module with the white board.
Vcc> 3.3v
Ch_PD> 3.3v
Gnd> gnd
Gpio 0> gnd
Tx> rx
Rx> tx
I am using the usb to serial converter and a separate power supply for the esp module with grounds connected
I selected usbasp in the ide and esp8266 boards
Can somebody explain me what I do wrong?
I am trying to upload the espeasy r039 to a esp-12e module but I keep getting a error in the arduino ide.
Error: espcom_open failed
I am using 1.6.5
And a bare esp module with the white board.
Vcc> 3.3v
Ch_PD> 3.3v
Gnd> gnd
Gpio 0> gnd
Tx> rx
Rx> tx
I am using the usb to serial converter and a separate power supply for the esp module with grounds connected
I selected usbasp in the ide and esp8266 boards
Can somebody explain me what I do wrong?
Re: How to connect and upload
The programmer setting (USBASP) doesn't matter when programming the ESP8266 from Arduino IDE. On ESP-12/12E (and other modules that exposes GPIO 15) you need to connect that pin to GND. How are you powering the module? The 3.3V power from USB serial adaptors are not sufficient to power the ESP module - you need an external, stable 3.3V power supplyDMeekelenkamp wrote:I am trying to upload the espeasy r039 to a esp-12e module but I keep getting a error in the arduino ide.
Error: espcom_open failed
I am using 1.6.5
And a bare esp module with the white board.
Vcc> 3.3v
Ch_PD> 3.3v
Gnd> gnd
Gpio 0> gnd
Tx> rx
Rx> tx
I am using the usb to serial converter and a separate power supply for the esp module with grounds connected
I selected usbasp in the ide and esp8266 boards
Can somebody explain me what I do wrong?
- Jan
Jan Chrillesen, Denmark
-
- Normal user
- Posts: 35
- Joined: 11 Nov 2015, 13:52
Re: How to connect and upload
I am using a separate power supply for the esp module with grounds connected between the power supply and serial programmer. The esp module feels like it is working because it gets nice warm (not hot).
Gpio15 is allready connected to ground with a 10k resistor on the breakout board.
http://tinyurl.com/pbna4v9
I will try tonight with a other esp12e module maybe this one is faulty.
I have this programmer:
https://encrypted-tbn0.gstatic.com/imag ... M5ym3asDQg
I set it to 3.3v with the jumper. Are the rx tx lines then also 3.3v?
Or did I blew up my rx tx lines on the esp. because I don't use a level shifter. The first attempt the rx and tx leds started flickering on the programmer but after 3 seconds it stopped flickering and only the tx led was slowly flashing. I tried the programmer in a pro mini and that still works.
Gpio15 is allready connected to ground with a 10k resistor on the breakout board.
http://tinyurl.com/pbna4v9
I will try tonight with a other esp12e module maybe this one is faulty.
I have this programmer:
https://encrypted-tbn0.gstatic.com/imag ... M5ym3asDQg
I set it to 3.3v with the jumper. Are the rx tx lines then also 3.3v?
Or did I blew up my rx tx lines on the esp. because I don't use a level shifter. The first attempt the rx and tx leds started flickering on the programmer but after 3 seconds it stopped flickering and only the tx led was slowly flashing. I tried the programmer in a pro mini and that still works.
Re: How to connect and upload
Use an other power supply to feed the 3.3 volt.
I had similar issues where I found out two things.
Serial monitor was giving rubbish only due to defective (not enough current) 9 volt adapter.
Also when the serial monitor is open it cant flash to the module and gives this error.
let us know.
Paco
I had similar issues where I found out two things.
Serial monitor was giving rubbish only due to defective (not enough current) 9 volt adapter.
Also when the serial monitor is open it cant flash to the module and gives this error.
let us know.
Paco
-
- Normal user
- Posts: 35
- Joined: 11 Nov 2015, 13:52
Re: How to connect and upload
I already use a separate power supply
arduino ide
https://www.dropbox.com/s/mpypfr8qpvulm ... 4.png?dl=0
battery is used as power supply with a converter 3.3v ams1117
https://www.dropbox.com/s/qmgja1zljldlg ... 4.jpg?dl=0
https://www.dropbox.com/s/qi5wli3bin23k ... 0.jpg?dl=0
Programmer i use (is this the problem???)
https://www.dropbox.com/s/exk53dekr2sn0 ... 5.jpg?dl=0
I reinstalled arduino ide but nothing changes.
Tried a other esp-12e module nothing changes
gpio 15 extra gnd no change
For some reason i get explanation marks at the folder. I dont think this is the problem...
https://www.dropbox.com/s/jq86h31y4mhst ... 1.png?dl=0
https://www.dropbox.com/s/bxmvxs320y1n9 ... 6.png?dl=0
At this moment i really don't have a clue what the problem is
arduino ide
https://www.dropbox.com/s/mpypfr8qpvulm ... 4.png?dl=0
battery is used as power supply with a converter 3.3v ams1117
https://www.dropbox.com/s/qmgja1zljldlg ... 4.jpg?dl=0
https://www.dropbox.com/s/qi5wli3bin23k ... 0.jpg?dl=0
Programmer i use (is this the problem???)
https://www.dropbox.com/s/exk53dekr2sn0 ... 5.jpg?dl=0
I reinstalled arduino ide but nothing changes.
Tried a other esp-12e module nothing changes
gpio 15 extra gnd no change
For some reason i get explanation marks at the folder. I dont think this is the problem...
https://www.dropbox.com/s/jq86h31y4mhst ... 1.png?dl=0
https://www.dropbox.com/s/bxmvxs320y1n9 ... 6.png?dl=0
At this moment i really don't have a clue what the problem is

-
- Normal user
- Posts: 35
- Joined: 11 Nov 2015, 13:52
Re: How to connect and upload
Do I have to pull gpio2 high?
Some say yes some say it doesn't matter.
Some say yes some say it doesn't matter.
Re: How to connect and upload
Explanation marks are there not for nothing.
What makes me thinks is that not all arduino files are with an explanation mark. So this makes you think why.
Are they blocked or managed by any restriction.
Regularly explanation marks are no good.
Do you have an other PC to try?
For IDE are you using this as additional board manager?
See http://www.esp8266.nu/index.php/Tutoria ... are_Upload
http://www.esp8266.nu/index.php/File:Tu ... o_IDE2.png
Your USB to serial converter is good I use this too in same configuration.
I would advise to use a simple wall plugable adapter minimum 500 ma current.
That it shows 3.2 volt does not say the battery can deliver the current needed.
GPIO-2 does not do anything for uploading.
GPIO-0 needs to be low.
GPIO-15 needs to be low.
CHIP-EN needs to be High.
All other pins are not of any influence during upload.
Debug with other PC?
Paco
What makes me thinks is that not all arduino files are with an explanation mark. So this makes you think why.
Are they blocked or managed by any restriction.
Regularly explanation marks are no good.
Do you have an other PC to try?
For IDE are you using this as additional board manager?
See http://www.esp8266.nu/index.php/Tutoria ... are_Upload
http://www.esp8266.nu/index.php/File:Tu ... o_IDE2.png
Your USB to serial converter is good I use this too in same configuration.
I would advise to use a simple wall plugable adapter minimum 500 ma current.
That it shows 3.2 volt does not say the battery can deliver the current needed.
GPIO-2 does not do anything for uploading.
GPIO-0 needs to be low.
GPIO-15 needs to be low.
CHIP-EN needs to be High.
All other pins are not of any influence during upload.
Debug with other PC?
Paco
-
- Normal user
- Posts: 35
- Joined: 11 Nov 2015, 13:52
Re: How to connect and upload
I will try it tonight on my old laptop.
The 3.2v showing is not accurate because the led voltmeter is not calibrated, on the multimeter I measured 3.34volt the battery can deliver more than enough power. I also tried it with a 5v 2A phone supply but it didn't make a difference.
I also tried it with 2x ams1117 in parallel but that would deliver 1.6A still no difference.
Also I cannot see anything in the serial monitor...
The 3.2v showing is not accurate because the led voltmeter is not calibrated, on the multimeter I measured 3.34volt the battery can deliver more than enough power. I also tried it with a 5v 2A phone supply but it didn't make a difference.
I also tried it with 2x ams1117 in parallel but that would deliver 1.6A still no difference.
Also I cannot see anything in the serial monitor...
Re: How to connect and upload
Let us know with other laptop.
-
- Normal user
- Posts: 35
- Joined: 11 Nov 2015, 13:52
Re: How to connect and upload
With my laptop i dont have the explanation marks but still no luck!
same error over and over again.
I tried all power supply's i could find, tried 4 different esp modules, 2 different pc's and still nothing.
I'm getting a little frustrated by the fact that all pro mini's i have 3.3v and 5v work with my programmer and the power supply's i used. So for now i'm going to stop with espeasy for a while. Thanks for your help Paco.
Greetings Dennis
same error over and over again.
I tried all power supply's i could find, tried 4 different esp modules, 2 different pc's and still nothing.
I'm getting a little frustrated by the fact that all pro mini's i have 3.3v and 5v work with my programmer and the power supply's i used. So for now i'm going to stop with espeasy for a while. Thanks for your help Paco.
Greetings Dennis
Re: How to connect and upload
Sorry to hear Dennis.
I can feel your frustration.
There must be something so simple go wrong.
Let me know if I can help you to get you and easy esp going.
I can send you a programmed esp201 at cost price to get you going!
Send me a PM if needed.
Paco
I can feel your frustration.
There must be something so simple go wrong.
Let me know if I can help you to get you and easy esp going.
I can send you a programmed esp201 at cost price to get you going!
Send me a PM if needed.
Paco
-
- Normal user
- Posts: 35
- Joined: 11 Nov 2015, 13:52
Re: How to connect and upload
I think the wiki should be updated with a good tutorial for connecting of different boards there usable gpio's and how the firmware upload sequence works.
I had no luck with uploading my esp-12e module but there is also not enough information on the wiki.
I know how to use a microcontroller like the arduino and rpi. But this module is new too me and I had no clue where to start. Hope the moderators will edit the wiki with some pictures and tutorials otherwise it is again a project that develops fast but lacks information.
Thumbs up for the team and keep on going.
Cheers Dennis
I had no luck with uploading my esp-12e module but there is also not enough information on the wiki.
I know how to use a microcontroller like the arduino and rpi. But this module is new too me and I had no clue where to start. Hope the moderators will edit the wiki with some pictures and tutorials otherwise it is again a project that develops fast but lacks information.
Thumbs up for the team and keep on going.
Cheers Dennis
-
- Normal user
- Posts: 35
- Joined: 11 Nov 2015, 13:52
Re: How to connect and upload
Finally got my esp-12e working.
The nice chinese who made my breakout boards forgot to connect a trace from the vcc pin to the vcc esp pin
After I found that out uploading went easy.
For people that can't upload this is the connection and sequence.
Connect pins:
Vcc to 3.3v
Ch_pd to 3.3v
Gpio15 to gnd
Gnd to gnd
Rx to Tx
Tx to Rx
For uploading power the board with connections above.
Then connect gpio 0 to gnd (keep this connected during uploading)
and connect reset to gnd for 2sec led will blink when released.
In the arduino ide I used: generic esp8266 boards
After uploading disconnect rx tx gpio 0 and again connect reset once to ground. Led will blink and your okay to go.
Watch out with your fingers on the contacts of the esp module it is very sensitive when powered. I allready killed one after it was uploaded and running.
The nice chinese who made my breakout boards forgot to connect a trace from the vcc pin to the vcc esp pin

After I found that out uploading went easy.
For people that can't upload this is the connection and sequence.
Connect pins:
Vcc to 3.3v
Ch_pd to 3.3v
Gpio15 to gnd
Gnd to gnd
Rx to Tx
Tx to Rx
For uploading power the board with connections above.
Then connect gpio 0 to gnd (keep this connected during uploading)
and connect reset to gnd for 2sec led will blink when released.
In the arduino ide I used: generic esp8266 boards
After uploading disconnect rx tx gpio 0 and again connect reset once to ground. Led will blink and your okay to go.
Watch out with your fingers on the contacts of the esp module it is very sensitive when powered. I allready killed one after it was uploaded and running.
Last edited by DMeekelenkamp on 03 Dec 2015, 10:23, edited 1 time in total.
Re: How to connect and upload
Good to hear it works now, I said it must be something simple.
Enjoy the EASY ESP functions.
Paco
Enjoy the EASY ESP functions.
Paco
-
- Normal user
- Posts: 23
- Joined: 20 Nov 2015, 10:53
Re: How to connect and upload
@ DMeekelenkamp : thanks for the post man. I was desperately looking for proper circuit connections.I'll update the status once I test it. 

Re: How to connect and upload
I finally figured out that I needed to switch the TX and RX pins.
Now I get these errors in the Serial Monitor.
Any ideas?
Thank you kindly
Now I get these errors in the Serial Monitor.
Any ideas?
Thank you kindly
- Attachments
-
- Untitled-2.jpg (225.41 KiB) Viewed 22520 times
Re: How to connect and upload
look like you had an exeption, but than it is running normal.
now go to the next step:
the wiki has a start-page for this:
http://www.esp8266.nu/index.php/EasySetup
or in short:
type in "settings" (only this word, means only the letter) on top in the command-line of the serial monitor..
check with a smartphone/tablet, if there is a wlan ESP_0 / ESP_1 ?
connect to it with default wifi password "configesp"
there a some threads around here, where people found the same problem and the same help
hope this helps.
now go to the next step:
the wiki has a start-page for this:
http://www.esp8266.nu/index.php/EasySetup
or in short:
type in "settings" (only this word, means only the letter) on top in the command-line of the serial monitor..
check with a smartphone/tablet, if there is a wlan ESP_0 / ESP_1 ?
connect to it with default wifi password "configesp"
there a some threads around here, where people found the same problem and the same help
hope this helps.

Re: How to connect and upload
I almost logged onto it, then it continues to reset itself. Not sure how to fix this.
- Attachments
-
- Untitled-3.jpg (219.93 KiB) Viewed 22494 times
Re: How to connect and upload
Once your upload is down did you remove gpio0 from gnd ?
As Martinus already say by the past, the price differences between an esp12e nude and a dev board like nodemcu or wemos is so minime, and you win a lot of comfort with.
As Martinus already say by the past, the price differences between an esp12e nude and a dev board like nodemcu or wemos is so minime, and you win a lot of comfort with.
Re: How to connect and upload
maybe you help us helping with showing an image of your setup/wiring?
Re: How to connect and upload
I'm wired up according to this setup
http://rancidbacon.com/files/kiwicon8/E ... _1.0.4.pdf
I have a OSEPP FTDI for power, set to 3.3v.
I flashed the eps again, this time it did the same, but I managed to connect for about 4 seconds, I got to the first screen to add my router password ect. When I pressed submit the esp had rebooted again. I'm looking at getting a better power supply setup. What else could be causing the problem?
http://rancidbacon.com/files/kiwicon8/E ... _1.0.4.pdf
I have a OSEPP FTDI for power, set to 3.3v.
I flashed the eps again, this time it did the same, but I managed to connect for about 4 seconds, I got to the first screen to add my router password ect. When I pressed submit the esp had rebooted again. I'm looking at getting a better power supply setup. What else could be causing the problem?
Re: How to connect and upload
could be a good start... may we wait here for your new results ..?Naythan wrote: I'm looking at getting a better power supply setup.

Re: How to connect and upload
It is a power problem. The USB cable I was using is defective. As soon as I changed to another USB cable it works fine. This project will need to be completely wireless so I do need to switch the power to batteries, but for now this is great! Thanks for putting up with me.
Re: How to connect and upload
sounds to me that the thread could be marked as SOLVED...
Re: How to connect and upload
Hi folks,
it seems I have some sort of a similar problem. Uploading anything successfully to my ESP-07 is totally accidental.
I have an FTR232RL (3.3V) USB/Serial, separate PSU at 3.5V/1A (common grounds with USB/Serial) -actually I have two of these, tried both with multiple USB cables
Rx-Tx crossed, Gpio0 and 15 pulled to ground directly.
I have made breadboard friendly pins soldered onto the ESP board made of male pin headers, so connection seems OK.
1 out of 10 attempts I can successfully upload a sketch ('blink' for example), the next 10 attempts fail...
Yesterday I've managed to upload EspEasy via your flasher (not Arduino IDE), the AP ESP 16122334 (some long number but not ESP_0) appeared for a few seconds on my 'radar' but not anymore...
Now I tried to use Arduino IDE following your tutorial, and I get the following error messages:
"writing flash
............................................................................................................ serialport_receive_C0: D0 instead of C0
warning: espcomm_send_command: didn't receive command response
warning: espcomm_send_command(FLASH_DOWNLOAD_DATA) failed
serialport_receive_C0: 01 instead of C0
warning: espcomm_send_command: didn't receive command response
closing bootloader
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete"
Thank you for your advice and ideas in advance.
it seems I have some sort of a similar problem. Uploading anything successfully to my ESP-07 is totally accidental.
I have an FTR232RL (3.3V) USB/Serial, separate PSU at 3.5V/1A (common grounds with USB/Serial) -actually I have two of these, tried both with multiple USB cables
Rx-Tx crossed, Gpio0 and 15 pulled to ground directly.
I have made breadboard friendly pins soldered onto the ESP board made of male pin headers, so connection seems OK.
1 out of 10 attempts I can successfully upload a sketch ('blink' for example), the next 10 attempts fail...
Yesterday I've managed to upload EspEasy via your flasher (not Arduino IDE), the AP ESP 16122334 (some long number but not ESP_0) appeared for a few seconds on my 'radar' but not anymore...
Now I tried to use Arduino IDE following your tutorial, and I get the following error messages:
"writing flash
............................................................................................................ serialport_receive_C0: D0 instead of C0
warning: espcomm_send_command: didn't receive command response
warning: espcomm_send_command(FLASH_DOWNLOAD_DATA) failed
serialport_receive_C0: 01 instead of C0
warning: espcomm_send_command: didn't receive command response
closing bootloader
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete"
Thank you for your advice and ideas in advance.
Re: How to connect and upload
may you check this twice. exchange with another usb-serial (other chip?),Gorgo wrote: I have an FTR232RL (3.3V) USB/Serial, separate PSU at 3.5V/1A (common grounds with USB/Serial)
or try from raspberry/Linux, if possible.
some people exchanged usb-cable, which helped. may try this?
and maybe try to flash nodemcu with the nodemcu-flash-tool?
descriptions here in the forum and on the nodemcu website. may give this a try to get more information about the malfunction?
Re: How to connect and upload
tozett wrote: may you check this twice. exchange with another usb-serial (other chip?),
or try from raspberry/Linux, if possible.
some people exchanged usb-cable, which helped. may try this?
and maybe try to flash nodemcu with the nodemcu-flash-tool?
descriptions here in the forum and on the nodemcu website. may give this a try to get more information about the malfunction?
Tried two similar USB-Serial, probably I will buy a differend one. Do you have any suggestion which to choose?
I have no access to a Pi... yet.
Tried about 4 USB cables.
Never played with nodemcu yet but I think I will give it a go, thank you.
But I think tomorrow I will try to upload something to the ESP through an UNO first. Just to see if it's still operational or not any more.
Re: How to connect and upload
you could use google picture search to get some wiring diagrams to flash esp through uno..
https://www.google.de/search?q=flash+es ... MQ&dpr=1.1
i tried prolific und ftid usb-to-serial adapters. real ones and chinese clones.
a bit fiddling to get this working with the clones. all worked without any hassle from my pi/linux...
good luck!
https://www.google.de/search?q=flash+es ... MQ&dpr=1.1
i tried prolific und ftid usb-to-serial adapters. real ones and chinese clones.
a bit fiddling to get this working with the clones. all worked without any hassle from my pi/linux...
good luck!

Re: How to connect and upload
For the record:
OK, I tried with my lab PSU adjusted to 3.4V. The board draws 0.21A, but no success with uploading anything, so I stepped back to the first board I used which is soldered to a board with headers, and supplied it DIRECTLY from the FTDI with a 470uF cap, and it worked like a charm. No external PSU...
Now that EspEasy is uploaded, been able to connect to ESP_0, my only problem is that I can't reach the "captive portal hosted by the ESP module". I know it is a different topic but... is there an IP address for this welcome screen?
OK, I tried with my lab PSU adjusted to 3.4V. The board draws 0.21A, but no success with uploading anything, so I stepped back to the first board I used which is soldered to a board with headers, and supplied it DIRECTLY from the FTDI with a 470uF cap, and it worked like a charm. No external PSU...
Now that EspEasy is uploaded, been able to connect to ESP_0, my only problem is that I can't reach the "captive portal hosted by the ESP module". I know it is a different topic but... is there an IP address for this welcome screen?
Re: How to connect and upload
192.168.4.1


Re: How to connect and upload
Thanks, I've found it in the "Using the flashtool to upload the ESP Easy firmware" tutorial accidentally, and having no doubt that I'm a noob at this, but is that IP obvious? 
Perhaps I've missed something important.
Anyway, thank you for your effort, it is working now!

Perhaps I've missed something important.
Anyway, thank you for your effort, it is working now!
Who is online
Users browsing this forum: No registered users and 19 guests