docs icon indicating copy to clipboard operation
docs copied to clipboard

Add more guidance for OTA updates when running a multi-threaded application

Open technobly opened this issue 9 years ago • 1 comments

Currently all that is said on this topic is here in the SYSTEM_THREAD() section: https://docs.particle.io/reference/firmware/photon/#system-thread

the application continues to execute during OTA updates

This is a good fact to know about, but needs more guidance. Additionally user firmware that continues to run should not do anything that might interrupt an OTA update unintentionally. Ways to mitigate this are to use the System Event for OTA Updates (begin/in-progress/finished) and set an appropriate volatile flag in user firmware which notifies a user process that an OTA update has begun/in-progress/finished. This may prevent things like a System.reset() from occurring, heavy use of the network, etc..

A short example could be included as well.

technobly avatar Apr 11 '16 21:04 technobly

Related issues:

https://github.com/spark/docs/issues/452 https://github.com/spark/docs/issues/318

technobly avatar Nov 01 '16 20:11 technobly