I used Atmel ICE on Ubuntu 20.04 with make and avrdude, then when I used it in Microchip Studio 7 on Windows 10, it couldn't be attached, when I altered to Atmel Studio 7 on Windows 10, it could be identified by it shown:
and the Red LED on ICE was opened, the green on never lighted. Ask for solution...