i finished project on Arduino Zero and now i made custom pcb. I COPIED the circuit from the Arduino Zero datasheet and diagrams, but now when i connect the Atmel ICE i get error 4109(in attached picture). I also get same error when i try to connect to SWD on Arduino Zero board, so what could be the problem? When i try to connenct to a SAMB11 Xplained board, all works perfectly.
All the pictures and diagrams are in attached pictures.
P.S. I noticed that i switched SWDCLK and SWDIO pins on CUSTOM pcb connector header, but i fixed that by making an flat cable that switches pins 2 and 4.
PCB from official Arduino Zero files:
Error message in Atmel studio: