The list below gives the set of recommendations to avoid going to the bad state (effectively preventing reset while format/recompaction):
a. Configure the A&D memory to as low as possible. Formating/recompacting 512KB of A&D will be less time-consuming than formatting/recompacting 1024KB.
b. Start the A&D format/recompact after all services are fully intialised or more precisely at an idle time. Once the SIM FULL INIT is received and Airprime is registered, the A&D operation could be much faster.
c. Use ARM boost mode (Varispeed) to accomplish A&D format/recompact. This will certainly help in avoiding watchdog resets.