-->
Page 1 of 1

[SOLVED] Trouble uploading Blink to ESP-01

PostPosted: Mon Aug 17, 2015 5:04 pm
by stb
Solution: Following the instructions at http://hpclab.blogspot.de/2015/06/esp82 ... -os-x.html, I'm able to upload sketches with esptool.py. Thanks Ivan!

I'm having trouble uploading the blink sketch to my ESP-01. I'm on MacOS 10.10.5, with Arduino 1.6.5 and the stable board manager (http://arduino.esp8266.com/stable/packa ... index.json). I've also tried the staging version, but no difference.

When I upload the sketch, I get this log, and the sketch does not appear to be working. Using themadinventor's esptool.py, I am able to upload the nodecmu image to the very same module. I'm using an PL2303 cable (Adafruit clone).

Any suggstions?

Code: Select allDer Sketch verwendet 201.090 Bytes (46%) des Programmspeicherplatzes. Das Maximum sind 434.160 Bytes.
Globale Variablen verwenden 44.608 Bytes (54%) des dynamischen Speichers, 37.312 Bytes für lokale Variablen verbleiben. Das Maximum sind 81.920 Bytes.
/Users/stb/Library/Arduino15/packages/esp8266/tools/esptool/0.4.5/esptool -vv -cd ck -cb 115200 -cp /dev/cu.usbserial -ca 0x00000 -cf /var/folders/r9/9t0hn90919jdxnztplqfvcxw0000gp/T/build3191704045558840700.tmp/Blink.cpp.bin
esptool v0.4.5 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
   setting board to ck
   setting baudrate from 115200 to 115200
   setting port from /dev/tty.usbserial to /dev/cu.usbserial
   setting address from 0x00000000 to 0x00000000
   espcomm_upload_file
   stat /var/folders/r9/9t0hn90919jdxnztplqfvcxw0000gp/T/build3191704045558840700.tmp/Blink.cpp.bin success
opening port /dev/cu.usbserial at 115200
   tcgetattr
   tcsetattr
   serial open
opening bootloader
resetting board
trying to connect
   setting character timeout 0
   done
   setting character timeout 1
   done
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
trying to connect
   setting character timeout 0
   done
   setting character timeout 1
   done
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
   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
   espcomm_send_command: receiving 2 bytes of data
   espcomm_open
Uploading 205232 bytes from /var/folders/r9/9t0hn90919jdxnztplqfvcxw0000gp/T/build3191704045558840700.tmp/Blink.cpp.bin to flash at 0x00000000
   erasing flash
   size: 0321b0 address: 000000
   first_sector_index: 0
   total_sector_count: 51
   head_sector_count: 16
   adjusted_sector_count: 35
   adjusted_size: 023000
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
   setting timeout 10000
   setting character timeout 100
   done
   setting timeout 1
   setting character timeout 1
   done
   espcomm_send_command: receiving 14850 bytes of data
error: failed reading byte
warning: espcomm_send_command: cant receive slip payload data
warning: espcomm_send_command(FLASH_DOWNLOAD_BEGIN) failed
closing bootloader

Re: Trouble uploading Blink to ESP-01

PostPosted: Wed Aug 19, 2015 9:17 am
by stb

Re: Trouble uploading Blink to ESP-01

PostPosted: Wed Aug 19, 2015 9:23 am
by stb
So apparently it is an issue with the PL2303 and esptool (as opposed to esptool.py). See https://github.com/igrr/esptool-ck/issues/9

It might be worthwhile to add that info to the README, since PL230x based USB to serial TTL adapters are rather widespread (and often significantly cheaper than the FTDI-based ones).

Re: [SOLVED] Trouble uploading Blink to ESP-01

PostPosted: Sun Oct 02, 2016 6:18 pm
by gojimmypi
fwiw - I am also having this problem on an ESP-01 on Windows with Arduino IDE however my ESP-01 has CH340, not PL2303