-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update with curl responds with error 500 -12 write failed #3
Comments
Hi I am seeing the very same thing when trying to use the Shelly Dimmer 1 firmware. Regards Kurt |
Also, @yaourdt Thank you for this firmware! It has made reverting back to stock firmware SO easy! Thank you!!! Regards Kurt |
Hi again I just wanted to update this thread to say that it doesn’t seem like I am able to flash any firmware. Not just the Shelly firmware. Regards Kurt |
Sorry for my late reply. Did you use the 0x1000 or 0x7000 firmware for reverting? Can you please unplug the device with intermediate firmware, plug it back in again and try to write again? Do you have the possibility to attach a serial debugger, so we can get some logs? I'll try to test the Dimmer 1 on a dev board later this week |
Hi @yaourdt No worries about the delay. I have used 0x7000 on my devices. I have 4 of them, and all of them have flashed without failure to the intermediate firmware, but all of them are unable to flash any other firmware, even after a power cycle (as suggested above). I am not able to attach a serial debugger at the moment. But I might be able to take one off of the light circuit and try it that way. Regards Kurt |
Hi @kurtwarwick-new Attaching the debugger would be a great help to see if all the preparation steps work as intended. The intermediate firmware tries to detect the devices flash size and adapt the image to it. Then, rboot moves the system config during the next restart. This has to work before you can upload the final firmware, and it may work on my dev-board, but not on your actual dimmer, so some data from an actual device would be very helpful. Nonetheless, I'll try to reproduce it on the dev board as well as soon as I get to it Best, Mark |
Hi Mark, i've used the 0x7000 too, as stated in your description. After my wife complained about sleeping with lights on I had to remove the shelly anyway :-) Unfortunately I could not get any useful output on serial console... After fiddling around I've found out that the pinout from official website is wrong (here is the correct one). Nevertheless it could not be flashed on my laptop, even when using external power supply. Sorry, I can not give any new debugging output for now. BR Andreas |
@Diegocampy problem is different from the Dimmer 1 problems and should be discussed in #4 |
sorry, I delete mi post. |
Ok, I had a look at this issue, and for me Dimmer 1 is not working either. The problem however seems to be different. Applying the ZIP works as expected
but the boot process hangs while booting the new rom
there is no difference between the release and beta firmware. Testing other variants such as the Shelly Plug S (SHPLG-S.zip) works as expected, so this is most likely a device specific problem. The |
I tried newer mos versions now, 2.18.0 and 2.19.0, and the error remains the same. Maybe the dev boards flash size (32 Mbit instead of 16Mbit in the Shelly) leads to the issue. What we can see from the logs is that the Shelly stock firmware will load initially and confirm the boot, but fails after the first reboot:
vs second try with confirmed boot
Still, this is further than where you got. I'll have to wait for you providing me with logs... |
Hi @yaourdt Apologies for being MIA. I have been on vacation for the past 2 weeks. I will attach a debugger to one of my Shelley’s and send the output as soon as I can! Thanks so much for attempting none-the-less! Regards Kurt |
If I may ask, where were able to get recovery firmware for a Shelly Dimmer from? Thanks! |
Hi Kurt, Shelly Dimmer 1: https://www.shelly-support.eu/filebase/index.php?entry/113-shelly-dimmer-recovery-firmware-1-5-10/ BR Andreas |
@kurtwarwick-new no problem, and welcome back! Looking forward to the logs. |
Same problem with shelly plug S. used 0x7000 also. Any news? |
Unfortunately not, no. Still waiting on someone to provide logs, please feel free to contribute. I think the problem is in a closed-source part of Mongoose OS, but I don't have an answer from the maintainers yet. I'll ask them again as soon as I've seen some logs.... |
i could help but need some pointers. I can connect the device by pins, no problem, already tested. the problem is with 3.3v the wifi is not ready for me to connect. How do I do it to have the log? |
If you can connect to the pins, you are almost there. Besides 3V3 and GND, you only need to connect RX and TX to a UART board:
Any software that can read from a serial output should do, I myself use the official mos tool recommended for Mongoose development. After setting it all up, just run |
Thank you, but my problem wasn’t that. After doing all that I don’t see any wifi network to connect and try ota update |
actually... nevermind that, I'm just stupid. I was grounding GPIO0, putting in programming mode, so no wifi.... can we turn back time? in my defence I usually do that when flashing by cable. will get the logs ASAP. thank you again. |
--- yaourdt edit: format code |
leaving logging on I'm getting this:
|
Thanks! I have to dig in a bit, but what I can say for now: The addresses calculated ( Could you please also post the boot parameters starting from |
how do I reboot while logging? |
Use RST or cut 3V3 for a moment |
Cutting 3v3 didn’t work, I lost logging... will try RST. Thanks |
can't reboot and log. Most of the time I get an access denied when using this adaptor with bad drivers (the ones I found). works fine with tasmonizer but the rest..... It's a Prolific PL2303HX . Using mos.exe gui has an option to reboot, but always access denied. |
@yaourdt |
Same problem with Shelly RGBW2 here. |
Same problem with Shelly PlugS and mgos512k-0x7000.bin loaded via OTA
|
Same here... Any update? |
I'll be back here now too with error 12 on Shelly Plug S. I have read everything but I did not understand if I can restore my 4 plugs. |
ok, since returning to my Shelly Plus S is impossible, does anyone know how to get back from Mongoose to tasmota? |
I had the same problem with my Shelly Plug-S. I don´t think you are able to flash back tasmota from Mongoose via ota with this Error. You can recover your Shelly by soilder a serial adapter to Shelly and flash back the stock or the tasmota firmware with the esptool. You can find a manual here: https://github.com/qtoggle/espqtoggle/wiki/Shelly-Plug-S |
I am facing also the same flashing issue with Shelly Plug S. Is a short-term solution to the error expected? |
Is @yaourdt still alive (or interested in this)? There hasn't been any GitHub activity since early last year. |
I'm facing the same problem with a Shelly Plug S. If anyone knows of a workaround to at least get Tasmota back working, that would be sufficient for me.
|
@Sillium Try do this --> [Flash with wires] (#3 (comment) ) Someone reported that worked on the same device --> [confirm that works on shelly plug S] (#3 (comment)) You can find the firmware 0x700 here |
Hi. I just got stuck on the Tasmota-back-to-Shelly-stock-firmware procedure, I am also getting this So, if I am reading this correctly, there is currently no way to solve this problem for people who are not going to do the wired flashing, right? No way forward to the Shelly stock firmware, and no way back to the Tasmota, right? :-( |
Same issue here: -12 Write failed Any update on how to get out of "Limbo" when soldering is not an option? |
i have a shelly plug s with also the -12 Write failed error. Is there any fix? |
Trying to recover RGBW2 with 0x7000 firmware. Flashing wired, but getting this, regardless of flashing software (Tasmotizer, esptool, ESP Flasher) C:\Users\Random\Desktop>esptool.py --chip esp8266 --port COM4 write_flash -z 0x0 mgos512k-0x7000.bin C:\Users\Random\Desktop> |
@Armadillo1 any tips opening the rgbw? Seems the only way is to break it. |
Will just repost what I've posted on reddit - perhaps we can work out how to get my RGBW2 to talk to shelly fw again. I bought myself a Shelly RGBW2 (based on ESP8266) to control aquarium lights. However since the timers within the shelly software were quite primitive, I decided to give WLED and Tasmota a try, which was relatively easy to flash both OTA and via usb to serial adapter. I am now struggling to get back to the Shelly firmware. What I have tried so far: 1)Flashing shelly's recovery firmware with ESPTool. It gets briefly stuck at 100% with a subsequent error: C:\Users\Random\Desktop\RGBW_recovery_firmware_version3>esptool.py --port COM4 erase_flash C:\Users\Random\Desktop\RGBW_recovery_firmware_version3>esptool.py --port COM4 write_flash 0x0 RGBW_recovery.bin C:\Users\Random\Desktop\RGBW_recovery_firmware_version3> With the -12 Write failed error that quite a few people seem to have (fewer with the RGBW2 that I have - some managed to update successfully).
I can still use the shelly with Tasmota, which I don't quite like or possibly ESPHome, which I haven't fully tried to flash yet. Any ideas? Have I managed to completely screw up my shelly or is this recoverable ? |
@Armadillo1 yeah but i meant how did you open the shelle to connect to the serial pins? cant open it without breaking it. thanks |
You don't need to open. The headers are accessible from the outside. The 5 black pin holes at the top. |
Uh damn it, I misread this and thought you had a shelly RGBW bulb. Sorry for the confusion. |
It worked also for me! hope it helps! |
I can not download https://dl.dasker.eu/firmware/mgos512k-0x7000.bin |
I believe that exists a problem with server. I uploaded temporarily to send to you. |
Thank you for your help! Unfortunately it did not work, there is then an http response error. I then took the direct route and flashed a Shelly firmware. |
Firmware: https://www.shelly-support.eu/forum/thread/444-anleitung-firmware-flashen-mit-espeasy-flasher-alle-firmware-bin-dateien-windows/?postID=182323#post182323 |
Thanks a Lot!!!!! This is the only working solution I could find! I'm happy! |
Just wanted to share with others that I am unable to get back to Shelly Stock firmware on RGBW2. The classic |
Hi,
thanks for providing this OTA helper. Switching to tasmota worked like a charm.
I'm trying to revert back to stock firmware of a Shelly Dimmer 1.
The intermediate firmware was flashed successfully and I can access it via http which returns:
But curl responds with
I'm using this firmware
http://shelly-api-eu.shelly.cloud/firmware/SHDM-1.zip
.Did I miss something?
Best regards
Andreas
The text was updated successfully, but these errors were encountered: