不能编程ESP8266 [英] Cannot program ESP8266

查看:5520
本文介绍了不能编程ESP8266的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

蓝色LED该模块上电后闪烁,红色的岿然不动,我甚至可以通过wifi连接到它。但我不能编程。我试过Arduino的IDE,不同的固件闪光灯(像NodeMCU,XTCOM)。我使用的Arduino兆。

Blue led is blinking after powering up the module, the red one stays on, I can even connect to it via wifi. But I cannot program it. I tried Arduino IDE, different firmware flashers (Like NodeMCU, XTCOM). I'm using Arduino Mega.

下面是我的初始设置:

VCC - 3.3 V on Arduino
RST - nothing
CH_PD - 3.3 V on Arduino
TX - RX on Arduino (TX is transmitting data to RX, so I don't need a voltage divider, right?)
RX - voltage divider (R1 = 10K, R2 = 20K) - TX on Arduino
GPIO0 - GND on Arduino
GPIO2 - nothing
GND - GND on Arduino

然后我试图从上传Arduino的IDE草图,并得到了以下错误:

Then I tried uploading a sketch from the Arduino IDE and got the following error:

warning: espcomm_sync failed 
error: espcomm_open failed

尝试不同的IDE,程序员后,串口我试着固件闪光灯至少看看我是否能与之通信。 NodeMCU例如刚
显示等待陆委会与GPIO0到地面,没有。

After trying different IDEs, programmers, serial port I tried firmware flashers to at least see if I can communicate with it. NodeMCU for example just showed "Waiting MAC" with GPIO0 to ground and without.

我也试过TX连接到TX和RX到RX,但得到了相同的结果。试图通过分压器连接RX为好。

I also tried connecting TX to TX and RX to RX but got the same results. Tried connecting RX through a voltage divider as well.

通过此设置蓝色LED是常亮。我记得读书的地方,可能会发生由于电力供应不足,
所以我也试过没有分压器连接两个引脚(蓝色LED是电,所以希望我没有刻录后,仍然闪烁)。
我也试着连接GPIO0至3.3V,而不是它在所有连接到任何东西,RST连接到3.3V,GPIO2连接到地面为好。
兆丰有4套TX和RX引脚,所以我想他们都出去TX / RX0,1,2和3。

With this setup the blue led was constantly on. I remembered reading somewhere that that could happen due to insufficient power supply, so I also tried connecting both pins without the voltage dividers (the blue led is still blinking after the power up so hopefully I didn't burn them). I also tried connecting GPIO0 to 3.3V and not connecting it to anything at all, connecting RST to 3.3V, connecting GPIO2 to ground as well. On Mega there are 4 sets of TX and RX pins, so I tried them all out TX/RX0,1,2 and 3.

不过不知道是怎么回事:(

Still no idea what's going on :(

推荐答案

原因可能是两件事情之一:

The cause can be one of two things:


  1. 动力不足。试图从一个外部3.3V电源的ESP8266供电如实验室供应。两个完全充电的AA电池应该做的伎俩了。确保您的串口适配器的GN​​D引脚也连接到ESP的GND引脚,以提供一个共同点。

  1. Insufficient power. Try to power the ESP8266 from an external 3.3V power supply such as a lab supply. Two fully charged AA batteries should do the trick too. Make sure your serial adapter's GND pin is also connected to the ESP's GND pin in order to provide a common ground.

ESP8266是不是在编程模式。确保GPIO0连接到GND和关闭ESP关闭并重新打开。然后,它会开机进入编程模式。一旦编程,你可以把它关闭GND。

ESP8266 is not in programming mode. Make sure GPIO0 is attached to GND and turn the ESP off and on again. It will then boot into programming mode. Once programmed, you can take it off GND.

这篇关于不能编程ESP8266的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