question

95504669 avatar image
0 Votes"
95504669 asked SatishBoddu-MSFT answered

Avoid Azure Sphere Application update during unexpected Device reset

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SatishBoddu-MSFT avatar image
0 Votes"
SatishBoddu-MSFT answered

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)


· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Okay. Thank you for your response.
Based on your explanation, it means whenever the device resets twice , the new firmware will run.

Is there any way to see the Log functions after reset button?

Thank you.

0 Votes 0 ·

Do you want to check the logs on the device for OTA updates?

0 Votes 0 ·
95504669 avatar image 95504669 SatishBoddu-MSFT ·

Yes. How can I check logs.

What about this sample?
https://www.element14.com/community/groups/azuresphere/blog/2021/06/14/azure-sphere-example-application-to-defer-ota-updates-until-a-specific-time-of-day

Will this sample help in avoiding the update during double reset?

0 Votes 0 ·
Show more comments