D1 Mini Pro Can't Communicate



  • I have 6 Di mini pro boards and 1 of them is having a problem when I try to download to it via the Arduino IDE. I get the following error:

    Arduino: 1.8.1 (Windows 8.1), Board: "WeMos D1 R2 & mini, 80 MHz, 921600, 4M (3M SPIFFS)"

    Sketch uses 223205 bytes (21%) of program storage space. Maximum is 1044464 bytes.
    Global variables use 31612 bytes (38%) of dynamic memory, leaving 50308 bytes for local variables. Maximum is 81920 bytes.
    C:\Users\XXX\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.9/esptool.exe -vv -cd nodemcu -cb 921600 -cp COM8 -ca 0x00000 -cf C:\Users\XXX\AppData\Local\Temp\arduino_build_394494/sketch_mar18a.ino.bin esptool v0.4.9 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
    setting board to nodemcu
    setting baudrate from 115200 to 921600
    setting port from COM1 to COM8
    setting address from 0x00000000 to 0x00000000
    espcomm_upload_file
    espcomm_upload_mem
    setting serial port timeouts to 1000 ms
    opening bootloader
    resetting board
    An error occurred while uploading the sketch
    trying to connect
    flush start
    setting serial port timeouts to 1 ms
    setting serial port timeouts to 1000 ms
    flush complete
    espcomm_send_command: sending command header
    espcomm_send_command: sending command payload
    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
    espcomm_send_command: sending command header
    espcomm_send_command: sending command payload
    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
    espcomm_send_command: sending command header
    espcomm_send_command: sending command payload
    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
    espcomm_send_command: sending command header
    espcomm_send_command: sending command payload
    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
    espcomm_send_command: sending command header
    espcomm_send_command: sending command payload
    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
    espcomm_send_command: sending command header
    espcomm_send_command: sending command payload
    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
    espcomm_send_command: sending command header
    espcomm_send_command: sending command payload
    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
    espcomm_send_command: sending command header
    espcomm_send_command: sending command payload
    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
    espcomm_send_command: sending command header
    espcomm_send_command: sending command payload
    read 0, requested 1
    warning: espcomm_sync failed
    error: espcomm_open failed
    error: espcomm_upload_mem failed

    Any idea what could be wrong? Maybe just a bad part?

    Thanks,
    Daniel



  • To me this looks like either unreliable connection (try with a different cable and different port, disconnect everything from your D1 Mini) or corrupted flash on your board. If you use Windows, it could also be a driver or some antivirus program messing with Arduino...



  • I've used the same cable and machine to program the other 5 D1 mini pros, so I'm confident it isn't a connection issue. If the flash is corrupted, is there a way to rewrite it? I tried using the esptool.py to simply erase the flash, but got the same error. I think it may just be a bad board.



  • I have the same problem.
    Mac OS X Sierra 10.12.3

    warning: espcomm_sync failed
    error: espcomm_open failed
    error: espcomm_upload_mem failed

    trying with platformio and Arduino IDE, baud rate 115200 or default
    installed VCP Driver from the web site

    If you have any ideas how to fix that, I'll appreciate this.


Log in to reply
 

Looks like your connection to WEMOS Forum was lost, please wait while we try to reconnect.