Issues with flashing the ESP01
Posted: Mon Jun 05, 2017 3:02 pm
Hi everyone,
I'm new with the ESP01, and I'writing here to get (hopefully) some support with flashing the ESP01.
So far I have not been able to write anything to the board.
==> Could you please help me to understand what I'm doing wrong? I believe I'm doing some mistake with wiring.
For the HW I'm using, please take a look at the section "hardware" below.
Test I've done
1) Following this guide, paragraph "What do I have to connect?", the port on the mac is not recognised. Is the described wiring wrong? The port has never been recognzized.
URL: https://benlo.com/esp8266/esp8266QuickStart.html
ESP01 Wiring
- ESP01 RX --> FTDI232 TX
- ESP01 GPIO0 --> GND (the ATX power source)
- ESP01 GPIO2 --> not connected
- ESP01 GND --> GND (the ATX power source)
- ESP01 VCC --> 3.3V GND (the ATX power source)
- ESP01 RST --> 3.3V GND (the ATX power source)
- ESP01 CHPD --> 3.3V GND (the ATX power source)
- ESP01 TX --> FTDI232 RX
FTDI232 Wiring
- DTR --> not connected
- RX --> ESP01 TX
- TX --> ESP01 RX
- Vcc --> not connected
- CTS --> not connected
- GND --> GND (the ATX power source)
- USB --> MAC
2) Following this guide, with a different wiring... no success. Initially the port was recognised, than any more.
Initially I got this error (that by the way looks to be quite frequent):
URL: http://www.arduinesp.com/getting-started
ESP01 Wiring
- ESP01 RX --> FTDI232 TX
- ESP01 GPIO0 --> FTDI232 CTS
- ESP01 GPIO2 --> LED (+)
- ESP01 GND --> GND (the ATX power source)
- ESP01 VCC --> 3.3V GND (the ATX power source)
- ESP01 RST --> FTDI232 DTR
- ESP01 CHPD --> 3.3V GND (the ATX power source)
- ESP01 TX --> FTDI232 RX
FTDI232 Wiring
- DTR --> ESP01 RST
- RX --> ESP01 TX
- TX --> ESP01 RX
- Vcc --> not connected
- CTS --> ESP01 GPIO0
- GND --> GND (the ATX power source)
- USB --> MAC
Hardware
- I'm using Arduino IDE on a mac to program the board, and I have installed the extension for the esp8266.
- To the usb port I've connected a usb to serial converter, FTDI232. These are the ports of the device: DTR, RX, TX, Vcc, CTS and GND. The pin to set the voltage is on 3.3V.
- The usb to serial converter is connected to the ESP01. The speed is set to 115200, I haven't changed other params.
- I use an ATX power source from an old PC to power the ESP01. From this power source I'm getting the 3.3V and I'm using its GND.
- I'm using a breadboard to wire everything.
This is the code I'm trying to flash.
I'm new with the ESP01, and I'writing here to get (hopefully) some support with flashing the ESP01.
So far I have not been able to write anything to the board.
==> Could you please help me to understand what I'm doing wrong? I believe I'm doing some mistake with wiring.
For the HW I'm using, please take a look at the section "hardware" below.
Test I've done
1) Following this guide, paragraph "What do I have to connect?", the port on the mac is not recognised. Is the described wiring wrong? The port has never been recognzized.
URL: https://benlo.com/esp8266/esp8266QuickStart.html
ESP01 Wiring
- ESP01 RX --> FTDI232 TX
- ESP01 GPIO0 --> GND (the ATX power source)
- ESP01 GPIO2 --> not connected
- ESP01 GND --> GND (the ATX power source)
- ESP01 VCC --> 3.3V GND (the ATX power source)
- ESP01 RST --> 3.3V GND (the ATX power source)
- ESP01 CHPD --> 3.3V GND (the ATX power source)
- ESP01 TX --> FTDI232 RX
FTDI232 Wiring
- DTR --> not connected
- RX --> ESP01 TX
- TX --> ESP01 RX
- Vcc --> not connected
- CTS --> not connected
- GND --> GND (the ATX power source)
- USB --> MAC
2) Following this guide, with a different wiring... no success. Initially the port was recognised, than any more.
Initially I got this error (that by the way looks to be quite frequent):
Code: Select all
warning: espcomm_sync failed
error: espcomm_open failed
URL: http://www.arduinesp.com/getting-started
ESP01 Wiring
- ESP01 RX --> FTDI232 TX
- ESP01 GPIO0 --> FTDI232 CTS
- ESP01 GPIO2 --> LED (+)
- ESP01 GND --> GND (the ATX power source)
- ESP01 VCC --> 3.3V GND (the ATX power source)
- ESP01 RST --> FTDI232 DTR
- ESP01 CHPD --> 3.3V GND (the ATX power source)
- ESP01 TX --> FTDI232 RX
FTDI232 Wiring
- DTR --> ESP01 RST
- RX --> ESP01 TX
- TX --> ESP01 RX
- Vcc --> not connected
- CTS --> ESP01 GPIO0
- GND --> GND (the ATX power source)
- USB --> MAC
Hardware
- I'm using Arduino IDE on a mac to program the board, and I have installed the extension for the esp8266.
- To the usb port I've connected a usb to serial converter, FTDI232. These are the ports of the device: DTR, RX, TX, Vcc, CTS and GND. The pin to set the voltage is on 3.3V.
- The usb to serial converter is connected to the ESP01. The speed is set to 115200, I haven't changed other params.
- I use an ATX power source from an old PC to power the ESP01. From this power source I'm getting the 3.3V and I'm using its GND.
- I'm using a breadboard to wire everything.
This is the code I'm trying to flash.
Code: Select all
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}