ESP8266 异常记录2

把10uf电容加上,外部电源供电,可以运行;烧录后不运行处理

 esptool.py --befor no_reset --after no_reset_stub -a hard_re
set  write_flash -z --flash_mode dout --flash_size 1MB 0x0 Ai-Thinker_ESP8266_DOUT_8Mbit_v1.5.4.1-a_20171130.bin

idf.py monitor 

查看技术文档 8266  fatal exception  28 29 访问错误 ,0 为 

错误排除;

芯片虚焊:测芯片电阻 gnd->正极 ,各脚黑笔(电阻5K左右)

连线正常,上电,测晶振输出0.5V左右,未输出芯片损坏或是晶振虚焊

配置:

模拟引脚 供电未加晶振

flash使用winbone 25q32

芯片ESP8266EX 

晶振YXC 26M 电容 22PF (官方8Pf,9pf左右)

rst 接3.3v(未上拉)

P12K 12电阻下拉

外部实验电源供电3v 

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

load 0x4010f000, len 3424, room 16 
tail 0
chksum 0x2e
load 0x3fff20b8, len 40, room 8 
tail 0
chksum 0x2b
csum 0x2b
v00043170
~ld
Mh
Load
��rf cal sector: 1020
freq trace enable 0
rf[112] : 00�
SDK:2.2.2-dev(5ab15d1)/Core:3.1.2=30102000/lwIP:STABLE-2_1_3_RELEASE/glue:1.2-65-g06164fb/BearSSL:b024386
espespespespespespespespespespespespespespespespespespespespespespespespesp

ARUDINO 烧写不能 

使用ESPTOOL.PY  烧写模式 DOUT

esptool.py write_flash --flash_mode dout 0x0    

A fatal error occurred: Invalid head of packet (0x7B): Possible serial noise or corruption.

A fatal error occurred: Invalid head of packet (0x7B): Possible serial noise or corruption.
连线异常,接触不良

连线异常,接触不良

串口被占用

RX TX线过长


A fatal esptool.py error occurred: Invalid head of packet (0x73)
ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 1856, room 16 
tail 0
chksum 0x63
load 0x3ffe8000, len 776, room�
 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 1856, room 16 
tail 0
chksum 0x63
load 0x3ffe8000, len 776, room 8 
tail 0
chksum 0x02
load 0x3ffe8310, len 552, room 8 
tail 0


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

load 0x4010f000, len 3424, room 16 
tail 0
chksum 0x2e
load 0x3fff20b8, len 40, room 8 
tail 0
chksum 0x2b
csum 0x2b
v00043170
~ld
Mh
Load

烧录正常,无法启动,

外接3V电源;USBTTL3.3V也连上(FLASH VCC-GND + 0.1UF电容)

(*网上查到,无法重启,MTD端口 GPIO0 GPIO2接10k电阻,上拉,未验证)

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

load 0x4010f000, len 3424, room 16 
tail 0
chksum 0x2e
load 0x3fff20b8, len 40, room 8 
tail 0
chksum 0x2b
csum 0x2b
v00043380
~ld
Mh
Load
�rf cal sector: 1020
freq trace enable 0
rf[112] : 0�
SDK:2.2.2-dev(5ab15d1)/Core:3.1.2=30102000/lwIP:STABLE-2_1_3_RELEASE/glue:1.2-65-g06164fb/BearSSL:b024386

电源问题,

不加3V外部电源,循环打印

Mh
Load

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 3424, room 16 
tail 0
chksum 0x2e
load 0x3fff20b8, len 40, room 8 
tail 0
chksum 0x2b
csum 0x2b
v00043170
~ld
Mh
Load

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 3424, room 16 
tail 0
chksum 0x2e
//#define TIMEOUT (10000UL)  // Maximum time to wait for serial activity to start

void setup() {
  // put your setup code here, to run once:

  Serial.begin(74880);

delay(200);
   //Serial.detectBaudrate() //may also be called before Serial.begin()
   //There must be activity on the serial port for the baudrate to be detected
  // unsigned long detectedBaudrate = Serial.detectBaudrate(TIMEOUT);

   //if (detectedBaudrate) {
   //  Serial.printf("Detected baudrate");

  //   // Wait for printf to finish
  //   while (Serial.availableForWrite() != UART_TX_FIFO_SIZE) { yield(); }

  //   // Clear Tx buffer to avoid extra characters being printed
  //   Serial.flush();

  //   // After this, any writing to Serial will print gibberish on the serial monitor if the baudrate doesn't match
  //   Serial.begin(detectedBaudrate);
  // } else {
  //   Serial.println("\nNothing detected");
  // }
}

void loop() {
  // put your main code here, to run repeatedly:
  Serial.print("esp");
  delay(500);
  
}

