-->
Page 2 of 2

Re: Problem flashing after RST and GPIO16 connected...

PostPosted: Sat Apr 21, 2018 3:47 am
by MaxBotev
Thanks for the solution, also worked for me! (added 1K). Strange thing - it was working fine with the plane wire for a week or so and then suddenly stopped.

Re: Problem flashing after RST and GPIO16 connected...

PostPosted: Fri Sep 21, 2018 1:52 pm
by Melanie_T
There is one more thing that can happen, which is that, when you flash a chip that has been sleeping, it may get reset by the RTC while flashing.

This little bit of magic can be use to disconnect the RTC from GPIO16:

WRITE_PERI_REG(PAD_XPD_DCDC_CONF, (READ_PERI_REG(PAD_XPD_DCDC_CONF) & 0xffffffbc) | (uint32)0x1);

After that, RTC resets will no longer appear on GPIO16 until deep sleep is invoked again.

Re: Problem flashing after RST and GPIO16 connected...

PostPosted: Mon Feb 04, 2019 9:22 pm
by Stevo Keano
martinayotte wrote:This is because you used a plain wire between RST and GPIO16.
The issue is that GPIO16 provides a strong HIGH during deepSleep and your external reset from Serial-TTL is fighting to make a reset, but loosing, the GPIO16 is the strongest.

To avoid such issue, simply replace the wire by a 470R or 1K between GPIO16 and RES, which will allow the Serial-TTL to win. (you can also use a schottky diode with the cathode on GPIO16 side)


You totally nailed this! My rig was failing at wake-up and the 1k resistor fixed the wake-up too.

Cheers!