I've searched for this issue here on forums, and failed to find it.
When connecting a new custom board wit this chip, via JTAG with ATMEL-ICE and ATMEL STUDIO 7 going to Device Programming (Ctrl+Shift+P) i get this error when programing:
Failed to write segment at 0x80000000 to target for memorytype base
But, then i Run debug via ATMEL-ICE and programing is OK.
After this, i can program via Ctrl+Shit+P window.
Can someone tell me why is this happening? What im missing?