I have run into a peculiar error when attempting to program my ATSAMR21B18-MZ210PA Module via the Atmel-ICE on a custom board. This module has an ATSAMR21E18A as its base chip, and I am attempting to program it through the SWD interface. When attempting to do so in Microchip studio, I am given the error: "Failed to Launch Program. Error: No Device Detected. Error 4109".
The strange thing is that this also happened to me with a different ATSAMR21B18 chip earlier, however, after several attempts, it eventually programmed despite changing nothing. I have been attempting to program this chip for several hours and to no avail. The schematic is attached. I have verified that all connections are sound, and I am using the same PCB as the board that I was able to program successfully. Any ideas on what I could try would be much appreciated. Thanks.