Am I doing something wrong, or is the ESP12 faulty?
Code and error message below.
I'm using an FTDI connector, and pin setup may be found below.
Some other observations:
- With GPIO0 low, I'm able to successfully upload programs to the ESP from the Arduino. And I have successfully loaded NodeMCU.
The ESP doesn't appear to boot successfully in Flash Boot mode (GPIO0 pull-up). I get garbage no matter what baud I try (including 74880). I can only get output when GPIO0 is low (UART Download mode) after a fresh power cycle and with "esptool.py run".
I loaded a larger arduino program to the ESP12 and got checksum errors. Happy to post more detail regarding this if useful.
- A switch from GPIO0 to ground (with a pull-up resistor to VCC)
GPIO2 and CH_PD connected to VCC
GPIO15 connected to ground
VCC and ground to a breadboard power supply at 3.3v
FTDI Adapter RX, TX to ESP12's TX, RX respectively. FTDI ground to ground.
ESP Arduino code:
void setup() {
// initialize digital pin 13 as an output.
pinMode(5, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(5, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(5, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
Output from
./esptool.py --port /dev/ttyUSB1 run && picocom /dev/ttyUSB1 -b 115200 --omap crcrlf
Terminal ready
load 0x40100000, len 28688, room 16
tail 0
chksum 0xb2
load 0x3ffe8000, len 1316, room 8
tail 12
chksum 0x65
ho 0 tail 12 room 4
load 0x3ffe8530, len 1500, room 12
tail 0
chksum 0x61
csum 0x61
Fatal exception (3):
epc1=0x40221132, epc2=0x00000000, epc3=0x00000000, excvaddr=0x401002b1, depc=0x00000000
Fatal exception (3):
epc1=0x40212435, epc2=0x00000000, epc3=0x00000000, excvaddr=0x401003c4, depc=0x00000000
Fatal exception (3):
epc1=0x40212435, epc2=0x00000000, epc3=0x00000000, excvaddr=0x401003c4, depc=0x00000000
Fatal exception (3):
epc1=0x40212435, epc2=0x00000000, epc3=0x00000000, excvaddr=0x401003c4, depc=0x00000000
Fatal exception (3):
epc1=0x40212435, epc2=0x00000000, epc3=0x00000000, excvaddr=0x401003c4, depc=0x00000000
Fatal exception (3):