I have a bit of a head scratcher here. I'm using a SAMG55 on a custom board and programming it with an Atmel-ICE programmer. The board will program and verify fine, according to Atmel Studio, but so far as I can tell the code will not actually run until I start a debug session on the chip. Once I have done that and halted the session, it will program and run normally. I only have to do this once, and it's impossible to re-create the issue once I have done it, so I have limited chances to figure out what is going on.
Has anyone run into this issue? What is the debug session initializing that the normal programming routine isn't?
It's not much more than a curiosity now, but I have a feeling it will be a headache once I move out of development and into production.