-->
Page 1 of 1

NodeMCU problem with uploading

PostPosted: Tue Jan 28, 2020 5:13 pm
by JohnBoisson
I was trying to upload a sketch to my nodemcu 1.0 board. I was using the ESP8266 Flasher and when i plug in my board the com port does not show up. And yes I doublechecked if I selected the right board, baudrate, frequency etc.... i tried all the com ports available and every time I get this:


Arduino: 1.8.9 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Serial, 80MHz, DIO, 115200, 4M (1M SPIFFS)"

....
Sketch uses 198833 bytes (19%) of program storage space. Maximum is 1044464 bytes.
Global variables use 33050 bytes (40%) of dynamic memory, leaving 48870 bytes for local variables. Maximum is 81920 bytes.
C:\Users\mubib\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.6/esptool.exe -vv -cd nodemcu -cb 115200 -cp COM4 -ca 0x00000 -cf C:\Users\mubib\AppData\Local\Temp\arduino_build_679920/Blink.ino.bin
esptool v0.4.6 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
setting board to nodemcu
setting baudrate from 115200 to 115200
setting port from COM1 to COM4
setting address from 0x00000000 to 0x00000000
espcomm_upload_file
stat C:\Users\mubib\AppData\Local\Temp\arduino_build_679920/Blink.ino.bin success
setting serial port timeouts to 1000 ms
opening bootloader
resetting board
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
wrote 0, requested 1
error: failed sending 0xC0
espcomm_send_command: sending command header
wrote 0, requested 8
error: failed sending 8 bytes
espcomm_send_command: sending command payload
wrote 0, requested 36
error: failed sending 36 bytes
wrote 0, requested 1
error: failed sending 0xC0
read 0, requested 1
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
wrote 0, requested 1
error: failed sending 0xC0
espcomm_send_command: sending command header
wrote 0, requested 8
error: failed sending 8 bytes
espcomm_send_command: sending command payload
wrote 0, requested 36
error: failed sending 36 bytes
wrote 0, requested 1
error: failed sending 0xC0
read 0, requested 1
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
wrote 0, requested 1
error: failed sending 0xC0
espcomm_send_command: sending command header
wrote 0, requested 8
error: failed sending 8 bytes
espcomm_send_command: sending command payload
wrote 0, requested 36
error: failed sending 36 bytes
wrote 0, requested 1
error: failed sending 0xC0
read 0, requested 1
resetting board
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
wrote 0, requested 1
error: failed sending 0xC0
espcomm_send_command: sending command header
wrote 0, requested 8
error: failed sending 8 bytes
espcomm_send_command: sending command payload
wrote 0, requested 36
error: failed sending 36 bytes
wrote 0, requested 1
error: failed sending 0xC0
read 0, requested 1
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
wrote 0, requested 1
error: failed sending 0xC0
espcomm_send_command: sending command header
wrote 0, requested 8
error: failed sending 8 bytes
espcomm_send_command: sending command payload
wrote 0, requested 36
error: failed sending 36 bytes
wrote 0, requested 1
error: failed sending 0xC0
read 0, requested 1
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
wrote 0, requested 1
error: failed sending 0xC0
espcomm_send_command: sending command header
wrote 0, requested 8
error: failed sending 8 bytes
espcomm_send_command: sending command payload
wrote 0, requested 36
error: failed sending 36 bytes
wrote 0, requested 1
error: failed sending 0xC0
read 0, requested 1
resetting board
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
wrote 0, requested 1
error: failed sending 0xC0
espcomm_send_command: sending command header
wrote 0, requested 8
error: failed sending 8 bytes
espcomm_send_command: sending command payload
wrote 0, requested 36
error: failed sending 36 bytes
wrote 0, requested 1
error: failed sending 0xC0
read 0, requested 1
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
wrote 0, requested 1
error: failed sending 0xC0
espcomm_send_command: sending command header
wrote 0, requested 8
error: failed sending 8 bytes
espcomm_send_command: sending command payload
wrote 0, requested 36
error: failed sending 36 bytes
wrote 0, requested 1
error: failed sending 0xC0
read 0, requested 1
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
wrote 0, requested 1
error: failed sending 0xC0
espcomm_send_command: sending command header
wrote 0, requested 8
error: failed sending 8 bytes
espcomm_send_command: sending command payload
wrote 0, requested 36
error: failed sending 36 bytes
wrote 0, requested 1
error: failed sending 0xC0
read 0, requested 1
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_open failed