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

Flashing failed due to CRC32 calculation error #180

Closed
Chris3467893 opened this issue Sep 10, 2024 · 2 comments
Closed

Flashing failed due to CRC32 calculation error #180

Chris3467893 opened this issue Sep 10, 2024 · 2 comments

Comments

@Chris3467893
Copy link

Chris3467893 commented Sep 10, 2024

I have a SONOFF Zigbee 3.0 USB Dongle Plus,Zigbee Gateway TI CC2652P + CP2102N Zigbee USB Stick integrated with my Home Assistant green. Last week I receive a message in HA, that the Dongle requires a firmware update. I commited this requests. After automatic updating and reboot was finished the Zigbee Dongle reported an error: “Network formation failed: NVRAM is corrupted”.
After several tries to fix the problem with lower impact actions I decided to flash the firmware with CC1352P2_CC2652P_launchpad_coordinator_20240710.hex. MD5Checksum of this file is 0f16bf0f96968e6b0168c2bc0a8eeefd.

The update process was
(venv) ➜ cc2538-bsl sudo python3 cc2538-bsl.py -ewv -p /dev/ttyUSB0 --bootloader-sonoff-usb ./CC1352P2_CC2652P_launchpad_coordinator_20240710.hex
sonoff
Opening port /dev/ttyUSB0, baud 500000
Reading data from ./CC1352P2_CC2652P_launchpad_coordinator_20240710.hex
Your firmware looks like an Intel Hex file
Connecting to target...
CC1350 PG2.0 (7x7mm): 352KB Flash, 20KB SRAM, CCFG.BL_CONFIG at 0x00057FD8
Primary IEEE Address: 00:12:4B:00:2C:44:FD:F5
Performing mass erase
Erasing all main bank flash sectors
Erase done
Writing 360448 bytes starting at address 0x00000000
Write 104 bytes at 0x00057F988
Write done
Verifying by comparing CRC32 calculations.
Verified (match: 0xd9dd0124)
ERROR: int() can't convert non-string with explicit base

Is this caused by the firmware? What should I do to repair my dongle?

For this topic I opened an issue in Koenkk/Z-Stack-firmware#520 and received the answer that this is an issue for cc2538-bsl

@TheQue42
Copy link

As described here, this can be manually fixed:

#172

until someone with access merges #168

@JelmerT
Copy link
Owner

JelmerT commented Sep 23, 2024

should be fixed no 👍

@JelmerT JelmerT closed this as completed Sep 23, 2024
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

3 participants