-->
Page 1 of 1

espcomm_sync failed

PostPosted: Sun Dec 02, 2018 4:54 am
by wattuasca
Hi,

I'm on Mac OS X 10.14, using Arduino 1.8.5.

My ESP8266 board has an integrated (CP2102) USB to serial converter.

I'm trying to use my Esp8266 Esp-12e board with Arduino to make my first blink sketch work :D

Within Arduino I can pick the board "NodeMCU 1.0 (ESP-12E Module) however when I try to upload my sketch I get this error message

Code: Select allArduino: 1.8.5 (Mac OS X), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 9600"

Build options changed, rebuilding all
Archiving built core (caching) in: /var/folders/8g/0k5j83g138v07k20mf01vb0c0000gn/T/arduino_cache_723312/core/core_esp8266_esp8266_nodemcuv2_CpuFrequency_80,VTable_flash,FlashSize_4M1M,LwIPVariant_v2mss536,Debug_Disabled,DebugLevel_None____,FlashErase_none,UploadSpeed_9600_6d5f1add46e73b49a014734828dd4f54.a
Sketch uses 247880 bytes (23%) of program storage space. Maximum is 1044464 bytes.
Global variables use 28016 bytes (34%) of dynamic memory, leaving 53904 bytes for local variables. Maximum is 81920 bytes.
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.





I have been through the documentation here: https://arduino-esp8266.readthedocs.io/en/2.4.1/faq/a01-espcomm_sync-failed.html

I've installed the USB to UART bridge driver from https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers and also rebooted my computer just in case.

What I believe isn't normal is the fact I can only see the port dev/cu.Bluetooth-Incoming-Port and nothing else

Just in case it might help, my NodeMCU has the blue led blinking when the board is connected via my USB cable.

Your feedback would be appreciated in order to help me troubleshoot this issue.

Thanks

Re: espcomm_sync failed

PostPosted: Mon Dec 03, 2018 6:35 am
by QuickFix
I don't have a Mac, but first things first: what kind of board do you have (exactly)?
You're referring to a NodeMCU board in one place and an ESP-12E module in another and that's a bit confusing.

This is a break down of a NodeMCU:
Image
Do you have the entire development board (a NodeMCU) or only the ESP-12 module (also on a NodeMCU, but it's not the same thing)?
Note: the ESP-12 in the picture is de-capped: it normally has a metal lid on it. :idea:

The messages you're getting is when you're setting either a wrong board (you've set NodeMCU, but this is only valid if you actually have a NodeMCU) , you've set the wrong COM-port or the Baud-rate is set too high.

Nine times out of ten it's just the wrong board and you should've chosen "Generic ESP8266" instead.
Please note that a generic ESP8266 (like an ESP-12E module) doesn't have auto the flash and auto reset features, like a NodeMCU has (this is the actual difference between a NodeMCU and a separate ESP-12 module).
When using a separate ESP-module, you'll have to manually handle the flash- and reset-lines.