Activating Flash mode leads to clock out on GPIO0
Posted: Sun Oct 22, 2017 9:02 am
I'm trying to get my ESP-12F into Flash mode to upload a program from Arduino IDE. However, when I try to bring the ESP-12F into Flash mode, I get the clock out (26 MHz) on GPIO0. If I try to upload from the Arduino IDE, I get "error: espcomm_upload_mem failed". And on Serial Monitor, set to 74880 baud, I get " ets Jan 8 2013,rst cause:2, boot mode:(1,6)". i.e. I cannot upload any programs to the ESP-12F.
My setup is as follows:
- Powering the ESP-12F with 3.3V from AMS1117. 100 uF capacitor between Vcc and Ground.
- Reset pulled high with 1k, pulled to Ground when pushbutton pressed. 100nF capacitor is connected from
- Reset to GND to minimise noise.
- GPIO15 pulled to GND via 2k
- GPIO2 pulled to Vcc via 10k
- GPIO0 pulled to Vcc via 1k, pulled to GND when pushbutton pressed.
- CP2102 3.3V USB to UART serial interface module adaptor connects my laptop to the ESP-12.
- GND to GND
- Tx - Rx
- Rx - Tx
The steps I take to get the ESP-12 into flash mode are as follows:
1. Scope shows both Reset and GPIO0 are high when I power on the circuit.
2. Press and hold button on GPIO0. GPIO0 drops to 0V.
3. Press and hold button on Reset. Now both reset and GPIO0 are at 0V.
4. Release Reset button. GPIO0 shows a 26MHz signal. DC average level is 0V, AC RMS = 385mV
5. Release the GPIO0 button. GPIO0 shows a 26MHz signal. DC average level is 2.05V, AC RMS = 630mV
I would have expected GPIO0 to return to 3.3V, but instead it has a clock output wave, centred on 2.05 VDC.
If I try to upload a program, I get the "error: espcomm_upload_mem failed".
Any thoughts? Have I wired something incorrectly? What can I try to get the ESP-12 into Flash mode?
Any suggestions welcome!
My setup is as follows:
- Powering the ESP-12F with 3.3V from AMS1117. 100 uF capacitor between Vcc and Ground.
- Reset pulled high with 1k, pulled to Ground when pushbutton pressed. 100nF capacitor is connected from
- Reset to GND to minimise noise.
- GPIO15 pulled to GND via 2k
- GPIO2 pulled to Vcc via 10k
- GPIO0 pulled to Vcc via 1k, pulled to GND when pushbutton pressed.
- CP2102 3.3V USB to UART serial interface module adaptor connects my laptop to the ESP-12.
- GND to GND
- Tx - Rx
- Rx - Tx
The steps I take to get the ESP-12 into flash mode are as follows:
1. Scope shows both Reset and GPIO0 are high when I power on the circuit.
2. Press and hold button on GPIO0. GPIO0 drops to 0V.
3. Press and hold button on Reset. Now both reset and GPIO0 are at 0V.
4. Release Reset button. GPIO0 shows a 26MHz signal. DC average level is 0V, AC RMS = 385mV
5. Release the GPIO0 button. GPIO0 shows a 26MHz signal. DC average level is 2.05V, AC RMS = 630mV
I would have expected GPIO0 to return to 3.3V, but instead it has a clock output wave, centred on 2.05 VDC.
If I try to upload a program, I get the "error: espcomm_upload_mem failed".
Any thoughts? Have I wired something incorrectly? What can I try to get the ESP-12 into Flash mode?
Any suggestions welcome!