【问题标题】:ESP8266 module fails at bootESP8266 模块在启动时失败
【发布时间】:2023-03-19 08:27:02
【问题描述】:

我有一个连接到 USB 转 UART 模块的 ESP8266MOD ESP-12-E。当我尝试与模块通信时,我得到一些可理解的输出,然后出现错误消息并且通信关闭。

对于 ai-thinker-0.9.5.2-115200espressif-nonos-2.0.0-SDK (这不是文件的实际名称):

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

load 0x40100000, len 816, room 16  
tail 0 
chksum 0x8d load 0x3ffe8000, len 788, room 8  
tail 12 
chksum 0xcf ho 0 
tail 12 
room 4 load 0x3ffe8314, len 288, room 12  tail 4 
chksum 0xcf 
csum 0xcf

2nd boot version : 1.2   
SPI Speed      : 40MHz   
SPI Mode       : DIO SPI 
Flash Size : 32Mbit
jump to run user1

对于今天使用他们的云服务构建的 nodeMCU 固件(查看日期),我收到一条较短的消息:

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

load 0x40100000, len 26160, room 16  
tail 0 
chksum 0xb1 
load 0x3ffe8000, len 2192, room 8  
tail 8 
chksum 0x5d 
load 0x3ffe8890, len 136, room 0  
tail 8 
chksum 0xd8 
csum 0xd8

此外,错误消息是: 对于 linux 上的 miniterm.py:

Exception in thread rx:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/bin/miniterm.py", line 403, in reader
    data = self.serial.read(self.serial.in_waiting or 1)
  File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 495, in read
    raise SerialException('device reports readiness to read but returned no data (device disconnected or multiple access on port?)')
SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)

Exception in thread tx:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/bin/miniterm.py", line 444, in writer
    self.serial.write(self.tx_encoder.encode(text))
  File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 547, in write
    raise SerialException('write failed: %s' % (v,))
SerialException: write failed: [Errno 5] Input/output error

对于 windows 上的 Putty,我似乎在启动过程的同一阶段也遇到了错误。

注意1:我已经成功刷了新固件,每次都“verify OK”,所以连接很好。

注意2:当我在正常启动模式下使用模块时(GPIO15低,GPIO0和GPIO2浮动),当EN(启用)引脚为高(3.3v)时,windows上的PORT8和linux上的/dev/ttyUSB0都消失了。此外,在与 putty 或 miniterm 进行任何类似的通信时,我需要保持 EN 浮动,以便系统看到模块,然后连接软件,然后将 EN 置于高电平(否则会卡住)。

也尝试使用 ESPlorer,但无法自动检测固件。我在几个固件上遇到了这个错误,我尝试了很多波特率。

【问题讨论】:

    标签: linux putty esp8266 usbserial


    【解决方案1】:

    问题出在 ESP8266 单元的电源上。我没有从 USB 转 UART 模块提供 3.6V,而是使用了另一个提供 3.3V 的电压源,也可能更高的电流。 请注意,模块必须提供 3.0V - 3.6V 的电压,并且可能使用几百毫安,因此旧电源略高于 3.6V,可能无法提供所需的电流。

    【讨论】:

    • 正式地说,任何在 2.8v 和 3.8v 之间有足够安培的东西都可以工作。
    猜你喜欢
    • 2017-03-15
    • 2023-03-04
    • 2022-06-16
    • 1970-01-01
    • 2021-05-21
    • 2021-08-12
    • 2014-03-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多