As 7 , Atmel ice and Arduino mega2560 connection problem

I' m trying to upload my c - based program into Arduino mega2560 by spi protocol with as7 and Atmel ice. I used 6-pin isp connector on Arduino board. After setting protocol and the board in corresponding fields I tried to connect to Arduino and I got a message "failed to enter program Mode" . I can' t get any information about the board except voltage.
Does somebody know the answer?
Thank you

To avoid confusing everyone and having to jump between two threads, where do you want people to answer questions, in this thread or the other one on the same topic ?

Sorry if I have confused anybody. I’ m the thirst time here. And if you don’t mind I suppose It’ll be ok to stay here. I can’t find the better place for my post.
Stanislav

https://www.avrfreaks.net/forums/atmel-studio-avr-related

https://www.avrfreaks.net/forums/system-debuggers-and-programmers