Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to upload using Arduino or esptool.py #33

Open
Redcof opened this issue Jul 18, 2018 · 0 comments
Open

Unable to upload using Arduino or esptool.py #33

Redcof opened this issue Jul 18, 2018 · 0 comments

Comments

@Redcof
Copy link

Redcof commented Jul 18, 2018

I am trying to flash a program into Amica NodeMCU ESP8266. I have tried in Window 10 and OSX.
I have tried

  1. 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 the FLASH button when plugin the USB to mac and/not clicking RST, 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
  1. 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 <[email protected]>
	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

  1. 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

  1. 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant