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

Incorrect CC2652R firmware flashed on SONOFF Zigbee 3.0 USB dongle #367

Closed
leloch opened this issue May 2, 2022 · 8 comments
Closed

Incorrect CC2652R firmware flashed on SONOFF Zigbee 3.0 USB dongle #367

leloch opened this issue May 2, 2022 · 8 comments

Comments

@leloch
Copy link

leloch commented May 2, 2022

Somehow I managed to flash CC2652R_coordinator_20220219.zip firmware on SONOFF Zigbee 3.0 USB, rather than CC1352P2_CC2652P_launchpad_coordinator_20220219.zip one...

Now, the device is rather bricked, the serial port is visible - but there is no response when using any of the flash tools (this one as well as Flash Programmer 2) and the 'boot' button does not seem to do anything either...

What are my recovery options? I have got FT232 JTAG cable, would that one be good enough to re-flash recover it?
Possilby some other method?

Or am I pretty much screwed and should just but another unit?

@Koenkk
Copy link
Owner

Koenkk commented May 2, 2022

Should be doable via a JTAG flasher and https://www.ti.com/tool/FLASH-PROGRAMMER

@leloch
Copy link
Author

leloch commented May 3, 2022

I only got a regular FT232 JTAG cable, it looks like these TI chips require a 'special' cJTAG interface (cc-debugger?).
I could not locate any resource explaining how to connect regular JTAG to this thing - any hints would be very much apperciated.

@petergebruers
Copy link

Yes it is cJTAG, not compatible with JTAG. I haven't needed this myself yet... but I know this competing product is based on a nearly identical chip an the maker describes how to flash it:

https://electrolama.com/radio-docs/advanced/flash-jtag/

Basically, either you need a JLINK programmer, or one of the TI development boards which have a XDS110 onboard. I own both. He also mentions a third option, the CC-DEVPACK-DEBUG, I do not have that one.

@leloch
Copy link
Author

leloch commented May 3, 2022

Thank you - this is what was afraid of.
I don't have either and it does not really make sense to get the adatper just to fix this one specific unit, so in such case I will just get another dongle, luckily these are quite cheap (still). The borked one will go into the drawer, maybe one day I will have the kit needed to fix it :)

@Koenkk Koenkk closed this as completed May 3, 2022
@kaiekaie
Copy link

kaiekaie commented Nov 4, 2022

I did this with the ZB dongle-E and used a wire to jump the boot and ground pins to enter bootmode. Maybe you can try touching any of connectors on the (P board) close to the boot button? to see if it starts in Bootmode.

@tobiasfrejo
Copy link

I have been able to use a Raspberry Pi with OpenOCD as a JTAG debugger to flash the correct firmware to a generic CC2652P dongle. Though that one does have through-hole soldering points that exposes the remaining pins for a standard JTAG connection, witch it doesn't seem like the SONOFF dongle has.

I have done a write-up about it in case anyone stumbles upon the same problem with these tools available.
https://gist.github.com/tobiasfrejo/d98e9f4cbbc6893662ab032b06388685

@michaelp1742
Copy link

Tobias, thank you for researching and documenting this.
I bricked my Sonoff ZBDongle-P (CC2652P) by programming it immediately after my Electrolama zzh! (CC2652R). I managed to tack solder directly to the two IC pads (0.5mm spacing) with fine multi-stranded wire from an old USB cable using an iPhone as a magnifier.
The only change required was to drop the "adapter speed" to 500 to get a reliable JTAG connection.

@BoBeRzE
Copy link

BoBeRzE commented Dec 12, 2023

@michaelp1742 I have also bricked my Sonoff ZBDongle-P. Can you please give me some details which soldering points you used? I would also try to get the device up and running again with the help of the Raspi.

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

No branches or pull requests

7 participants