SAMD51 Thing+ and Atmel-ICE?

I’m trying to program a SAMD51 Thing+ with Atmel-ICE connected to SWDIO (TP1), SWDCLK (TP2), Ground, nRESET and 3v3. I created a default project in Microchip Studio for the SAMD51J20A processor and attempted to program the board. It seems to program, but when running, I get an error:

Failed to Launch Program

Error: Error reported by NVM controller

Anybody know what causes this error and how to get around it?

This post https://www.avrfreaks.net/forum/error-r … -debugging makes me think either the fuse settings or a hard reset to the bootloader might help

Thanks for replying. I saw that post earlier. I would assume that since I’m programming with SWD and erasing the chip before programming, the bootloader is gone. Is that not true? That is at least what I’m attempting to do as I don’t need it.

I don’t see where to set the fuse settings for this chip. Other chips (e.g. D21) appear to have fuze settings on in the project options. I don’t see that for the SAMD51 anywhere I can find.