So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By mrtc
#71997 I have an ESP8266-12E that I've soldered legs to & plonked into a breadboard. My schematic for linking it up is here: https://www.dropbox.com/s/8032n9hre7bt6 ... m.png?dl=0

I've been trying to flash the device using the Arduino IDE but have been having issues.

Here's my verbose output:

Code: Select allesptool v0.4.9 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
   setting board to nodemcu
   setting baudrate from 115200 to 57600
   setting port from /dev/tty.usbserial to /dev/cu.usbserial-00000000
   setting address from 0x00000000 to 0x00000000
   espcomm_upload_file
   espcomm_upload_mem
opening port /dev/cu.usbserial-00000000 at 57600
   tcgetattr
   tcsetattr
   serial open
opening bootloader
resetting board
trying to connect
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
trying to connect
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
   espcomm_send_command: receiving 2 bytes of data
An error occurred while uploading the sketch
   espcomm_send_command: receiving 2 bytes of data
   espcomm_send_command: receiving 2 bytes of data
   espcomm_send_command: receiving 2 bytes of data
   espcomm_send_command: receiving 2 bytes of data
   espcomm_send_command: receiving 2 bytes of data
   espcomm_send_command: receiving 2 bytes of data
   espcomm_send_command: receiving 2 bytes of data
Uploading 226304 bytes from /var/folders/yn/t8vnvm2x6f7680k9zvnk021m0000gn/T/arduino_build_414972/first_Raw_ESP8266_Upload.ino.bin to flash at 0x00000000
   erasing flash
   size: 037400 address: 000000
   first_sector_index: 0
   total_sector_count: 56
   head_sector_count: 16
   adjusted_sector_count: 40
   erase_size: 028000
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
   setting timeout 15000
   setting timeout 100
   espcomm_send_command: receiving 2 bytes of data
   writing flash
warning: espcomm_send_command: didn't receive command response
warning: espcomm_send_command(FLASH_DOWNLOAD_DATA) failed
warning: espcomm_send_command: wrong direction/command: 0x01 0x03, expected 0x01 0x04
closing bootloader
error: espcomm_upload_mem failed


I'm using v 2.3.0 of the Generic ESP8266 Module (Boards Manager)
Flash mode & frequency: 80MHz
Flash Size: 512k (64k SPIFFS)
Debug port: disabled
Reset Method: nodeMCU
Upload Baud: 57600
Serial Port: /dev/cu.usbserial-00000000
Programmer: AVR ISP

Any thoughts on where I'm going wrong? Also, I've installed cool term on my Mac & seem to be able to connect to the device through there. Are there any commands that I can send to do further tests through that?

Thanks
User avatar
By rudy
#72001 Your schematic is wrong. Go look at a schematic of a board that you know works, like a Wemos schematic. Also you probably have insufficient power. Schematics are important, showing what the connections are. But they don't show how the connections are implemented. And this is a very important thing.