Skip to content
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

Auto BSL reset not working with USB adapters using Silabs CP2102N like Sonoff USB Plus Dongle #2

Open
Hedda opened this issue Nov 17, 2021 · 16 comments
Labels
enhancement New feature or request

Comments

@Hedda
Copy link

Hedda commented Nov 17, 2021

FYI, automatic BSL reset not working on Windows OS (Microsoft Windows 10 operating system) with USB adapters based on Silicon Labs CP2102N USB-to-UART chip and TI CC2652P Zigbee chip like the new SONOFF Zigbee 3.0 USB Dongle Plus by ITead:

https://itead.cc/product/sonoff-zigbee-3-0-usb-dongle-plus/

Get error message:

Timeout waiting for ACK/NACK after 'Synch (0x55 0x55)'

Know issue in upstream cc2538-bsl by JelmerT but a workaround do exist by using boot reset code from Sonoff uartlog.py script:

JelmerT/cc2538-bsl#113

image

@mercenaruss
Copy link
Contributor

mercenaruss commented Nov 17, 2021

@Hedda need to use BSL button to enter bootloader, this is problem with hardware design.

@Hedda
Copy link
Author

Hedda commented Nov 18, 2021

@Hedda need to use BSL button to enter bootloader, this is problem with hardware design.

As I understand from the discussion in JelmerT/cc2538-bsl#113 it is not really a problem with the hardware but either a bug in the CP2102N revision or more likely an issue with Microsoft Windows serial interface in combination with the bug in the CP2102N revision they use. It should however be possible to workaround those issues by adding additional delays, so this might get "fixed" in a future version of https://github.com/JelmerT/cc2538-bsl

@xyzroe
Copy link
Owner

xyzroe commented Nov 24, 2021

When support will be implemented in JelmerT / cc2538-bsl then I will add.

@Hedda
Copy link
Author

Hedda commented Dec 6, 2021

@xyzroe FYI, JelmerT got it working via a new option attribute here -> JelmerT/cc2538-bsl#114

@xyzroe
Copy link
Owner

xyzroe commented Dec 31, 2021

@xyzroe FYI, JelmerT got it working via a new option attribute here -> JelmerT/cc2538-bsl#114

OK. Thank you.
I'll do it at my leisure.

@xyzroe
Copy link
Owner

xyzroe commented Jan 8, 2022

@Hedda Could you please check this video? https://youtu.be/-0JXHbYDFTs
Some guy flash sonoff stock using multitool with no changes or button pushes.

From 3:30

@Hedda
Copy link
Author

Hedda commented Jan 10, 2022

@Hedda Could you please check this video? https://youtu.be/-0JXHbYDFTs Some guy flash sonoff stock using multitool with no changes or button pushes.

From 3:30

Video was removed before I could see it.

@xyzroe
Copy link
Owner

xyzroe commented Jan 10, 2022 via email

@Hedda
Copy link
Author

Hedda commented Jan 10, 2022

See that he uses "ITead_Sonoff_Zigbee-delay" branch from JelmerT/cc2538-bsl#114 to use Auto-BSL when not pressing button.

He must be pressing the BTL-button when using ZigStar GW Multi tool with ITead SONOFF Zigbee 3.0 USB Dongle Plus.

image

@xyzroe
Copy link
Owner

xyzroe commented Jan 10, 2022

Screen Shot 2022-01-10 at 6 20 53 PM
please watch again from 2:40

@RadioLed2000
Copy link

Just now I could flash sonoff stick with GW Multi tool without opening enclosure!!!

  1. Plug it in the USB
  2. Read NVRAM
  3. Try to flash firmware, got an error
  4. Unplug and plug again to USB port
  5. Press Start to flash firmware and it successfelly flashed it

I don't know how it works, but it works)))

@TheNutHouse84
Copy link

@Hedda
I was also able to flash my sonoff dongle by doing same as @RadioLed2000.

@xyzroe xyzroe added the enhancement New feature or request label Jan 26, 2022
@fowl2
Copy link

fowl2 commented Nov 25, 2022

Can confirm.

All I needed to do to flash without pressing the button was:

  1. Plug in the dongle normally
  2. click "write", receive "timeout" message
  3. unplug+plug
  4. click write again

@xbmcnut
Copy link

xbmcnut commented Jan 16, 2023

For me, I had to hold down the boot button for 20s before (and after) inserting the stick. 10s did not cut it multiple times. I kept getting Timeout waiting for ACK/NACK after 'Synch (0x55 0x55) prior.

@AlanADV
Copy link

AlanADV commented Jan 18, 2023

Same here, only worked after holding the reset button for about 20 seconds after inserting the dongle.

@pitkaha
Copy link

pitkaha commented Feb 23, 2023

For me, I had to hold down the boot button for 20s before (and after) inserting the stick. 10s did not cut it multiple times. I kept getting Timeout waiting for ACK/NACK after 'Synch (0x55 0x55) prior.

Same. For the next one fighting with Sonoff ZBDongle-P lets make it simple. For me this worked:

  1. Get ZigStar GW Multi and newest firmware here.
  2. Open the case, screws are PH0.
  3. Open ZigStar.
  4. Plug Sonoff into usb port while pushing down boot button and keep it pressed down for 20sec after power led has turned on.
  5. Choose the right port and the firmware you downloaded on ZigStar.
  6. Choose Erase, Write and Verify and click Write, the process bar should move quite quickly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

9 participants