Avoid Azure Sphere Application update during unexpected Device reset

95504669 516 Reputation points

Hi. I use Avnet Starter kit Rev 2 board. I have been working on the deferred update sample code.
On the first reset, the device check for the update and the yellow led blinks indicating that the update is available.
When I click the reset again, the device runs the newly deployed blink program.
How can I set a condition that the device should run the new blink code only when I press the button?
I don't want the device to run the new code when I press the reset button second time.

Thank you.

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

Accepted answer
  1. SatishBoddu-MSFT 15,121 Reputation points

    Hello @95504669 Do you want to know how to run the deployed program when you click the 'reset' button instead of checking for device updates first?

    Execution order when you press the 'reset' button:

    1) Run the deployed application
    2) Check for the OTA updates

    Is that what you are looking for? if yes, then it is not possible, currently the device is built to check for system and application updates and then execute any applications on the device.

    If the user doesn't want to deploy any updates, they can move the device to a device group that is not targeted with the application updates (a separate device group can be created that receives only system updates)

0 additional answers

Sort by: Most helpful