Description
Basic Infos
- This issue complies with the issue POLICY doc.
- I have read the documentation at readthedocs and the issue is not addressed there.
- I have tested that the issue is present in current master branch (aka latest git).
- I have searched the issue tracker for a similar issue.
- If there is a stack dump, I have decoded it.
- I have filled out all fields below.
Platform
- Hardware: ESP-12F - ESP8266MOD
- Core Version: SDK:3.0.0-dev(c0f7b44)/Core:2.5.0
- Development Env: Arduino IDE 1.8.5
- Operating System: Windows 10
Settings in IDE
- Module: Generic ESP8266 Module
- Flash Mode: QIO (try DIO also)
- Flash Size: 4MB
- lwip Variant: v1.4|v2 Lower Memory|Higher Bandwidth (try all)
- Reset Method: none
- Flash Frequency: 40Mhz
- CPU Frequency: 80Mhz
- Upload Using: SERIAL
- Upload Speed: 115200
Problem Description
A few months ago, we start developing a custom PCB using ESP8266, ESP12F from AI.
esptool.py --port COM14 flash_id
esptool.py v2.6
Serial port COM14
Connecting...
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
MAC: cc:50:e3:04:37:7e
Uploading stub...
Running stub...
Stub running...
Manufacturer: 20
Device: 4016
Detected flash size: 4MB
Hard resetting via RTS pin...
After successfully deploy 100 boards, we receive a new batch from a distributor on China. The new chip, looks the same as the old one, except it has an Expressif logo instead of AI logo.
Then, using esptool, we check that was manufactured by other factory
esptool.py --port COM14 flash_id
esptool.py v2.6
Serial port COM14
Connecting...
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
MAC: dc:4f:22:5e:93:23
Uploading stub...
Running stub...
Stub running...
Manufacturer: 0e
Device: 4016
Detected flash size: 4MB
Hard resetting via RTS pin...
The PCB was build using all the following design rules and experiences from Espressif, blogs, etc.
Example:
https://www.instructables.com/id/ESP-12F-ESP8266-Module-Minimal-Breadboard-for-Flas/
Also, we using several recomendations from videos of Andreas Spiess. @SensorsIot and read post by @igrr.
-
Power: 3 x AA Batteries (4,5v)
-
MCP1700 LDO for 3,3v
-
Capacitor filters: 1000uF and .1uf - VCC to GND
-
GPIO0 - pull up 10k resistor - VCC
-
GPIO2 - pull up 10k resistor - VCC
-
GPIO15 - pull down 10k resistor - GND
-
EN - pull up 10k resistor - VCC
-
RESET - pull up 10k resistor - VCC
-
HARD WIRED GPIO16 to RESET pin.
The sensor, reads a value, then enter a deepSleep cycle until wakeups.
All was working fine in more than 100 pcb!!!
After receiving the new batch, with the same PCB and CODE, the ESP hangs after wake up.
We already try 10 chips off the new bach, all have the same issue.
Trying this simple sketch:
MCVE Sketch
/**
* An example showing how to put ESP8266 into Deep-sleep mode
*/
#include <Arduino.h>
extern "C" {
#include <user_interface.h>
}
#define STATUS_LED 2
void setup() {
pinMode(STATUS_LED, OUTPUT);
Serial.begin(74880);
Serial.setTimeout(2000);
digitalWrite(STATUS_LED, false);
// Wait for serial to initialize.
while(!Serial) { }
Serial.print("Chip ID: ");
Serial.println(ESP.getChipId());
rst_info *rinfo = ESP.getResetInfoPtr();
Serial.print(String("\nResetInfo.reason = ") + (*rinfo).reason + ": " + ESP.getResetReason() + "\n");
Serial.println(".");
Serial.println("I'm awake.");
delay(1000);
Serial.println("Going into deep sleep for 3 seconds");
ESP.deepSleep(3e6);
delay(5000);
}
void loop() {
}
Debug Messages ON WORKING CHIP
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v951aeffa
~ld
Chip ID: 276350
ResetInfo.reason = 5: Deep-Sleep Wake
.
I'm awake.
Going into deep sleep for 3 seconds
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v951aeffa
~ld
Chip ID: 276350
ResetInfo.reason = 5: Deep-Sleep Wake
.
I'm awake.
Going into deep sleep for 3 seconds
Debug Messages ON NOT WORKING CHIP
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v951aeffa
~ld
Chip ID: 6198051
ResetInfo.reason = 5: Deep-Sleep Wake
.
I'm awake.
Going into deep sleep for 3 seconds
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
Hangs/Freeze until power down, or hard reset (button from RESET to GND).
Things we already try
- Erase all flash memory using esptool.py
- Changing firmware version from ESP CORE (2.0.0, 2.1.0, 2.4.0, 2.5.0)
- Changing values of pullup resistors (10k, 4k7, 1k)
- Using a stable protoboard 5v power bank
- Connection from RESET to GPIO16
-Hardwire
-RESISTOR 470, 1k, 10
-Using a diode, schottky
-Adding aditional 10pF capacitor from RESET to GND
Similar ISSUES
#5892
#2768
universam1/iSpindel#59
Please HELP US!!! Can be a faulty batch?