Deploy hangs and needs reset and deploy again

When I hit F5 to debug, the output window shows it deploying and it hangs during the erasing and writing phase. Not always at the same place. I have to reset and then deploy again and sometimes takes 2 or more tries to get a successful deploy and run.

This is SCM20260D on a custom board.

How easy is it to reproduce?

I seen this too, but very intermittently. I haven’t found any consistent way to reproduce it.