rf cal sector: 1020  freq trace enable 0  rf[112]

ESP8266 nodemcu 无法从深度睡眠唤醒 - 我爱单片机 数码之家

测量反向电压GND 正级 其它负极 测量 QFN短路,虚焊,电阻5K以上

PS C:\Users\Administrator\Desktop\ESP8266-IDF-AT_V2.0_0\ESP8266-IDF-AT_V2.0\ESP8266-IDF-AT_V2.0\factory> esptool.py writ
e_flash 0x0 factory_WROOM-02.bin
esptool.py v4.6.2
Found 1 serial ports
Serial port COM4
Connecting...
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting...
Detecting chip type... ESP8266
Chip is ESP8285
Features: WiFi, Embedded Flash
Crystal is 26MHz
MAC: 54:48:e6:0f:b2:85
Stub is already running. No upload is necessary.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x001fffff...
Compressed 2097152 bytes to 441969...
Wrote 2097152 bytes (441969 compressed) at 0x00000000 in 42.0 seconds (effective 399.4 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
"D:\Arduino15\packages\esp8266\tools\python3\3.7.2-post1/python3" -I "D:\Arduino15\packages\esp8266\hardware\esp8266\3.1.2/tools/upload.py" --chip esp8266 --port "COM4" --baud "115200" "" erase_flash --before no_reset --after soft_reset write_flash 0x0 "C:\Users\Administrator\AppData\Local\Temp\arduino\sketches\2617BAC9876BC3A85781837EFA0FC35F/8266sertest.ino.bin"
esptool.py v3.0
Serial port COM4
Connecting........_____....._____....._____.....__
Chip is ESP8285
Features: WiFi, Embedded Flash
Crystal is 26MHz
MAC: 54:48:e6:0f:b2:85
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Erasing flash (this may take a while)...
Chip erase completed successfully in 13.6s
Compressed 270016 bytes to 198626...
Writing at 0x00000000... (7 %)
Writing at 0x00004000... (15 %)
Writing at 0x00008000... (23 %)
Writing at 0x0000c000... (30 %)
Writing at 0x00010000... (38 %)
Writing at 0x00014000... (46 %)
Writing at 0x00018000... (53 %)
Writing at 0x0001c000... (61 %)
Writing at 0x00020000... (69 %)
Writing at 0x00024000... (76 %)
Writing at 0x00028000... (84 %)
Writing at 0x0002c000... (92 %)
Writing at 0x00030000... (100 %)
Wrote 270016 bytes (198626 compressed) at 0x00000000 in 17.6 seconds (effective 123.1 kbit/s)...
Hash of data verified.

Leaving...
Soft resetting...
 ets Jan  8 2013,rst cause:1, boot mode:(3,6)

load 0x4010f000, len 3424, room 16 
tail 0
chksum 0x2e
load 0x3fff20b8, len 40, room 8 
tail 0
chksum 0x2b
csum 0x2b
v00041ec0
~ld

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

load 0x40100000, len 1856, room 16 
�tail 0
chksum 0x63
load 0x3ffe8000, len 776, room 8 ��tail 0
chksum 0x02
load 0x3ffe8310, len 552, room 8 ��tail 0
chksum 0x79
csum 0x79

2nd boot version : 1.5
  SPI Speed      : 40MHz
  SPI Mode       : DOUT
  SPI Flash Size & Map: 8Mbit(512KB+512KB)
jump to run user1 @ 1000

�,X�9���ѥ���0(IllegalInstructionCause):
epc1=0x4020dd34, epc2=Fata^�ፕ�ѥ���0(IllegalInstructionCause):
epc1=0x40201f3a, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x% ��?Fatal exception 0
ets Jan  8 2013,rst cause:1, boot mode:(3,6)

load 0x40100000, len 1856, room 16 
tail 0
chksum 0x63
load 0x3ffe8000, len 776, room 8 ��tail 0
chksum 0x02
load 0x3ffe8310, len 552, room 8 
tail 0
chksum 0x79
csum 0x79

2nd boot version : 1.5
  SPI Speed      : 40MHz
  SPI Mode       : DOUT
  SPI Flash Size & Map: 8Mbit(512KB+512KB)
jump to run user1 @ 1000

Fatal exception (0): 
epc1=0x402016f6, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
Fatal exception (0): 
epc1=0x402016f6, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
Fatal exception (0): 
PS C:\Users\Administrator\Desktop\ESP8266-01S\ESP8266-01S\原装出厂固件库\Ai-Thinker_ESP8266_AT_Firmware_DOUT_v1.5.4.1-a_20171130\Ai-Thinker_ESP8266_DOUT_8Mbit_v1.5.4.1-a_20171130> esptool.py --befor no_reset --after no_reset_stub -a hard_re
set  write_flash -z --flash_mode dout --flash_size 1MB 0x0 Ai-Thinker_ESP8266_DOUT_8Mbit_v1.5.4.1-a_20171130.bin
esptool.py v4.6.2
Found 1 serial ports
Serial port COM4
WARNING: Pre-connection option "no_reset" was selected. Connection may fail if the chip is not in bootloader or flasher stub mode.
Connecting...
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting...
Detecting chip type... ESP8266
Chip is ESP8285
Features: WiFi, Embedded Flash
Crystal is 26MHz
MAC: 54:48:e6:0f:b2:85
Stub is already running. No upload is necessary.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x000fffff...
Compressed 1048576 bytes to 312179...
Writing at 0x0007d989... (100 %)Traceback (most recent call last):
  File "D:\Espressif\python_env\idf5.0_py3.11_env\Lib\site-packages\esptool\__init__.py", line 1073, in _main
    main()
  File "D:\Espressif\python_env\idf5.0_py3.11_env\Lib\site-packages\esptool\__init__.py", line 868, in main
    operation_func(esp, args)
  File "D:\Espressif\python_env\idf5.0_py3.11_env\Lib\site-packages\esptool\cmds.py", line 595, in write_flash
    esp.flash_defl_block(block, seq, timeout=timeout)
  File "D:\Espressif\python_env\idf5.0_py3.11_env\Lib\site-packages\esptool\loader.py", line 131, in inner
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "D:\Espressif\python_env\idf5.0_py3.11_env\Lib\site-packages\esptool\loader.py", line 1037, in flash_defl_block
    self.check_command(
  File "D:\Espressif\python_env\idf5.0_py3.11_env\Lib\site-packages\esptool\loader.py", line 436, in check_command
    val, data = self.command(op, data, chk, timeout=timeout)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Espressif\python_env\idf5.0_py3.11_env\Lib\site-packages\esptool\loader.py", line 405, in command
    p = self.read()
        ^^^^^^^^^^^
  File "D:\Espressif\python_env\idf5.0_py3.11_env\Lib\site-packages\esptool\loader.py", line 338, in read
    return next(self._slip_reader)
           ^^^^^^^^^^^^^^^^^^^^^^^
StopIteration

A fatal error occurred: The chip stopped responding.
使用有源晶振26M esptool.py 测出晶振为27.X M 串口输出乱码 

使用ESPTOOL.PY 烧写AT 代码 15%时产生错误,芯片无反应
(SCLK 引脚200R电阻)
100%时产生错误;写入固件类型错误,8285?

外部电源 电容
8S85








6_DOUT_8Mbit_v1.5.4.1-a_20171130.bin
esptool.py v4.6.2
Serial port COM4
Connecting...
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting...
Detecting chip type... ESP8266
Chip is ESP8285
Features: WiFi, Embedded Flash
Crystal is 26MHz
MAC: 54:48:e6:0f:b2:85
Stub is already running. No upload is necessary.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x000fffff...
Compressed 1048576 bytes to 312179...
Writing at 0x0000b35e... (15 %)


写入100%后产生错误,读取代码;错误,验证,类型

https://www.cnblogs.com/smartlife/articles/12693792.html

PS C:\Users\Administrator\Desktop\ESP8266-01S\ESP8266-01S\原装出厂固件库\Ai-Thinker_ESP8266_AT_Firmware_DOUT_v1.5.4.1-a_20171130\Ai-Thinker_ESP8266_DOUT_8Mbit_v1.5.4.1-a_20171130> esptool.py --port COM4 write_flash 0x00000 Ai-Thinker_ESP826
6_DOUT_8Mbit_v1.5.4.1-a_20171130.bin
esptool.py v4.6.2
Serial port COM4
Connecting...................
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting...
Detecting chip type... ESP8266
Chip is ESP8285
Features: WiFi, Embedded Flash
Crystal is 26MHz
MAC: 54:48:e6:0f:b2:85
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Flash will be erased from 0x00000000 to 0x000fffff...
Compressed 1048576 bytes to 312179...
Writing at 0x0007d989... (100 %)Traceback (most recent call last):
  File "D:\Espressif\python_env\idf5.0_py3.11_env\Lib\site-packages\esptool\__init__.py", line 1073, in _main
    main()
  File "D:\Espressif\python_env\idf5.0_py3.11_env\Lib\site-packages\esptool\__init__.py", line 868, in main
    operation_func(esp, args)
  File "D:\Espressif\python_env\idf5.0_py3.11_env\Lib\site-packages\esptool\cmds.py", line 595, in write_flash
    esp.flash_defl_block(block, seq, timeout=timeout)
  File "D:\Espressif\python_env\idf5.0_py3.11_env\Lib\site-packages\esptool\loader.py", line 131, in inner
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "D:\Espressif\python_env\idf5.0_py3.11_env\Lib\site-packages\esptool\loader.py", line 1037, in flash_defl_block
    self.check_command(
  File "D:\Espressif\python_env\idf5.0_py3.11_env\Lib\site-packages\esptool\loader.py", line 436, in check_command
    val, data = self.command(op, data, chk, timeout=timeout)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Espressif\python_env\idf5.0_py3.11_env\Lib\site-packages\esptool\loader.py", line 405, in command
    p = self.read()
        ^^^^^^^^^^^
  File "D:\Espressif\python_env\idf5.0_py3.11_env\Lib\site-packages\esptool\loader.py", line 338, in read
    return next(self._slip_reader)
           ^^^^^^^^^^^^^^^^^^^^^^^
StopIteration

A fatal error occurred: The chip stopped responding.
运行时产生错误为
 ets Jan  8 2013,rst cause:1, boot mode:(3,7)

load 0x40100000, len 1856, room 16 
tail 0
chksum 0x63
load 0x3ffe8000, len 776, room 8 
tail 0
chksum 0x02
load 0x3ffe8310, len 552, room 8 
tail 0
chksum 0x79
csum 0x79

2nd boot version : 1.5
  SPI Speed      : 40MHz
  SPI Mode       : DOUT
  SPI Flash Size & Map: 8Mbit(512KB+512KB)
jump to run user1 @ 1000

Fatal exception (0): 
epc1=0x401000b8, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
Fatal exception (0): 
epc1=0x401000b8, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
Fatal exception (0): 
epc1=0x401000b8, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
Fatal exception (0): 
load 0x40100000, len 1856, room 16 
tail 0
chksum 0xa4
load 0x3ffe8000, len 776, room 8 ��tail 0
chksum 0x73
load 0x3ffe8310, len 552, room 8 
tail 0
chksum 0x04
csum 0x04
csum err
ets_main.c 
cd C:\Users\Administrator\Desktop\ESP8266-01S\ESP8266-01S\原装出厂固件库\Ai-Thinker_ESP8266_AT_Firmware_DOUT_v1.5.4.1-a_20171130\Ai-Thinker_ESP8266_DOUT_8Mbit_v1.5.4.1-a_20171130
esptool.py --port COM4 write_flash 0x00000 Ai-Thinker_ESP8266_DOUT_8Mbit_v1.5.4.1-a_20171130.bin
 ets Jan  8 2013,rst cause:1, boot mode:(3,7)

PS C:\Users\Administrator\Desktop\ESP8266-01S\ESP8266-01S\原装出厂固件库\Ai-Thinker_ESP8266_AT_Firmware_DOUT_v1.5.4.1-a_20171130\Ai-Thinker_ESP8266_DOUT_8Mbit_v1.5.4.1-a_20171130> esptool.py --port COM4 write_flash 0x00000 Ai-Thinker_ESP826
6_DOUT_8Mbit_v1.5.4.1-a_20171130.bin
esptool.py v4.6.2
Serial port COM4
Connecting.....................................
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting...
Detecting chip type... ESP8266
Chip is ESP8285
Features: WiFi
WARNING: Detected crystal freq 89.05MHz is quite different to normalized freq 40MHz. Unsupported crystal in use?
Crystal is 40MHz
MAC: 54:48:e6:0f:b2:85
Uploading stub...
PS D:\Espressif\frameworks\esp-idf-v5.0.4> esptool.py flash_id
esptool.py v4.6.2
Found 1 serial ports
Serial port COM4
Connecting...
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting...
Detecting chip type... ESP8266
Chip is ESP8285
Features: WiFi, Embedded Flash
Crystal is 26MHz
MAC: 54:48:e6:0f:b2:85
Stub is already running. No upload is necessary.
Manufacturer: 85
Device: 6014
Detected flash size: 1MB
Hard resetting via RTS pin...
load 0x40100000, len 1856, room 16 
tail 0
chksum 0x80
load 0xf0f88000, len 939524224, room 8 
flash read err, ets_unpack_flash_code
ets_main.c 

 esptool.py erase_flash
esptool.py v4.6.2
Found 1 serial ports
Serial port COM4
Connecting...
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting...
Detecting chip type... ESP8266
Chip is ESP8285
Features: WiFi, Embedded Flash
Crystal is 26MHz
MAC: 54:48:e6:0f:b2:85
Stub is already running. No upload is necessary.
Erasing flash (this may take a while)...
Chip erase completed successfully in 0.0s
Hard resetting via RTS pin...

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值