Azure Sphere SDK: How to test OS update deferral.

James Higgins 336 Reputation points
2024-07-25T21:45:56.8733333+00:00

I have implemented Azure Sphere OS update deferral in my application by following the deferral API documentation and example code on GitHub. In our application we are only deferring OS updates.

How can I forcibly force an OS update to test the application's deferral logic?

I tried changing my device's device group OSFeedType from Retail to RetailEval, but the OS did not update. I suspect that RetailEval and Retail may both be pointing to 24.06 at the moment.

Is there some other way I can force an OS version change to test this new deferral code without waiting until the next OS release?

Azure Sphere
Azure Sphere
An Azure internet of things security solution including hardware, operating system, and cloud components.
170 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. James Higgins 336 Reputation points
    2024-07-30T12:23:32.4+00:00
    1. Request an OS recovery package from MS containing an older version of the Sphere OS.
    2. azsphere device enable-development
    3. cd to OS recovery package directory
    4. azsphere device recover --images .
    5. azsphere device enable-development
    6. cd to Application build folder
    7. azsphere device sideload deploy --image-package .\myapp.imagepackage azsphere device restart
    8. The application with the deferral logic is now running with an older OS.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.