Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By btidey
#68236 I put together a simple auto upload similar to the one described on http://hallard.me/esp8266-autoreset/ which can work using just the DTR pulse to trigger the program mode. I made a couple of changes as I didn't want GPIO0 tied direct to DTR line as that makes it a bit trickier to do a normal reset. That works reliably.

To understand the timing a bit more I programmed an ESP8266 to give me a controllable RST and GPIO pulse generator to test the effect on another module. I discovered some things that may be useful if anybody is driving the reset line or setting into program mode.

1) As described in the link the reset pulse was coupled into CH_PD rather than RST to make it work for all modules. This wasn't really explained there. I have found that on the ESP-12F modules I use, the RST line seems to be pulled high via a 12K resistor but also tied to ground through a 470R and 1uF capacitor in series. This maybe to give a delayed reset on power up. However, this does have consequences on driving it logically rather than via a reset switch. Using a capacitively coupled pulse would need a high value capacitor to overcome the 1uF. Any drive should either have an impedance low with respect to 470R or a pulse width long enough to discharge the 1uF capacitor.

2) The minimum pulse width for reset seems to be around 300uSec. This applies to both the RST line and the CH_PD line

3) The GPIO0 line must be maintained low for some considerable time after the reset in order to enter PROG mode. I found this to be about 17mSec. I needed to make my capacitively coupled GPIO circuit have a pulse width greater than this.

An example trace when driving the RST line through a 220R is shown here.

RST220.png


The initial step is the effect of the internal 470R resistor and then the capacitor starts to discharge.
You do not have the required permissions to view the files attached to this post.
User avatar
By werty37
#70798 Hi

I was wondering if you cracked this? Is there anything available in the market which can flash an ESP12 without having to include headers or any additional components in the circuit? Maybe like the pogo programmer:

https://hackaday.io/project/9459-esp12-pogo-programmer

But using a CH340G instead of an FTDI.

I was looking at these cheap USB To RS232 TTL CH340G Converter Module Adapter available on Ebay and build a bridging circuit with Pogo pins to flash the ESP12

Any idea?

Cheers
S