Sketch uses 235437 bytes (54%) of program storage space. Maximum is 434160 bytes.Global variables use 34164 bytes (41%) of dynamic memory, leaving 47756 bytes for local variables. Maximum is 81920 bytes.warning: espcomm_sync failederror: espcomm_open failederror: espcomm_upload_mem failederror: espcomm_upload_mem failedyou know whats the issue?
thanks in advance.
You are watching: Warning: espcomm_sync failed error: espcomm_open failed error: espcomm_upload_mem failed
This means that the ESP didn’t respond (or didn’t respond in the way that the Arduino IDE expected) when you tried to upload the code.
The first thing to try is hitting the upload button again. This will often fix the issue of everything else is okay. If that doesn’t work then try unplugging your ESP and re-connecting and trying again.
If that doesn’t work then check your Arduino IDE settings. Do you have the correct type of device selected, and the correct memory size selected for your type of device.
If you’re using an ESP-01, or a device like a Sonoff, then GPIO0 needs to be connected to Ground when powering-up the board to put it into flash mode. Failing to do this will result in the type of messages that you’re getting.
Rick7 October 18, 2018, 9:18pm #3
Hi, i tryied all your tips, but it gives me the same error. I found also the datasheet of my esp (AI cloud inside), but nothing.
PeteKnight October 18, 2018, 9:18pm #4
AI cloud inside
Aaaahg! the dreaded ESP-01
You should do some careful reading about what you need to do to put these into flash mode, it’s quite fiddly.Also, some of the cheap ESP-01 to USB programming adapters aren’t made correctly. They have a flash button that needs to be pressed when plugging-in the adapter, but the button isn’t wired correctly, so it doesn’t work.Read this thread and it’s associated link
Hi there, I’m having troubles with my setup: I am using an ESP8266 ESP-01 module with USB2Serial CH340G based adapter (see below). <20180221_145706>and when I try to upload my sketch (which is the hyakkendana-hashigozake.com ESP8266_Standalone Example): #define hyakkendana-hashigozake.com_PRINT Serial#include #include char auth<> = "YourAuthToken";char ssid<> = "YourNetworkName";char pass<> = "YourPassword";void setup() Serial.begin(9600); hyakkendana-hashigozake.com.begin(auth, ssid, pass);void loop…
I’d save yourself a lot of hassle and buy a Wemos D1 Mini. Better still, order a pack of 10
marvin7 October 18, 2018, 9:18pm #5
Such a trivial “thing” like the baudrate has been set correctly at both sides of the setup? (USB-Serial leg ESP-01)
PeteKnight October 18, 2018, 9:18pm #6
Rick7 is trying to use the ESP-01 as a stand-alone device, but he’s having a problem flashing it. Probably because it’s not in flash mode when he’s trying to upload the code.
Rick7 October 18, 2018, 9:18pm #8
I’ve already connected GPIO0 with GND to set the esp in flash-mode. Moreover, i use a ttl converter different from the CH34G, change something?
PeteKnight October 18, 2018, 9:18pm #9
Are you connecting as follows:
TTL Converter . . . . ESP-01Tx pin ---------------> RX pinRx pin ---------------> Tx pin3.3v ------------------> Vcc pin + CH-PD pinGnd ------------------> Gnd pin + GPIO0 pin (temporarily - while applying power)
marvin7 October 18, 2018, 9:18pm #10
baudrate has been set correctly at both sides of the setup?
yes, 9600 baud
PeteKnight has pointed. And the 3.3V… Use power adapter, not the 3.3V output from USB-Serial bridge (Well, I own one that has separate 3.3V 1A LDO, but it is not a common case)
Rick7 October 18, 2018, 9:18pm #11
ckecked everything, COM port, baudrate, serial monitor, connections…nothing different, same error.
PeteKnight October 18, 2018, 9:18pm #13
Post some photos of your setup, and details of the Arduino IDE settings you’re using.
marvin7 October 18, 2018, 9:18pm #14
There are two possibilities…Board faultyYour fault.
See more: Don T Take It For Granite - How Do You Spell Take It For Granite
I see no other option, as normally it just works… Check the board, if it works (responds to AT commands if it is still original firmware), the build-in LED behaviour, the bootloader serial output at 74880bps, …
Rick7 October 18, 2018, 9:18pm #15
in fact i was wrong. by mistake I connected the reset to VCC instead of CH… now seems it works. i’ll test it and i let you know.you have been very helpful, thank you very much!
PeteKnight October 18, 2018, 9:18pm #16
Which is exactly why I asked you to post photos
Glad it’s working now.Have you ordered your Wemos D1 Mini’s yet? Only USD 2.18 each with free shipping on AliExpress:https://www.aliexpress.com/item/ESP8266-ESP-12-ESP-12F-CH340G-CH340-V2-USB-WeMos-D1-Mini-WIFI-Development-Board-D1/32890327433.html
Rick7 October 18, 2018, 9:24pm #17
yes, 9600 baud
Rick7 October 18, 2018, 9:24pm #18
Rick7 October 19, 2018, 5:41am #19
Not yet, but I thinking of buying it! Seems to be a really interesting board!Thanks again
PeteKnight split this object March 14, 2019, 8:38pm #20
2 posts were split to a new topic: Problems Flashing ESP-01
PeteKnight closeup of the door March 14, 2019, 8:39pm #21