Closed meingraham closed 5 years ago
The problem seems that some incorrect data remains in the flash.
Should be recommendable to do a reset 5
to clean the flash BEFORE doing an OTA for the first time.
We should test that
Could you test that?
I asked to a friend of mine to try that. Will report as soon as I receive the feedback. In the meantime perhaps @digiblur can test it for us since he has a sonoff R3 too?
Got a reply right now: update to sonoff-basic using reset 5
DID NOT brick the device.
Had a Sonoff mini I did via DIY. Did a reset 5 command and it came back without issue. Then I flash http://thehackbox.org/tasmota/release/sonoff-basic.bin via the OTA URL method and it went through without issue. Any other tests?
@digiblur
Reset 5
Still works?
I won't be able to test that. No itead firmware anymore.
Just buy another batch of your beloved Sonoff Minis :wink:
Ha! Only reason I bought two was since they had a sale for $5 or so.
Does anyone know if will there be a firmware update to resolve these Sonoff MINI DIY model so they will just work with standard firmware without the need to issue any further commands?
You can compile your own sonoff firmware. Disable all the features you do not need. The firmware size has to be <500k. There will be no other solution, because there is the 500k limit. The sonoff-basic version can be used for daily use. It is not a intermediate version.
Added this suggestion to the Sonoff DIY article.
Team
I followed usual DIY OTA on Sonoff Mini and all went well.
I did Tasmota OTA on 6.6.0.12 sonoff-basic and I can not wake up the device. i can flash via serial successfully but the unit will cycle in Serial monitor and won`t broadcast SSID, what can I do? can I clear the memory in serial flash mode?
When you flashed serial did you erase flash first?
yes I did. is there any other way to erase flash?
I have 2 dead units Sonoff Mini, no LED after flashing FW, tried minimal, basic and even itead.bin, all flash successfully but after reboot nothing, no LED , no SSID
When it first boots, does it stay booted long enough so you can enter Reset 5
?
Are you using a pre-compiled binary?
Does the device go into this reboot cycle upon a "fresh" flash or after attempting to configure the device?
HALLELUJAH!!!!
I flashed blank_1MB.bin from ESP EASY FLASHER
then flashed tasmota and they are BACK!!!
also tested Tasmota OTA and they are fine. So yeah we should RESET 5 after eWeLink OTA
I was so happy that the eWeLink DIY OTA worked for me after 2 hours of try and failed than ended up soldering anyway. Second time in the row. Next time I solder right a way. :-)
We have suspected the NodeMCU PyFlasher "wipe" may not be as thorough as it sometimes needs to be. When using esptool.py we can make the erase explicit and as a matter of fact, we sometimes recommend doing it twice (each one performs a "write" to flash and also calibrates Wi-Fi. In other words, it's much more thorough an erase. Plus, when using esptool, we also recommend a power cycle between erase and upload. PyFlasher obviously doesn't do that either. Nevertheless, PyFlasher is still a great tool for a huge majority of users.
@Vendo232 You didnt follow wiki howto flash ;-) You used DIO as flash mode. It is written on many places in Tasmota github and wiki (for example https://github.com/arendst/Sonoff-Tasmota#important-user-compilation-information or https://github.com/arendst/Sonoff-Tasmota/wiki/Flashing#nodemcu-pyflasher) that the one and only flash mode is DOUT
Wiki refined to provide detailed guidance. Nothing to be done beyond that I'm afraid.
Did update as described in the wiki
Now the device is not respondig. It seems that as soon as connected to the Wifi it will reboot again. 40s button and also the 4 times power on cycle for 3s did not help so far.
Any other sugestions then flashing via the serial way ?
Flash 1MB empty bin file, Google it
3 Sonoffs minis bricking. One of them I see on the network "sonoffDiy" but I can not access it. The other 2 don't even see them on the net.
Solder serial and flash with empty 1MB bin than flash tasmota. Good luck, you are almost there
In the first Sonoff Mini: I soldered the wires.. I connect it and the LED flashes. I have run "esptool.py flash_id" and it doesn't connect. In the second Sonoff Mini, I have also soldered the wires but the LED does not flash.
I have the same issue, 4 Mini's flashed, 3 out of 4 bricked, flashed all with tasmota-wifiman.bin, one worked just fine and manged to connect to my WiFi Network then updated with Sonoff basic worked flawlessly. The other 3 flashed the same way, all of them are showing on My DNS server but I can't connect to them, any suggestions? Its really frustrating!
same for me. bricked my second mini today.
those pads are tiny. any tips to solder the serial connectors?
Solder serial and flash with empty 1MB bin than flash tasmota. Good luck, you are almost there
http://www.pratikpanda.com/wp-content/uploads/2016/05/blank_1MB.zip
Hi, I'm in a similar situation. I've flashed 2 sonoff mini with tasmota-wifiman.bin(maybe wrong) now are death. help
@Vendo232 got right but may be more detailed.
esptool.py --port <path_to_port_which_sonoff_is_connected> --chip esp8266 write_flash -fs 1MB -fm dout 0x0 <path_to_blank_image>/blank_1MB.bin
Output should looks like:
esptool.py v2.8
Serial port <path_to_port_which_sonoff_is_connected>
Connecting....
Chip is ESP8285
Features: WiFi, Embedded Flash
Crystal is 26MHz
MAC: dd:ff:bb:11:33:dd
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Warning: Image file at 0x0 doesn't look like an image file, so not changing any flash settings.
Compressed 1048576 bytes to 1039...
Wrote 1048576 bytes (1039 compressed) at 0x00000000 in 0.1 seconds (effective 88756.0 kbit/s)...
Hash of data verified.
Leaving... Hard resetting via RTS pin...
8. Disconnect uart/ftdi from computer
9. Hold button on your sonoff mini and connect uart/ftdi to computer
10. Burn tasmota:
esptool.py --port
Output should looks like:
esptool.py v2.8
Serial port
Leaving... Hard resetting via RTS pin...
11. Sonoff led should start blinking and you can be happy now because you just bring back your sonoff to life :)
Done, I had revived all my Sonoff's and working now ... Great every one and thanks ...
On Sun, Jan 12, 2020 at 1:02 AM sredni notifications@github.com wrote:
@Vendo232 https://github.com/Vendo232 got right but may be more detailed.
- Solder 4 wires to mini board [image: 1FCF5367-097B-4788-85BC-985D16CC4FDE] https://user-images.githubusercontent.com/1628634/72211460-f6181400-34cb-11ea-9c23-61dec99a9632.JPG
- Connect it to your uart/ftdi but do not connect it to your computer yet (make sure that your adapter uses 3v3 not 5v).
- Download/install esptool.py
- Download empty flash image ( http://www.pratikpanda.com/wp-content/uploads/2016/05/blank_1MB.zip)
- Download latest tasmota (i suggest to use lite version - after all it may be easy updated via ota)
- Hold button on your sonoff mini and connect uart/ftdi to computer
- Burn empty image:
esptool.py --port
--chip esp8266 write_flash -fs 1MB -fm dout 0x0 /blank_1MB.bin Output should looks like:
esptool.py v2.8 Serial port
Connecting.... Chip is ESP8285 Features: WiFi, Embedded Flash Crystal is 26MHz MAC: d8:f1:5b:82:82:dd Uploading stub... Running stub... Stub running... Configuring flash size... Warning: Image file at 0x0 doesn't look like an image file, so not changing any flash settings. Compressed 1048576 bytes to 1039... Wrote 1048576 bytes (1039 compressed) at 0x00000000 in 0.1 seconds (effective 88756.0 kbit/s)... Hash of data verified. Leaving... Hard resetting via RTS pin...
- Disconnect uart/ftdi from computer
- Hold button on your sonoff mini and connect uart/ftdi to computer
- Burn tasmota:
esptool.py --port
--chip esp8266 write_flash -fs 1MB -fm dout 0x0 /tasmota-lite.bin Output should looks like:
esptool.py v2.8 Serial port
Connecting.... Chip is ESP8285 Features: WiFi, Embedded Flash Crystal is 26MHz MAC: d8:f1:5b:82:82:dd Uploading stub... Running stub... Stub running... Configuring flash size... Compressed 474576 bytes to 328553... Wrote 474576 bytes (328553 compressed) at 0x00000000 in 29.0 seconds (effective 130.8 kbit/s)... Hash of data verified. Leaving... Hard resetting via RTS pin...
- Sonoff led should start blinking and you can be happy now because you just bring back your sonoff to life :)
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/arendst/Tasmota/issues/6358?email_source=notifications&email_token=AOE5ISFYZLKBCLKXEDRZYQ3Q5JFZLA5CNFSM4IUB6XC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIWNBKY#issuecomment-573362347, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOE5ISBJUE6BMJXDGTZRLDTQ5JFZLANCNFSM4IUB6XCQ .
--
BR,
Amr AboTaleb +20100-1953030 +20114-3999948
I'm at another project but have also this message.
Warning: Image file at 0x0 doesn't look like an image file, so not changing any flash settings.
Is this an issue or should the firmware run as expected?
@mf01 Depends on what you are doing. If you trying to upload non empty image esptool try’s to check what is in the image and adjust some flashing settings. But when the image is empty this warning can be ignored.
... 4 units, 3 is dead,
Tried the OTA, first battle to get it into DIY mode... eventually lucky and get it (these are new units without the jumper). then assign wifi credentials, At this point I can do curl's and node-red command push'es. get responses. nw try and flash, originally used the pythin Simpllehttpserver, always end with broken pipe during download, so tried the npn one, well that works, file is transferred and then it complains about a POST api/devices/otaFlash and now it's dead/bricked, nothing works. at times i get it to present a wifi, called ESP_**** but thats of no help,
working on a MAC.
i have 1 unit left, would love a step by step that will work from a MAC.
G
I had the same issue. Flashing minimal bricked the mini r2. But, you can recover by soldering to the header pins (which are tiny on the R2) and I got the first one running.
I had better luck with my 2nd mini r2. My OTA sequence was:
Its a bit of a pain doing all of these steps, but worth trying before heating up your soldering iron.
Hope this helps others.
@Vendo232 got right but may be more detailed.
- Download empty flash image (http://www.pratikpanda.com/wp-content/uploads/2016/05/blank_1MB.zip)
Hello, how to download empty flash?
This app has it included
I got many devices bricked after doing an OTA upgrade. The firmware was a custom build.
Problem: I had chosen board = esp8266_4M2M
in platformio.ini. But my device was actually a 1MB device.
The OTA uploads were successful, but the device never came back alive again -I had to flash through serial port all over again.
Solution: choose the correct board type esp8266_1M
and build again. After this change, my OTAs never failed.
I cannot provide template information. I'm just reporting three instances in the past several days of seeing this from users.
A user uses Sonoff DIY to flash sonoff-basic and it completes successfully. However, when performing an update to sonoff.bin via web OTA, the device does not come back online. No AP is broadcasting. It cannot be reset with 40s button press. The only recovery is to flash via serial.