Error flashing 8-pin ESP8266
Posted: Sat Jan 30, 2016 7:13 pm
Hello, I have been spending a lot of time troubleshooting why I can't seem to flash my (8 pin) ESP8266. I have tried it on Windows 7 using NodeMCU flasher and lately I have been trying it on a Raspberry Pi 2 using esptools. Both methods bailed at 5%. On the PC I was using a FT232R and a breadboard, and with Raspberry Pi I just hooked it direct to the Pi using a T-cobbler on a breadboard. Same issue with two of the same devices. I used an external power supply when I had it connected to the FTDI, and with the Pi I am connecting it directly as I have read the power is sufficient. One more note, I have tried sending AT commands to it without GPIO0 connected to GND and I get no response. Here are my pin connections:
ESP8266 -> RPi2
TXD -> RXD
RXD -> TXD
VCC -> 3V3
CH_PD -> 3V3
GND -> GND
GPIO0 -> GND
Here is my flash command
It has not ever gone past 5%, both with esptool and NodeMCU. Any help would be greatly appreciated, I admit I am a bit out of my depth but I am trying! Thank you.
ESP8266 -> RPi2
TXD -> RXD
RXD -> TXD
VCC -> 3V3
CH_PD -> 3V3
GND -> GND
GPIO0 -> GND
Here is my flash command
Code: Select all
[karazi@rpiarch esptool-master]$ sudo /bin/python2.7 ~/esptool-master/esptool.py -p /dev/ttyAMA0 write_flash 0x000000 "ai-thinker-v1.1.1.bin"
Connecting...
Erasing flash...
Took 3.73s to erase flash block
Writing at 0x0000e800... (5 %)
Traceback (most recent call last):
File "/home/mserra/esptool-master/esptool.py", line 838, in <module>
main()
File "/home/mserra/esptool-master/esptool.py", line 809, in main
operation_func(esp, args)
File "/home/mserra/esptool-master/esptool.py", line 563, in write_flash
esp.flash_block(block, seq)
File "/home/mserra/esptool-master/esptool.py", line 244, in flash_block
result = self.command(ESPROM.ESP_FLASH_DATA, struct.pack('<IIII', len(data), seq, 0, 0) + data, ESPROM.checksum(data))[1]
File "/home/mserra/esptool-master/esptool.py", line 118, in command
(op_ret, val, body) = self.receive_response()
File "/home/mserra/esptool-master/esptool.py", line 128, in receive_response
if self._port.read(1) != '\xc0':
File "/usr/lib/python2.7/site-packages/serial/serialposix.py", line 495, in read
raise SerialException('device reports readiness to read but returned no data (device disconnected or multiple access on port?)')
serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
It has not ever gone past 5%, both with esptool and NodeMCU. Any help would be greatly appreciated, I admit I am a bit out of my depth but I am trying! Thank you.