Hi @ScruffR and thank you for your reply.
I tested System.updatesPending() a time ago without luck (the updates were never detected)
I will give it another chance.
A code like the one in the example cannot be run in SINGLE_THREADED_BLOCK() as is
effectively disabling threading. The problem is that you cannot know in which part of the executing
code the OTA update will “land”.
Sorry for insist, but I worked hard trying to provide a single piece of code that can be easily used
to demonstrate a crash. It will be great to have someone to take a look at this.
If we are hitting some device limitation here then we will need updated documentation, if not then a bigger
stack (user definable), a function to determine the stack usage…among others.
Thank you again.