ESP8266烧录后无法读取Flash [英] ESP8266 cannot read flash after programming

查看:640
本文介绍了ESP8266烧录后无法读取Flash的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用基本模块+ OneWire和mDNS的自定义版本在ESP-12E上编写了Flash. 该版本来自我以前使用过的网站,并且该版本一直有效.

I have written the flash on an ESP-12E, using a custom build with the base modules + OneWire and mDNS. The build is from a website i've used before and the build have always worked.

闪存写入显然已成功,但是在写入之后,ESP开始发送垃圾数​​据,并且尚未停止.

The flash write was apparently successful, yet after the write the ESP started to send garbage data and it hasn't stopped yet.

Espressif的ESP8266下载工具无法对Flash进行编程,esptool也是如此. 有趣的部分是:我实际上可以读取AP和STATION的MAC.

The ESP8266 download tool from Espressif fails to program the flash, and so does esptool. The fun part is: I can actually read the MAC for both the AP and the STATION.

GPIO0/2更改没有任何效果,垃圾数据仍然会进入. 尝试使用ESPlorer,PuTTY(序列)和Teraterm读取数据,问题是相同的.

GPIO0/2 changes have no effect whatsoever, garbage data still comes in. Tried to read the data with ESPlorer, PuTTY (Serial) and Teraterm and the problem is the same.

还尝试了从9600到230400的所有标准波特率...

Also tried all standard Baudrates from 9600 to 230400...

现在我完全没有主意了. 这是有关Espressif下载器上的错误的图像:

And now i'm completely out of ideas. Here's an image about the error on the Espressif downloader:

推荐答案

您需要熟悉升级部分.更具体地说,您需要将固件所基于的Espressif SDK的esp_init_data_default.bin刷新到正确的内存地址.

You need to familiarize yourself with the upgrading section in the NodeMCU docs. More specifically you need to flash the esp_init_data_default.bin of the Espressif SDK your firmware builds upon to the correct memory address.

我不知道如何使用NodeMCU Flasher(项目似乎已经停顿了),但是使用esptool.py时,命令如下:

I don't know how to do that with the NodeMCU Flasher (project seems to have stalled btw) but with esptool.py the command is as follows:

esptool.py --port <serial-port-of-ESP8266> write_flash -fm dio -fs 32m 0x00000 <nodemcu-firmware>.bin 0x3fc000 esp_init_data_default.bin

这篇关于ESP8266烧录后无法读取Flash的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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