Coder Social home page Coder Social logo

Comments (4)

puddly avatar puddly commented on August 17, 2024

Running cc2538-bsl.py with -evw will indeed erase everything, including the NVRAM. Running it without -e doesn't seem to work and leaves my device unbootable until reflashed with the mass erase option.

When restoring NVRAM your network will have a bunch of routing errors for a bit because zigpy-znp at the moment doesn't proactively send route discovery messages like zigbee2mqtt does. It'll take a few minutes for everything to sync back up.

from zigpy-znp.

MarhyCZ avatar MarhyCZ commented on August 17, 2024

Ok, understood, and the NVRAM backup/restore is mandatory, so without it, it would not work without recreating network? (the zha/zigpy does not cache the settings that are needed like pan_id etc.?). Sorry for asking and not finding it by myself.

I also see that your library has a flash.write tool. So can I just use that and feed it the .hex firmware file from Koenkk? If that handles the upgrade more gracefully, maybe I can put a commit to a README.md with info about fw upgrade through your library? (Because I am not sure if the users actually know about this, or if its intentional that way.)

However thanks for a really fast reply!

from zigpy-znp.

puddly avatar puddly commented on August 17, 2024

Not a problem, I'll update the documentation to make this stuff more clear.

  1. That's correct. Upgrading the firmware wipes all of your settings and because zigpy/ZHA assumes your device persists all of your settings, your network will be completely gone if you don't back it up before upgrading.
  2. flash_read/write only works with the CC2531's bootloader, unfortunately. I should probably rename it. You'll have to use cc2538-bsl.py for sticks using the CC2652R/RB.

from zigpy-znp.

MarhyCZ avatar MarhyCZ commented on August 17, 2024

Now its totally clear!
I almost didn't realize this and pushed the enter for the fw upgrade without even backing it up..

So big thanks for all the info! Hope you are staying safe.

from zigpy-znp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.