esphome / esp-web-tools

Open source tools to allow working with ESP devices in the browser
https://esphome.github.io/esp-web-tools/
Apache License 2.0
397 stars 113 forks source link

Error! Failed to initialize. #118

Closed vicfixxx closed 2 years ago

vicfixxx commented 2 years ago

When i click the install button in the WLED application, i get the following response:

Failed to initialize. Try resetting your device or holding the BOOT button while selecting your serial port.

I have a ESP8266 chip and i also tried ESP home and Tasmota, both gave the same issue.

balloob commented 2 years ago

What device?

Does it have a BOOT button?

Did you hold it while pressing install?

vicfixxx commented 2 years ago

Hi,

I use the AZDelivery D1 Mini NodeMcu met ESP8266-12F and unfortunatly it doesn't have a BOOT button.

If i try to install something different, it works. I also tried with a brand new device, and get the same error message.

TD-er commented 2 years ago

Does the serial port show up in the task manager? And is it still present when the failure appeared? I've seen a few of those that had really flaky USB connectors. You may also try a different USB cable and/or connect it directly to an USB port on the PC instead of via a hub.

vicfixxx commented 2 years ago

I can see the device in my device manager with a COM port (currently COM 4).

I've tried a couple of USB cables and i can see the device in the device manager, so that should be good.

I've attached the specific error on the webpage.

The funny thing is that i've tried on a different computer and i get the same error.

Should i check the COM settings, like BAUT rate? if so, do you know what data i have to use?

Thanks in advance ;)

error ESP .

vicfixxx commented 2 years ago

Hi, I probably applied too much heat to the board during soldering, so I've ordered some new ones and try it out on those. As soon as i know more, i'll let you know 😎

balloob commented 2 years ago

Closing this issue as this is based on an old version of ESP Web Tools.

adman120 commented 2 years ago

Can you reopen the issue, it is still happening, on current version for me, with same model esp.

balloob commented 2 years ago

Please open a new issue and include logs + model and steps you did to reproduce.

adman120 commented 2 years ago

Will do, no problem.

On Thu, Mar 17, 2022 at 12:59 AM Paulus Schoutsen @.***> wrote:

Please open a new issue and include logs + model and steps you did to reproduce.

— Reply to this email directly, view it on GitHub https://github.com/esphome/esp-web-tools/issues/118#issuecomment-1070327715, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4EKQUCVM7W2YCYA43LORTVAK347ANCNFSM5H7IFGQQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

Oinq commented 1 year ago

Where did u opened it? I'm facing the same described above with the same hardware.

finnfreijer commented 1 year ago

hallo ik heb een esp32 en ik probeer wled er op te downloaden maar elke keer als ik dat probeer geeft die aan dat ik de boot knop moet in drukken maar als ik dat doe verandert er niks. wat moet ik doen???

MichalKrasowski commented 12 months ago

In my case it was lack of privileges for /dev/ttyUSB0.

Granting access to all ( sudo chmod 777 /dev/ttyUSB0) proves it's privileges issue.

Relevant devtools log on failure: :673 DOMException: Failed to execute 'open' on 'SerialPort': Failed to open serial port. _handleConnectSerialSubmit @ wi

phanky5 commented 11 months ago

Thank you @MichalKrasowski this solved the issue for me.

Id2ndR commented 3 months ago

Granting access to other (sudo chmod o+rw /dev/ttyUSB0) temporary solve the privileges issue. The 'x' permission is not required.

To permanently solve this, you must add yourself in the group associated to this /dev/ttyUSB0 file. This can be done with the following command followed by a restart of you session: sudo usermod -a -G $(stat -c %G /dev/ttyUSB0) $(whoami)