So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By LeKrist
#65391 Hi everyone,

I'm new to this forum. I've researched extensively before posting here.
I have a ESP8266 (see description here https://www.amazon.fr/gp/product/B01GCK ... UTF8&psc=1)

I have been able to upload sketches with the Arduino IDE without problems so far.
Now, I can't upload a sketch anymore.
Here are the upload logs from the arduino IDE:
Code: Select allSketch uses 254301 bytes (24%) of program storage space. Maximum is 1044464 bytes.
Global variables use 33996 bytes (41%) of dynamic memory, leaving 47924 bytes for local variables. Maximum is 81920 bytes.
/home/k/.arduino15/packages/esp8266/tools/esptool/0.4.9/esptool -vv -cd nodemcu -cb 9600 -cp /dev/ttyUSB0 -ca 0x00000 -cf /tmp/arduino_build_26397/sketch_mar04a.ino.bin
esptool v0.4.9 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
   setting board to nodemcu
   setting baudrate from 115200 to 9600
   setting port from /dev/ttyUSB0 to /dev/ttyUSB0
   setting address from 0x00000000 to 0x00000000
   espcomm_upload_file
   espcomm_upload_mem
opening port /dev/ttyUSB0 at 9600
   tcgetattr
   tcsetattr
   serial open
opening bootloader
resetting board
trying to connect
An error occurred while uploading the sketch
   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
trying to connect
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
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
trying to connect
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
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
trying to connect
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed


As you can see in the description of the module it has a built-in usb adapter so I've always just used a USB cable from my computer to the module to upload.
When I try to upload I get the blue LED blinking everytime the 'trying to reconnect' message appears.
Also, if I open the Serial Monitor in Arduino IDE I can see that the last sketch I uploaded is correctly running.

Thanks for your help
User avatar
By LeKrist
#65439 Thanks for your reply.

I have a devkit version so I don't need to connect any pin to upload sketches. I just connect the USB plug to my computer.
This worked for a long time. Do you think it could be the usb adapter on the module being faulty now?

Thanks