Unexpected JTAG ID 0x0ffffffe (expected 0x0202603f)
There can be several different reasons why this is happening.

i dont know if JTAGICE mkII can power your device, but if it functions like Atmel ICE, you need to power your board from another source, (dont expect JTAGICE mkII to give it power)

Have you previously used this mcu/programmed it? You may have changed its settings like Oscillator selection to use an expernal oscillator and you done have one connected to it.

Based on 2), you may have bricked your mcu and need to use a new one.

you burned the mcu while soldering it.


If you could attach a picture of your schematic or pcb layout i might help you more