Sonoff Basic Can't Flash with ESP Eay

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
neuznadim
Normal user
Posts: 10
Joined: 22 Jan 2022, 12:33

Sonoff Basic Can't Flash with ESP Eay

#1 Post by neuznadim » 22 Jan 2022, 13:26

I have been trying to flash my newly bought Sonoff Basic(8285) using FTDI (FT232RL). But it's not flashing . All connection is ok .While connected to computer the device functions normally. I have brought the device to bootloder moood. on the flasher web it shows "INSTALL
Failed to initialize. Try resetting your device or holding the BOOT button while selecting your serial port."
1.I'm using windows pc
2.I have shared board picture
3.I desperatley need solution . please
can what's app me (+8801742067778)
WhatsApp Image 2022-01-22 at 8.23.28 PM.jpeg
WhatsApp Image 2022-01-22 at 8.23.28 PM.jpeg (134.56 KiB) Viewed 8999 times
WhatsApp Image 2022-01-22 at 8.23.28 PM (1).jpeg
WhatsApp Image 2022-01-22 at 8.23.28 PM (1).jpeg (110.53 KiB) Viewed 8999 times
WhatsApp Image 2022-01-22 at 8.23.27 PM.jpeg
WhatsApp Image 2022-01-22 at 8.23.27 PM.jpeg (185.39 KiB) Viewed 8999 times
WhatsApp Image 2022-01-22 at 8.23.27 PM (1).jpeg
WhatsApp Image 2022-01-22 at 8.23.27 PM (1).jpeg (244.6 KiB) Viewed 8999 times
Screenshot (499).png
Screenshot (499).png (83.3 KiB) Viewed 8999 times
Screenshot (498).png
Screenshot (498).png (152.27 KiB) Viewed 8999 times
Screenshot (497).png
Screenshot (497).png (568.96 KiB) Viewed 8999 times

User avatar
Ath
Normal user
Posts: 3417
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Sonoff Basic Can't Flash with ESP Eay

#2 Post by Ath » 22 Jan 2022, 14:28

I suspect that the board is not going into flash mode.
- Remove 3.3V power from the Sonoff
- Press and hold the button
- Connect 3.3V power to the Sonoff
- Hold the button for a few more seconds, then release
- Start the flash procedure (Click Install button in browser, or Flash button in ESPEasy flasher)
- Wait for completion
- Remove power from the Sonoff
- Wait a few seconds
- Connect 3.3V power to the Sonoff
- After a few (~10-20) seconds the ESPEasy WiFi AP should be visible from your WiFi list (either PC or mobile phone)

If that still won't work, get a separate, more powerful, 3.3V power supply to power the Sonoff during flash, often the USB provided power is not (stable) enough or the wires are too thin.
/Ton (PayPal.me)

neuznadim
Normal user
Posts: 10
Joined: 22 Jan 2022, 12:33

Re: Sonoff Basic Can't Flash with ESP Eay

#3 Post by neuznadim » 22 Jan 2022, 14:31

The provided power i checked with multimeter is 3.19v is it okay?

neuznadim
Normal user
Posts: 10
Joined: 22 Jan 2022, 12:33

Re: Sonoff Basic Can't Flash with ESP Eay

#4 Post by neuznadim » 22 Jan 2022, 14:33

The device is running smoothly using this 3.19 V. IS IT Exact 3.3v needed. Pressing button i took it to bootlooder mood. But it didn’t work.

User avatar
Ath
Normal user
Posts: 3417
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Sonoff Basic Can't Flash with ESP Eay

#5 Post by Ath » 22 Jan 2022, 14:39

If it runs at 3.19V then that is within the 5-10% margin, so I expect that should be fine, a bit higher would be nicer though.

Have you tried swapping the RX and TX pins? That often helps too, as both devices have their own perspective on that, so TX on FTDI should go to RX on Sonoff, etc.
/Ton (PayPal.me)

neuznadim
Normal user
Posts: 10
Joined: 22 Jan 2022, 12:33

Re: Sonoff Basic Can't Flash with ESP Eay

#6 Post by neuznadim » 22 Jan 2022, 14:56

Of course i did that rx tx swipe. Don't know what's the issue

User avatar
Ath
Normal user
Posts: 3417
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Sonoff Basic Can't Flash with ESP Eay

#7 Post by Ath » 22 Jan 2022, 15:40

Have you tested the wires? I've too often used a fresh set of wires, stuff not working as expected, to find 1 (and sometimes even 2...) that's actually not conducting from one side to the other :o

Are other serial ports connected to the computer? I.E. Is COM5 the serial port the FTDI board is connected to?

(Yes, silly suggestions, but I've been in IT for > 35 years, and know that anything is possible, and Mr. Murphy is not your friend either...)
/Ton (PayPal.me)

neuznadim
Normal user
Posts: 10
Joined: 22 Jan 2022, 12:33

Re: Sonoff Basic Can't Flash with ESP Eay

#8 Post by neuznadim » 22 Jan 2022, 15:50

Com5 available. I updated the driver. Infact i tried in three different laptops . Tested all wires continuity. But still not working.

User avatar
Ath
Normal user
Posts: 3417
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Sonoff Basic Can't Flash with ESP Eay

#9 Post by Ath » 22 Jan 2022, 15:57

When using the serial monitor of the ESPEasy flasher, can you seen any output when the device is reset (without keeping the button pressed)? It should at least send out the regular rom boot message, AFAIK. Baud rate should be 115200.

There is still the possibility that the serial port of the Sonoff is broken, f.e. if 5V signals have been applied to it via the FTDI adapter.
/Ton (PayPal.me)

neuznadim
Normal user
Posts: 10
Joined: 22 Jan 2022, 12:33

Re: Sonoff Basic Can't Flash with ESP Eay

#10 Post by neuznadim » 22 Jan 2022, 16:07

Bud rate 115200. When long pressing the button i plug the usb then free my hand no light in the actual device. Then i flash. I don’t know what you meant by resetting the device. By the way i never made it 5v. Can we talk over a phone call?

User avatar
Ath
Normal user
Posts: 3417
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Sonoff Basic Can't Flash with ESP Eay

#11 Post by Ath » 22 Jan 2022, 16:44

neuznadim wrote: 22 Jan 2022, 16:07 I don’t know what you meant by resetting the device.
Connect serial, then connect power to Sonoff, without pressing the button, so a normal boot of the device. That should at least output something comprehensible to the serial port
/Ton (PayPal.me)

neuznadim
Normal user
Posts: 10
Joined: 22 Jan 2022, 12:33

Re: Sonoff Basic Can't Flash with ESP Eay

#12 Post by neuznadim » 22 Jan 2022, 16:48

Have you checked out my attached screenshots to this post?. May i contact with you over a what's aop or any social media call?

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Sonoff Basic Can't Flash with ESP Eay

#13 Post by TD-er » 22 Jan 2022, 17:13

Ath wrote: 22 Jan 2022, 16:44 [...]
Connect serial, then connect power to Sonoff, without pressing the button, so a normal boot of the device. That should at least output something comprehensible to the serial port
Not always, as the ESP8266 often has a 26 MHz crystal and then the flash boot mode will operate in a very uncommon baudrate of 26/40 * 115200.
So if it enters flash mode, you may not see any usable texts... but that's good :)

Some of those Sonoff devices have really flaky buttons, so you may -for now- try to short the button pads on the PCB if they are well accessible.
This will make it a bit more likely you may enter flash mode.

neuznadim
Normal user
Posts: 10
Joined: 22 Jan 2022, 12:33

Re: Sonoff Basic Can't Flash with ESP Eay

#14 Post by neuznadim » 22 Jan 2022, 19:59

After i put it on bootloader mood it doesn't show any lights on the onboarded led. Isn't it a sign that it really goes to flashing /bootloader mood?

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Sonoff Basic Can't Flash with ESP Eay

#15 Post by TD-er » 22 Jan 2022, 20:05

Nope, the ESP does seem quite "dead" when put in flash mode.
It only accepts to load some code into RAM to execute during flashing.
Every flasher tool does have some binary code specific to that chip to execute.
For example to accept GZipped binary format, or to compute the checksum of the file being flashed.
If there is nothing sent to the ESP in this mode, you can only see some kind of "greeting" if you put your serial port to 74880 baud. (on ESP with 26 MHz crystal, which is almost all ESP8266/ESP8285)
So if you have your serial port set to 115200 baud, you may see some garbage. (if not suppressed by your terminal application)

neuznadim
Normal user
Posts: 10
Joined: 22 Jan 2022, 12:33

Re: Sonoff Basic Can't Flash with ESP Eay

#16 Post by neuznadim » 22 Jan 2022, 20:13

TD-er wrote: 22 Jan 2022, 20:05 Nope, the ESP does seem quite "dead" when put in flash mode.
It only accepts to load some code into RAM to execute during flashing.
Every flasher tool does have some binary code specific to that chip to execute.
For example to accept GZipped binary format, or to compute the checksum of the file being flashed.
If there is nothing sent to the ESP in this mode, you can only see some kind of "greeting" if you put your serial port to 74880 baud. (on ESP with 26 MHz crystal, which is almost all ESP8266/ESP8285)
So if you have your serial port set to 115200 baud, you may see some garbage. (if not suppressed by your terminal application)
My Sonoff basic is fully functional even when it's connected through FTDI to a windows laptop. It just not letting me flash. Is sonoff started encoding their devices. I don’t know what's going on. My soldering also good. Any idea what i can do now?

Post Reply

Who is online

Users browsing this forum: No registered users and 39 guests