I have two projects having problems when it comes to reflash the core. One is my 8x8x8 cube, running code to display 3D patterns. The main loop takes several seconds to display all patterns.
When I try to flash new code, the core stops somewhere, the LED is blinking cyan, and 2 seconds later the software continuous. At the end of the void(loop) procedure I call SPARK_WLAN_Loop() during 20ms.
I understand that the code inside void(loop) is just part of a bigger system. But what is the right strategy to keep the core responsive to the cloud and reflash?