GPIO-0 hardwired or pull up resistor?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
mgennip
Normal user
Posts: 22
Joined: 17 Jun 2016, 19:22

GPIO-0 hardwired or pull up resistor?

#1 Post by mgennip » 08 Jul 2016, 18:36

Looking at the ESP8266 datasheet from Espressiff it tells how to connect GPIO-0, GPIO-2 and GPIO-15. From the table you can see that GPIO-0 level should be High at boot, for normal boot.

Hardwiring GPIO-0 to VCC won't work. This should be done with a series resistor with a value about 10k. If hardwired to GND, ESP is in FLASH mode, if hardwired to VCC, ESP is in some other not described state. If connected to a pull up resistor, ESP is in normal boot state.

Can anyone explain why hardwiring to VCC is not working? According to the datasheet this is not correct.

costo
Normal user
Posts: 490
Joined: 21 Nov 2015, 15:03

Re: GPIO-0 hardwired or pull up resistor?

#2 Post by costo » 09 Jul 2016, 02:31

Hardwiring GPIO-0 to Vcc will destroy your ESP when you (accidentally) make GPIO-0 low, which is easy to do with a command like http://<ESP IP address>/control?cmd=GPIO,0,0
So ALWAYS use pullup/pulldown resistors of about 10k when you want to force a GPIO in a certain state.

To answer the question: I believe you can directly connect GPIO0 to GND to get in FlashMode and connect GPIO0 directly to VCC for normal mode.
To my knowledge there is no difference in the bootup state with or without a pullup resistor.

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests