Flashing Sonoff Wifi Modules / not working

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
gahle
New user
Posts: 8
Joined: 12 Jul 2017, 07:02

Flashing Sonoff Wifi Modules / not working

#1 Post by gahle » 12 Jul 2017, 07:11

Hi,

yesterday I got 4 new Sonoff Wifi Switches and I started to flash them with the 147RC9-Firmware. Because I want to grow up my home automationy system :) . After I flashed all 4 Boards with the *.bin file I had the problem that they are not working.
No message from to bootloader at startup via serial port, no reaction later.

I can flash the boards again and again, but no reaction. I used a 3V3 serial adapter with RS232 and different pc's. But I had no success...

What happens? I have no idea anymore...
Can somebody help me?

Thx... ;)

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Flashing Sonoff Wifi Modules / not working

#2 Post by Shardan » 12 Jul 2017, 10:02

Hello,

please provide some more information, primarily the type of switch.

Sadly not all Sonoff devices are supported by ESPEasy.
The Sonoff basic and Sonoff 4CH are known working, might need a specially compiled Version due to a slightly different chip.
Some Sonoff devices like Sonoff Dual and possibly your switches use a separate MCU, a tiny processor, for input and output.

These are not supported with ESPEasy at this time.

But there is some work done on this, see
https://www.letscontrolit.com/forum/vie ... ual#p17447

Regards
Shardan
Last edited by Shardan on 12 Jul 2017, 15:10, edited 1 time in total.
Regards
Shardan

manjh
Normal user
Posts: 516
Joined: 08 Feb 2016, 11:22

Re: Flashing Sonoff Wifi Modules / not working

#3 Post by manjh » 12 Jul 2017, 11:26

I have several "single channel" Sonof switches, and two 4CH units. All are working perfectly with ESPEasy, but you have to be careful on how you do it.

first, make sure you use a 3.3V FTDI, with the right drivers. Sometimes the FTDI uses "fake" chips and you need to explicitely install the older drivers. Look in Device Manager to make sure the unit is properly supported.
second, connect the 3.3V and ground the right way, and also connect TX to TX, and RX to RX! This is different from other devices, but the Sonoff units are labeled this way.
third, before connecting the power to the Sonoff, press and hold the button (on the 4CH: the one marked L1). Then connect power.
fourth, use the correct precompiled bin file. The basic and TH10 Sonoffs use a 8266 chip, the 4CH uses 8285. This makes a big difference and should be set when compiling. Also, the compiler should be set for 1M size.
last: use the flash.cmd and esptool.exe files as supplied with the regulare ESPEasy releases, and load the specific bin file .

The loader will report the progress up to 100%.
Then disconnect the RX/TX connections, restart the Sonoff, and check for the ESP_0 access point showing up on Wifi.
From there on the normal configuration can be followed. Check the Wiki.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Flashing Sonoff Wifi Modules / not working

#4 Post by grovkillen » 12 Jul 2017, 11:29

Just a tips, this programmer has never let me down.

Aluminum shell CP2102 USB 2.0 to TTL UART Module 6Pin Serial Converter STC Replace FT232 Module support 5v/3.3v
http://s.aliexpress.com/vumyyIr6
(from AliExpress Android)
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

hellgun
New user
Posts: 6
Joined: 16 Jul 2017, 12:07

Re: Flashing Sonoff Wifi Modules / not working

#5 Post by hellgun » 16 Jul 2017, 12:28

I have encountered some problems when flashing the Sonoff basic. I started with three Sonoff TH10 and I could flash both R120 and v2.0.0-dev10_dev on all three of them without any problems. When i continued with two Sonoff basic the v2.0.0-dev10_dev didn't work at all. The flash went fine but the Sonoffs didn't connect to my wifi. Then i tried the R120 and everything went fine (until I activated the wifi-LED on GPIO13, the Sonoffs then chrashed and wasn't reachable). Then I tried the v2.0.0-dev10_normal with success (I didn't activate the wifi-LED in case the Sonoffs should crash). Unfortunately the v2.0.0-dev10_normal lack the Advanced Generic HTTP protocol so I can't connect more than one DS18b20 (the Generic HTTP protocol can't handle more than one value). I hope future releases fix this.

gahle
New user
Posts: 8
Joined: 12 Jul 2017, 07:02

Re: Flashing Sonoff Wifi Modules / not working

#6 Post by gahle » 16 Jul 2017, 21:46

Hi,

now I got the Programmingadapter with the cp2102-chip. I can flash all Sonoff-Modules (wIFI;1 Channel), but after starting them, all send the same message :

ets Jan 8 2013,rst cause:1, boot mode:(3,6)

load 0x4010f000, len 1384, room 16
tail 8
chksum 0xef
csum 0xef
csum err
ets_main.c

and the FW147 is not starting...
What happen's?

Thx

gahle
New user
Posts: 8
Joined: 12 Jul 2017, 07:02

Re: Flashing Sonoff Wifi Modules / not working

#7 Post by gahle » 16 Jul 2017, 23:39

Attached my modules....

gahle
New user
Posts: 8
Joined: 12 Jul 2017, 07:02

Re: Flashing Sonoff Wifi Modules / not working

#8 Post by gahle » 16 Jul 2017, 23:44

I hpoe they are now online...
20170716_233026.jpg
20170716_233026.jpg (63.96 KiB) Viewed 31758 times
20170716_233026.jpg
20170716_233026.jpg (63.96 KiB) Viewed 31758 times
Attachments
20170716_233037.jpg
20170716_233037.jpg (90.21 KiB) Viewed 31758 times

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Flashing Sonoff Wifi Modules / not working

#9 Post by papperone » 17 Jul 2017, 12:05

Esp is on the other side i guess, can you send bottom picture as well?
Only thing i can think of is tgat maybe itead changed from esp8266 to another mc
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

gahle
New user
Posts: 8
Joined: 12 Jul 2017, 07:02

Re: Flashing Sonoff Wifi Modules / not working

#10 Post by gahle » 17 Jul 2017, 20:01

Hi,

here is the bottom side. I cannot see any changes...
Tzzz, what happens?
I've used the original bin-File...
20170717_194015.jpg
20170717_194015.jpg (87.06 KiB) Viewed 31721 times
20170717_194005.jpg
20170717_194005.jpg (71.41 KiB) Viewed 31721 times

Blacky's Boss
Normal user
Posts: 11
Joined: 20 Jul 2017, 13:11

Re: Flashing Sonoff Wifi Modules / not working

#11 Post by Blacky's Boss » 20 Jul 2017, 22:00

Well, I have the same issue. And I think I've seen a couple of others, too... A few weeks ago, I ordered and received my first two Sonoff's... Flashing and configuring ESPEASY was a breeze, so I ordered 3 more from a different seller @ aliexpress....These 3 seem to do something whith stock firmware, but after flashing, they're all dead.
I'm beginning to suspect that I 've received a 'cheap chinese knockoff' of an already cheap chinese product:
- Housing of the first batch is matte grey-ish, and feels rough. 2nd batch is just shiny white.
- Cablecovers of the first batch fit nicely. 2nd, not so much.
- Lettering on top is just... Different. Slightly different font, slightly thicker.
- Even the WiFi symbol is a bit bigger. Strange, isn't it?
- Warranty sticker: Looks the same, but if you look closer, it's not. Working ones say 2017 5 1, and the dead ones say 2017 5 15, by the way.
- PCB, same differences, silkscreen texts rougher and bigger, Soldering (especially on the high voltage tracks) just ugly.

Still, if anyone has a real clue on why these things won't work after flashing, i'd like to know too.... :lol:
Attachments
IMG_20170720_212321.jpg
IMG_20170720_212321.jpg (3.79 MiB) Viewed 31748 times
Last edited by Blacky's Boss on 25 Jul 2017, 21:27, edited 1 time in total.

LeisureLadi
New user
Posts: 3
Joined: 22 Jul 2017, 22:31

Re: Flashing Sonoff Wifi Modules / not working

#12 Post by LeisureLadi » 23 Jul 2017, 18:31

Did you flash in DOUT mode? The flash memory in your picture require this mode. DiO, QIO, etc. won't work.

Blacky's Boss
Normal user
Posts: 11
Joined: 20 Jul 2017, 13:11

Re: Flashing Sonoff Wifi Modules / not working

#13 Post by Blacky's Boss » 24 Jul 2017, 09:21

That worked for me! Thanks a lot!!!!

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Flashing Sonoff Wifi Modules / not working

#14 Post by Shardan » 24 Jul 2017, 22:22

Ehm... stupid question: how can i set DOUT mode?
Regards
Shardan

Blacky's Boss
Normal user
Posts: 11
Joined: 20 Jul 2017, 13:11

Re: Flashing Sonoff Wifi Modules / not working

#15 Post by Blacky's Boss » 24 Jul 2017, 22:37

Rule nr1: there are no stupid questions, only stupid answers

Here's one: I'm using Arduino to flash the Sonoff, en then it's just somewhere in the tools menu.

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Flashing Sonoff Wifi Modules / not working

#16 Post by Shardan » 25 Jul 2017, 19:08

Blacky's Boss wrote: 24 Jul 2017, 22:37 Rule nr1: there are no stupid questions, only stupid answers

Here's one: I'm using Arduino to flash the Sonoff, en then it's just somewhere in the tools menu.
Interesting. I use Arduino IDE 1.8.1 Windows (german) with the ESP-core 2.3.0
Within the tools menu i can switch to serial plotter/Monitor, WiFi Firmware updater, Board Manager,
CPU frequency, Flash size, Upload speed, Port, Get board info, Programmer, and burn bootloader.

Sorry, but no or at least no obvious no setting for prog mode.
I didn't find any in the other menu's too.
Regards
Shardan

Blacky's Boss
Normal user
Posts: 11
Joined: 20 Jul 2017, 13:11

Re: Flashing Sonoff Wifi Modules / not working

#17 Post by Blacky's Boss » 25 Jul 2017, 21:21

See my settings below, Arduino 1.8.3 and ESP core 2.3.0
Available options depend on the selected board, could that be your cause?

I'm starting to love ESPeasy. On to the next challenge: crappy Chinese RGB ledstrip thingy. :mrgreen: :mrgreen: :mrgreen:
Attachments
EspEasy.png
EspEasy.png (50 KiB) Viewed 31608 times

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Flashing Sonoff Wifi Modules / not working

#18 Post by Shardan » 26 Jul 2017, 13:41

hm....
I'll see if the selected board is the problem or if I can get the 1.8.3. version of IDE

I'll check it when back home

Regards
Shardan
Regards
Shardan

gahle
New user
Posts: 8
Joined: 12 Jul 2017, 07:02

Re: Flashing Sonoff Wifi Modules / not working

#19 Post by gahle » 26 Jul 2017, 21:26

Hi,

thanks for that information. All four Sonoff-Modules could be flashed, but after they started and I inserted the Wifi-WPA Key, the modules crashed and made a reboot.
"cause:4" is the reason that I can read. This only works at the +3V3 power supply. If I change it to the 230V AC now accespoint is available...

At the crash the serial port showns a lot of "trash" output. The modules are restarting with the root cause 4...

This behavior is the same from arduino 1.6.12. compiled file and the used xxxR147xx1024.bin file.
It seems to be that there is anything more...
Does anyone have the same problems like me...

Best regards
gahle

gahle
New user
Posts: 8
Joined: 12 Jul 2017, 07:02

Re: Flashing Sonoff Wifi Modules / not working

#20 Post by gahle » 08 Aug 2017, 12:13

Hi all,

yesterday I made a big step... :D
I ordererd SPI-EEproms from Winbond W25Q32FVSSIG a few weeks ago (for upgrade from 1 Mbit up tp 4 Mbit).
I removed the Xicor 25F08xxx and replaced them with the Winbond EEproms.

And...surprise....all 8 Sonoffs Wifi Switches are now working correct and stable.

It seems to be that the Xircor-Chips have some properties, that has an impact on the firmware...
But now all is working fine.

Best regards

murias
New user
Posts: 1
Joined: 16 Sep 2017, 16:40

Re: Flashing Sonoff Wifi Modules / not working

#21 Post by murias » 16 Sep 2017, 16:46

Blacky's Boss wrote: 20 Jul 2017, 22:00 Well, I have the same issue. And I think I've seen a couple of others, too... A few weeks ago, I ordered and received my first two Sonoff's... Flashing and configuring ESPEASY was a breeze, so I ordered 3 more from a different seller @ aliexpress....These 3 seem to do something whith stock firmware, but after flashing, they're all dead.
I'm beginning to suspect that I 've received a 'cheap chinese knockoff' of an already cheap chinese product:
- Housing of the first batch is matte grey-ish, and feels rough. 2nd batch is just shiny white.
- Cablecovers of the first batch fit nicely. 2nd, not so much.
- Lettering on top is just... Different. Slightly different font, slightly thicker.
- Even the WiFi symbol is a bit bigger. Strange, isn't it?
- Warranty sticker: Looks the same, but if you look closer, it's not. Working ones say 2017 5 1, and the dead ones say 2017 5 15, by the way.
- PCB, same differences, silkscreen texts rougher and bigger, Soldering (especially on the high voltage tracks) just ugly.

Still, if anyone has a real clue on why these things won't work after flashing, i'd like to know too.... :lol:
I had exactly the same problem with one Sonoff Basic that I just received from Aliexpress. It worked fine with the manufacturer's firmware, but it stopped working after I flashed ESP Easy.
LeisureLadi wrote: 23 Jul 2017, 18:31 Did you flash in DOUT mode? The flash memory in your picture require this mode. DiO, QIO, etc. won't work.
With LeisureLadi's solution I got it working. Thank you very much!

Filipe Múrias

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Flashing Sonoff Wifi Modules / not working

#22 Post by Dylantje » 17 Sep 2017, 13:07

is there perhaps a how to flash with the IDE....
I cannot flash 6 different sonoff with the espeasy flasher.
Strange problem..
The flash tells me flash ok...
Only no wifi to find.

I try 120 and the last dev 2.0
With differnet boards.
single
dual
and the 4 channel.
Different flasgools
Differnet usb flashers.

No luck @ all.
And i did flash 10 sonoff before this [ a time a go ]

So help please.

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Flashing Sonoff Wifi Modules / not working

#23 Post by Dylantje » 17 Sep 2017, 13:36

My 4 sonoff 4 channel flash data:

Code: Select all

Comport (example 3, 4, ..)           :5
Flash Size (example 512, 1024, 4096) :1024
Build (example 71, 72, ..)           :120
Using com port: 5
Using bin file: ESPEasy_R120_1024.bin
esptool v0.4.6 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
        setting board to nodemcu
        setting baudrate from 115200 to 115200
        setting port from COM1 to COM5
        setting address from 0x00000000 to 0x00000000
        espcomm_upload_file
        stat ESPEasy_R120_1024.bin success
        setting serial port timeouts to 1000 ms
opening bootloader
resetting board
trying to connect
        flush start
        setting serial port timeouts to 1 ms
        setting serial port timeouts to 1000 ms
        flush complete
        espcomm_send_command: sending command header
        espcomm_send_command: sending command payload
        read 0, requested 1
trying to connect
        flush start
        setting serial port timeouts to 1 ms
        setting serial port timeouts to 1000 ms
        flush complete
        espcomm_send_command: sending command header
        espcomm_send_command: sending command payload
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_open
Uploading 411264 bytes from ESPEasy_R120_1024.bin to flash at 0x00000000
        erasing flash
        size: 064680 address: 000000
        first_sector_index: 0
        total_sector_count: 101
        head_sector_count: 16
        adjusted_sector_count: 85
        adjusted_size: 055000
        espcomm_send_command: sending command header
        espcomm_send_command: sending command payload
        setting serial port timeouts to 10000 ms
        setting serial port timeouts to 1000 ms
        espcomm_send_command: receiving 2 bytes of data
        writing flash
..................................................................................................................................................................................................................................................................................................................................................................................................................
starting app without reboot
        espcomm_send_command: sending command header
        espcomm_send_command: sending command payload
        espcomm_send_command: receiving 2 bytes of data
closing bootloader
        flush start
        setting serial port timeouts to 1 ms
        setting serial port timeouts to 1000 ms
        flush complete
Press any key to continue . . .
So everything looks ok...
Only no wifi to see When i power the board with 220v
I see also no lights blinking ?

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Flashing Sonoff Wifi Modules / not working

#24 Post by Dylantje » 17 Sep 2017, 13:46

My Sonoff [single ] Data :

Code: Select all

Comport (example 3, 4, ..)           :5
Flash Size (example 512, 1024, 4096) :1024
Build (example 71, 72, ..)           :120
Using com port: 5
Using bin file: ESPEasy_R120_1024.bin
esptool v0.4.6 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
        setting board to nodemcu
        setting baudrate from 115200 to 115200
        setting port from COM1 to COM5
        setting address from 0x00000000 to 0x00000000
        espcomm_upload_file
        stat ESPEasy_R120_1024.bin success
        setting serial port timeouts to 1000 ms
opening bootloader
resetting board
trying to connect
        flush start
        setting serial port timeouts to 1 ms
        setting serial port timeouts to 1000 ms
        flush complete
        espcomm_send_command: sending command header
        espcomm_send_command: sending command payload
        read 0, requested 1
trying to connect
        flush start
        setting serial port timeouts to 1 ms
        setting serial port timeouts to 1000 ms
        flush complete
        espcomm_send_command: sending command header
        espcomm_send_command: sending command payload
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_open
Uploading 411264 bytes from ESPEasy_R120_1024.bin to flash at 0x00000000
        erasing flash
        size: 064680 address: 000000
        first_sector_index: 0
        total_sector_count: 101
        head_sector_count: 16
        adjusted_sector_count: 85
        adjusted_size: 055000
        espcomm_send_command: sending command header
        espcomm_send_command: sending command payload
        setting serial port timeouts to 10000 ms
        setting serial port timeouts to 1000 ms
        espcomm_send_command: receiving 2 bytes of data
        writing flash
..................................................................................................................................................................................................................................................................................................................................................................................................................
starting app without reboot
        espcomm_send_command: sending command header
        espcomm_send_command: sending command payload
        espcomm_send_command: receiving 2 bytes of data
closing bootloader
        flush start
        setting serial port timeouts to 1 ms
        setting serial port timeouts to 1000 ms
        flush complete
Press any key to continue . . .
Same problem

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Flashing Sonoff Wifi Modules / not working

#25 Post by Shardan » 17 Sep 2017, 14:11

Please remember:
The Sonoff 4ch uses a slightly different processor, an ESP8285 instead an8266.
If you want to use the Rxxx version you have to compile your own binary for this cpu.

A precompiled 2.0.0 binary for that cpu is availlable on github.

Regards
Shardan
Regards
Shardan

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Flashing Sonoff Wifi Modules / not working

#26 Post by Dylantje » 17 Sep 2017, 14:17

Shardan wrote: 17 Sep 2017, 14:11 Please remember:
The Sonoff 4ch uses a slightly different processor, an ESP8285 instead an8266.
If you want to use the Rxxx version you have to compile your own binary for this cpu.

A precompiled 2.0.0 binary for that cpu is availlable on github.

Regards
Shardan
mm i need to better RTFM sorry.

Is there a link or something?
Kan i not flash the 4 channel like the others?

Ans the dual will not flash to.
Do you have other options?

Thanks!!!

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Flashing Sonoff Wifi Modules / not working

#27 Post by Shardan » 17 Sep 2017, 15:32

Hello Dylantje,

nope. as said it is a different cpu that handles memory in another way then the esp8266 - this needs an adapted binary.

Search for the "Sonoff 4ch with espeasy" thread in the forum, on page 4 i attached a precompiled R148 version for the 4ch.
Sorry, i don't have my link collection at hand, i'm sitting in the sun of south spain for another week.

In that thread there are several tips & tricks for flashing the 4ch.

Regards
Shardan
Regards
Shardan

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Flashing Sonoff Wifi Modules / not working

#28 Post by Dylantje » 17 Sep 2017, 20:09

mmm did the flash ..
Now i got the dual flashed....
Only cannot switch the channels.

Looks i flashed the 4channel with the latest dev. version.
Only not stable..
Everytime a reboot..


So do you have a idea?

aihysp
New user
Posts: 4
Joined: 07 Oct 2017, 11:08

Re: Flashing Sonoff Wifi Modules / not working

#29 Post by aihysp » 07 Oct 2017, 11:12

Dylantje wrote: 17 Sep 2017, 13:07 is there perhaps a how to flash with the IDE....
I cannot flash 6 different sonoff with the espeasy flasher.
Strange problem..
The flash tells me flash ok...
Only no wifi to find.

I try 120 and the last dev 2.0
With differnet boards.
single
dual
and the 4 channel.
Different flasgools
Differnet usb flashers.

No luck @ all.
And i did flash 10 sonoff before this [ a time a go ]

So help please.
Hi did you find any solation?
i am having the same issues... was able to flash one sonoff with 120R
and now nothing works

but i think its my TTL gone dead, is there any way to check a bad TTL ?

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Flashing Sonoff Wifi Modules / not working

#30 Post by Dylantje » 05 Nov 2017, 18:31

something beter found??
Or a solution??

elaroche
New user
Posts: 3
Joined: 27 Dec 2017, 17:27

Re: Flashing Sonoff Wifi Modules / not working

#31 Post by elaroche » 27 Dec 2017, 17:35

Hi guys,

Just registered because I'm having the same problems.
My equipments:
- SonOff Basics
- SonOff TH10 & sensor

I already flashed a sonoff basic with FlashDownloadTool and Firmware 2.00 without any trouble.
Then I tried to flash the TH10 without any success. I checked everything I could hundreds of time (soldering quality, button, spi speed, etc.)
I changed the firmware for the 1.20 : same thing.
It happens that I can flash it with FlashESP8266 from ESPEasy but without any wifi.
After trying so much finally once I've been able to see the ESP_0 wifi and to set the TH10 as I wanted. Actually I set up the LED setting on the wrong GPIO and then........ nothing happened anymore like it was dead. I tryied unplugging of course.
And well I'm stuck again on the flashing that doesn't work ([ESP8266Loader_spi[1]][espDownloader.pyo][line:457][ERROR]: ESP8266 Chip flash download error esp_write_flash.) or success but without WIFI :oops: :?:

Does it make sense for you ? I tryied DIO, DOUT, etc. .....

Any idea ? Thanks to you.

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

Re: Flashing Sonoff Wifi Modules / not working

#32 Post by TD-er » 28 Dec 2017, 11:45

Are you sure it is an ESP8266 and not an ESP8285?

elaroche
New user
Posts: 3
Joined: 27 Dec 2017, 17:27

Re: Flashing Sonoff Wifi Modules / not working

#33 Post by elaroche » 04 Jan 2018, 22:43

Hi,

Thank you for your help and sorry for the late delay I didn't have any notification.
Yes I double checked.
I also learned how to use arduino IDE to check and same results.

after a few days I retried everything and sometimes I can flash it but the ESP wifi is never showing up :(
With these I tryied to flash straight out of the box, maybe they need a first run with ewelink :?: :?:

BlackMirrorView
New user
Posts: 1
Joined: 08 Jan 2018, 23:12

Re: Flashing Sonoff Wifi Modules / not working

#34 Post by BlackMirrorView » 08 Jan 2018, 23:25

I have not read through the whole post, but I hope this will help.

Last week I bought two Sonoff Basic units and followed the instructions for flashing them and had the same issue where the AP never showed. I tried multiple time and also noted that when flashing the program would often get connection errors before flashing.

I even tried two different USB to serial devices, but they both did the same thing.

After much Googling, I found two things that will hopefully help you.

My board seems to be the newer version from Sonoff (it says v1.1 on the board) and it turns out that Sonoff has made a change to the new boards.

The first thing I learned was that the new board needs to be flashed in DOUT flash mode and the only way I have found to do that is via download of the source, compile and flash via Arduino software.

That did not work at first and was even worse as I just got an immediate connection error, with no retries like with the ESPEasy flash software. So I went Googling again.

The second thing I learned is that Sonoff made a second change to the new board and you have to hold the black button in the whole time from connecting the Sonoff Basic to the USB to serial device and only release the button after the compile and flash has complete. Connection is immediate after compile and the flash does not take long. Doing this resulted in the AP showing up after disconnecting power and power the Sonoff on again (without holding the black button).

I am a complete noob at this, but I hope my advice helps.

elaroche
New user
Posts: 3
Joined: 27 Dec 2017, 17:27

Re: Flashing Sonoff Wifi Modules / not working

#35 Post by elaroche » 16 Jan 2018, 22:13

Thank you and I saw and tried the steps already. No luck for me :(.
I'm still trying. If I found something I will tell.
:oops: :evil: :twisted:

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

Re: Flashing Sonoff Wifi Modules / not working

#36 Post by TD-er » 17 Jan 2018, 00:09

elaroche wrote: 16 Jan 2018, 22:13 Thank you and I saw and tried the steps already. No luck for me :(.
I'm still trying. If I found something I will tell.
:oops: :evil: :twisted:
Can you look on the flash chip and see if it has a "PUYA" label on it?

joemoer
New user
Posts: 2
Joined: 02 Jan 2018, 09:49

Re: Flashing Sonoff Wifi Modules / not working

#37 Post by joemoer » 17 Jan 2018, 16:41


Post Reply

Who is online

Users browsing this forum: No registered users and 35 guests