darkxst / silabs-firmware-builder

Silicon Labs firmware builder
https://darkxst.github.io/silabs-firmware-builder/
398 stars 30 forks source link

Unable to flash my Sonoff ZBdongle-E V1 #112

Open ThibLeS-59 opened 2 months ago

ThibLeS-59 commented 2 months ago

I'm a beginner, and I can't seem to flash my ZBDongle-E V1. I first tried using the DARKXST site, where it was recognized, but the flashing failed.

silabs_flasher (2).log

Then, I tried using the command line with universal_silabs_flasher, but the installation always ends in an error: universal-silabs-flasher --device COM5 --bootloader-reset sonoff flash --firmware "C:\.......

image

tl-sl commented 2 months ago

Try without bootloader reset, that seems to be causing the error

universal-silabs-flasher --device COM5  --firmware "C:\.......
ThibLeS-59 commented 2 months ago

Yes, i have a same error

EmmaPj18 commented 2 months ago

I have same issue Log

darkxst commented 2 months ago

@EmmaPj18 Can you try test with this patched flasher https://darkxst.github.io/cp-test/

EmmaPj18 commented 2 months ago

@darkxst Now it can connect and detect the dongle E, but it fails trying to upload the new firmware. I'm using Brave browser (Idk if this is relevant because this is a chromium browser but who knows)

image

Logs: silabs_flasher (1).log

darkxst commented 2 months ago

I'm using Brave browser

Probably not, it seems the Windows usb serial driver is causing the dongle to reset when we open serial connection. I will see if I can workaround this second failure also.

AlphaArs commented 2 months ago

I'm getting the same problem, just bought the Sonoff ZBDongle-E EFR32MG21. I installed the CP210x drivers and on the website I did get it detected. But when trying to update or change the firmware I get the error message. I tried both with the silabs builder and the cp-test.

here are the logs: patched flasher.log silabs_flasher.log

EmmaPj18 commented 2 months ago

Probably not, it seems the Windows usb serial driver is causing the dongle to reset when we open serial connection. I will see if I can workaround this second failure also.

@darkxst I tested with the original web patcher on a Macbook and it detects the dongle and I can flash the dongle successfully. As you said, this is a Windows issue with the driver

AlphaArs commented 2 months ago

Thats interesting, so If I try to do this with a Linux vm it should work ? @EmmaPj18

edit: Did not try the vm (but I suppose it would work) But happend to have a friend over that had his mac with him, I tried and it work too.

EmmaPj18 commented 2 months ago

Thats interesting, so If I try to do this with a Linux vm it should work ? @EmmaPj18

Idk but It could work

darkxst commented 2 months ago

so If I try to do this with a Linux vm it should work

yes I believe it will work on Linux. Also if you have a HA box, the Silabs Flasher Addon should work also.

madeira3003 commented 1 month ago

so If I try to do this with a Linux vm it should work

yes I believe it will work on Linux. Also if you have a HA box, the Silabs Flasher Addon should work also.

Can you help us on how to do this?

Suffice commented 1 month ago

I'm curious why I received an E V1 dongle when everyone else seems to have an E V2? It seems to be working fine with the latest Ember firmware, aside from my 1st gen Hue bulbs being almost always non-responsive.

I was able to flash my device on Linux, both in the browser and from the terminal.

darkxst commented 1 month ago

V1 dongle is actually ZBDongle-P (cc2652). V2 dongle is ZBDongle-E. Sonoff recently changed the USB chip in the ZBDongle-E, and at the time due to production issues, inadvertently flashed some dongles with the USB config file for ZBDongle-P, thus the USB product strings are wrong on these.