Arduino Due + JTAG + ATMEL-ICE - Issue

Dear experts,
Thank you in advance for your time.

I have an issue in debugging Arduino Due program with Atmel-ICE through JTAG connection.
I read some topics related to A2+Atmel-Ice like this one Help with PIO Debugger using Atmel ICE and Arduino Due … but I didn’t find a solution to my problem.

When I try to upload the code I receive the following message:
Error connecting DP: cannot read IDR
With Error exit code 1.

It seems that my connection is wrong in some way, but ATMEL-ICE shows both green and red leds on as you can see in the following picture:

platformio.ini file contains the following instructions:

[env:due]
platform = atmelsam
board = due
framework = arduino
debug_tool=atmel-ice
upload_protocol = atmel-ice
build_type=debug

Do you have any idea in what should I do?

Regards,
Giuseppe.