-->
Page 1 of 2

nodemcu can't flash or upload a sketch with Arduino IDE

PostPosted: Sat Aug 15, 2020 8:19 am
by eagle1
Hello,

I have a nodemcu that I used to program it with lualoader or esplorer. Then I stopped programming this board and switched to Arduino boards in Arduino IDE for like couple years.

Now, I took my nodemcu for my trip and left all my other boards at home.

So, first of all I tried to program it with Arduino IDE but I got this error.

esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header


Then I got back to lua programming and tried to flash it but also there's a problem.
1. I can't flash it with its internal firmware.
2. When I select and external .bin file to flash it, it starts flashing but there's to progress in the process.

Image

I thought the board is broken or fried but it receives the uart signals and it's recognized in the device manager.


What to do ?

Re: nodemcu can't flash or upload a sketch with Arduino IDE

PostPosted: Tue Aug 18, 2020 10:13 pm
by Shigsy
I have the same issue :/ No idea why I get this with one Wemos D1 mini Pro, and not another. It also worked fine for quite a few uploads, so just started acting up and I get resolve it.

Re: nodemcu can't flash or upload a sketch with Arduino IDE

PostPosted: Wed Aug 19, 2020 3:16 am
by eagle1
I think it's because my laptop USB ports are USB3.2 Gen1 ! I think that is the reason for this problem I'm pretty sure.

Didn't have this problem in my rig which uses 3.0/2.0.

Re: nodemcu can't flash or upload a sketch with Arduino IDE

PostPosted: Wed Aug 19, 2020 5:56 am
by Shigsy
The thing is, I used the same USB cable on the same physical USB port with the same Wemos D1 with no issue, a number of time, then suddenly I get the error shown in the original post.