About 50% of my OTA code updates on the P1 are slow i.e., it may take between minutes to hours for the P1 to stop blinking and restart. Often I see a slow purple blink, sometimes a fast green blink. Often the P1 (eventually) restarts and does so successfully with the updated code. In other cases I have to manually reset the device. In all cases it has the new code and runs fine afterwards.
The P1 is mounted on my own back board which supplies the 3.3vdc and connections to peripherals. The same code runs on a photon (mounted on similar board) where I do not see this behavior at all.
Any idea where I should start troubleshooting?