这个问题与此有关,不能编程ESP8266,但设置不同。
我有一个NodeMCU devkit v1,它的商业名称是NodeMCU v2。我试过不同的设置来连接devkit。
AI-THINKER-adfe21
。- Then I tried with the [nodemcu-flasher](https://github.com/nodemcu/nodemcu-flasher) - WINDOWS.
1. _Without any button or pin to ground_. I press Flash in the flasher and stay `Waiting MAC` and the log says `Begin Find ESP8266` as the question I told in the begin and the ESP's led (_blue led_) blinks.
2. _Holding FLASH, press RESET, release FLASH_. Still the same like **1**.
3. _Wire D3 (GPIO0) to GND_. Same result
- With [ESPtool](https://github.com/themadinventor/esptool) - LINUX - Trying these commands `python2 esptool.py --port /dev/ttyUSB0 read_mac python2 esptool.py --port /dev/ttyUSB0 write_flash 0x00000 firmware.bin`
1. _Without any button or pin to ground_. The output for the commands was `Connecting... A fatal error occurred: Failed to connect to ESP8266`
2. _Holding FLASH, press RESET, release FLASH_. Same
3. _Wire D3 (GPIO0) to GND_. Same result.
- Via Arduino IDE, I installed the ESP8266 board and selected `NodeMCU 1.0`. The result to try upload some code -> `warning: espcomm_sync failed error: espcomm_open failed`
UNO | NodeMCU 5v -> Vin GND -> GND Rx -> Tx Tx -> Rx
我做的最后一个测试是使用Putty或Arduino SerialMonitor连接到COM3
或/dev/ttyUSB0
并打开NodeMCU。我应该看到一些字符或垃圾,如果它以不同的波特率。但我什么也没有,终端是空白的。我重新启动NodeMCU,将其放入Flash模式。无响应。
有什么解决方案,技巧或技巧使它可编程吗?
PS:我知道NodeMCU处于闪存模式,因为它的wifi消失了。
编辑:
我发现了一些东西。
我刚用移动充电器连接了NodeMcu,并将D0连接到串行接地,D3连接到串行Rx。在带有115200波德率的腻子上,我可以重新设置下面的代码。
node : sta(mac address) + softAP(mac address)
add if0
add if1
dhcp server start:(ip:192.168.4.1, mask:255.255.255.0,gw:192.168.4.1)
bcn 100
发布于 2016-05-01 23:08:27
我一直与节点-mcu闪光灯和电子工具一起工作.首先,在esptool中,yo应该在调用中使用更多参数。用这样的东西
python esptool.py -p SERIAL_PORT_NAME --波特9600 write_flash -flash_size=8m 0固件-组合.baud
小心波德率,我总是用9600。如果您喜欢使用windows程序,您应该只连接ESP8266通过usb,而不是连接任何其他引脚。如果它仍然给您带来问题,您应该检查您是否安装了com端口。
祝好运
发布于 2016-10-17 03:19:40
如果您正在使用esptool (无论是在Linux还是windows中),您应该在esptool命令中包含-fm和-fs。如果您没有包含这两个参数,即使它显示成功上传,也不会有响应。您可以参考本youtube教程中的详细内容,或它在nodemcu、V2或v1.0中闪烁固件的描述。
esptool.py --port [serial-port-of-ESP8266] write_flash -fm [mode] -fs [size] 0x00000 [nodemcu-firmware].bin
关于如何使用esptool(Windows)闪存固件的教程:
https://www.youtube.com/watch?v=MHrm7axsImI
干杯!
发布于 2018-03-05 15:59:56
也许你可以试试这个设置。
$sudo esptool.py -p /dev/ttyUSB0 --baud 115200 write_flash -fs 16m -fm qio -ff 0x00000 firmware.bin
https://stackoverflow.com/questions/35213950
复制相似问题