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

Feature/electron/factory reset #975

Merged
merged 4 commits into from
Jun 10, 2016
Merged

Commits on Jun 9, 2016

  1. fix the factory reset location in the OTA memory map. (0x80A0000 is t…

    …he correct address.) This allows potentially a 256k user firmware image to be used instead of a factory reset image. (And a 256k OTA image starting at 0x80C0000).
    m-mcgowan authored and technobly committed Jun 9, 2016
    Configuration menu
    Copy the full SHA
    14b7f02 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    96c8d0c View commit details
    Browse the repository at this point in the history
  3. the DCD implementation is a C++ object, and needs to be constructed b…

    …efore it can be used (or the length field is 0, despite being a constant.) It's called from HAL_Core_Config to set up the location of the factory firmware, which is the key trigger for a factory reset in the bootloader. However, since the DCD wasn't initialized any attempts to write to the DCD before it was constructed would fail - the write offset was checked against the length (which is 0.)
    
    The fix is to create a static function instance so that it's constructed on first use, independent from global object construction.
    m-mcgowan authored and technobly committed Jun 9, 2016
    Configuration menu
    Copy the full SHA
    5a7091a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2d8f3d6 View commit details
    Browse the repository at this point in the history