ESP-01 Arduino espcomm issue

Hi.

I have installed a a wifi module on my arduino but when i’m trying to put the code i have this errors:

esptool v0.4.9 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
	setting board to nodemcu
	setting baudrate from 115200 to 115200
	setting port from /dev/tty.usbserial to /dev/cu.usbmodem1421
	setting address from 0x00000000 to 0x00000000
	espcomm_upload_file
	espcomm_upload_mem
opening port /dev/cu.usbmodem1421 at 115200
	tcgetattr
	tcsetattr
	serial open
opening bootloader
resetting board
trying to connect
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
trying to connect
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
trying to connect
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
resetting board
trying to connect
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
trying to connect
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
trying to connect
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
resetting board
trying to connect
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
trying to connect
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
trying to connect
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed

I put a screeeshot of my arduino ide configurations.

On the esp-01 i have the next wiring connections:

esp-01 —> arduino

tx —> tx
rx —> rx
vcc —> 3.3v
reset → not connected
ch_pd → 3.3v
gpio0/2 -->3.3v

I’ve read a tons of “solutions” but nothing works. Maybe my setup isn’t good from the start and that’s why.
Can someone give me an idea?

Thx

Hi,

it looks like your esp is not in flash mode. Therefore you should connect gpio0 to ground.
If you need more information take a look on the esp-01 cheat sheet I have attached.

Read this: A Beginner's Guide to the ESP8266

Pieter

Flori89:
Hi,

it looks like your esp is not in flash mode. Therefore you should connect gpio0 to ground.
If you need more information take a look on the esp-01 cheat sheet I have attached.

from your image "flash mode" means "boot from flash"? if that is the case it says oth should be high. (And high i mean i connect them directly to 3.3v)

PieterP:
Read this: A Beginner's Guide to the ESP8266

Pieter

Thx for the guide, but i am short of piece right now and from what i read in the guide i need some rezistance of 4xx ohms, which i don't currently have, and some other pieces also. There must be a way to make it take the coe only with what i have now because i did it once, but i had to pull the wires off and i cna't rememeber the combinations right. :frowning:

The combinations are the same. If you really need to, you can temporarily try it without the resistors.

To enter programming mode:
1: pull reset low
2: pull GPIO0 low
3: pull reset high or leave floating
4: leave GPIO0 floating.

(CH_PD should always be high, GPIO2 should be anything but low).

"Enabling the chip

If you're using a bare-bone ESP-## board by AI Thinker, you have to add some resistors to turn on the ESP8266, and to select the right boot mode.
Enable the chip by connecting the CH_PD (Chip Power Down, sometimes labeled CH_EN or chip enable) pin to VCC through a 10KΩ resistor.
Disable SD-card boot by connecting GPIO15 to ground through a 10KΩ resistor.
Select normal boot mode by connecting GPIO0 to VCC through a 10KΩ resistor.
Prevent random resets by connecting the RST (reset) pin to VCC through a 10KΩ resistor.
Make sure you don't have anything connected to GPIO2 (more information in the next chapter).
Adding reset and program buttons

If your ESP8266 board doesn't have a reset button, you could add one by connecting a push button to between the RST pin and ground.

To put the chip into programming mode, you have to pull GPIO0 low during startup. That's why we also need a program button. Because it's possible to use GPIO0 as an output, we can't directly short it to ground, that could damage the chip. To prevent this, connect 470Ω resistor in series with the switch. It's important that this resistance is low enough, otherwise, it will be pulled high by the 10KΩ resistor we added in the previous paragraph.

..........................

Manual reset and manual program

This only applies to boards without an on-board USB-to-Serial converter.

If you don't have a USB-to-Serial converter with DTR and RTS lines, you could also just use the reset and program buttons we added in the hardware chapter. To get the ESP in program mode, GPIO0 must be low while booting:
press and hold the reset button
press and hold the program button
release the reset button, the ESP will boot in program mode
release the program button
upload the sketch
If you want to get out of program mode without uploading, just press reset (without pressing the program button)."

I found this in the guide above. Could this be a solution ?

PieterP:
The combinations are the same. If you really need to, you can temporarily try it without the resistors.

To enter programming mode:
1: pull reset low
2: pull GPIO0 low
3: pull reset high or leave floating
4: leave GPIO0 floating.

(CH_PD should always be high, GPIO2 should be anything but low).

I tried and i get this in the monitor :

ets Jan  8 2013,rst cause:4, boot mode:(1,7)

wdt reset

I solve the problem at hand having the next configuration:

esp-01 —> arduino

tx —> rx
rx —> tx
vcc —> 3.3v
reset → not connected
ch_pd → 3.3v
gpio2 -->3.3v
gpio0 → gnd

and the arduino ide setting like above.

But i have another problem. I am trying to connect a display 16x2 to the board. I did this separatly so the display works, but only if i select arduino board (from board manager) not the espmodule board.

Any idea how can i fix this ?