Hi FRANK PUTNAM,
When you do the flash operation, please disable the global interrupt, otherwise.
If the interrupt happens during the flash operation, it may cause the undesirable reset.
Wish it helps you!
If you still have question, please contact with me!
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------