首页 文章

ESP8266模块在启动时失败

提问于
浏览
1

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

对于 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

对于今天使用他们的 Cloud 服务构建的 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

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

注1:我设法成功刷新了固件,每次都“验证OK”,因此连接良好 .

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

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

1 回答

  • 1

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

相关问题