Unable to upload using Arduino or esptool.py
Redcof opened this issue · comments
Soumen Sardar commented
I am trying to flash a program into Amica NodeMCU ESP8266
. I have tried in Window 10
and OSX
.
I have tried
- plain
esptool.py
command line in OSX 10.13.4 High Sierra
esptool.py --port /dev/tty.SLAB_USBtoUART --baud 115200 --before "default_reset" --after "hard_reset" write_flash --flash_mode "dio" --flash_freq "80m" --flash_size 4MB 0x1000 /Users/soumensardar/Downloads/sketch_jul13a.ino.bin
esptool.py --port /dev/tty.SLAB_USBtoUART write_flash 0x1000 /Users/soumensardar/Downloads/sketch_jul13a.ino.bin
By holding down theFLASH
button when plugin the USB to mac and/not clickingRST
, I have issued the commands in terminal.
Output:
esptool.py v2.4.1
Serial port /dev/tty.SLAB_USBtoUART
Connecting........_
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
MAC: b4:e6:2d:34:a7:ff
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Compressed 250496 bytes to 182688...
A fatal error occurred: Timed out waiting for packet content
- Arduino 1.8.5 in OSX 10.13.4 High Sierra
By holding down the FLASH
button when plugin the USB to mac and/not clicking RST
, I have issued the commands in terminal.
And simple upload
Got this
esptool v0.4.13 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
setting board to nodemcu
setting baudrate from 115200 to 921600
setting port from /dev/tty.usbserial to /dev/cu.SLAB_USBtoUART
setting address from 0x00000000 to 0x00000000
An error occurred while uploading the sketch
espcomm_upload_file
espcomm_upload_mem
opening port /dev/cu.SLAB_USBtoUART at 921600
tcgetattr
warning: serialport_set_baudrate: baud rate 921600 may not work
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
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 250496 bytes from /var/folders/dm/ck803jcd62bbn2hn8m5d6lch0000gn/T/arduino_build_732599/sketch_jul13a.ino.bin to flash at 0x00000000
erasing flash
size: 03d280 address: 000000
first_sector_index: 0
total_sector_count: 62
head_sector_count: 16
adjusted_sector_count: 46
erase_size: 02e000
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
setting timeout 15000
setting timeout 1000
warning: espcomm_send_command: didn't receive command response
warning: espcomm_send_command(FLASH_DOWNLOAD_BEGIN) failed
closing bootloader
error: espcomm_upload_mem failed
- NodeMCU PyFlasher on OSX 10.13.4 High Sierra
Console
Connecting........_
Detecting chip type... ESP8266
Chip is ESP8266EX
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Warning: Could not auto-detect Flash size (FlashID=0xffffff, SizeID=0xff), defaulting to 4MB
Flash params set to 0x0240
Compressed 250496 bytes to 182688...
and it keeps on waiting here
- NodeMCU Flasher Windows 10
I do not have the exact error right now. But the lower left corner got red and the log says kind of timeout
I am using 1 meter USB cable provided by my smartphone manufacturer.
I have installed the CP2102 driver
Is there any problem with my NodeMCU module or I am missing any point?