Adafruit Grand Central debugging with atmel-ice

I don’t own a jlink. The Atmel-ICE is based on jlink.
When you gave me the command line to run, you gave it for the openocd tool. I improvised by looking around in the folders. I did not find atmel-ice. That is why I tried with jlink.

I have a third PC now. This is my platformio.ini:

Blockquote
[env:adafruit_grandcentral_m4]
platform = atmelsam
board = adafruit_grandcentral_m4
framework = arduino
board_build.mcu = samd51p20a
debug_tool = custom
debug_server =
$PROJECT_PACKAGES_DIR/tool-openocd/bin/openocd.exe
-s
$PROJECT_PACKAGES_DIR/tool-openocd/scripts
-f
interface\jlink.cfg
-c
“transport select swd”
-c
“set CHIPNAME at91samd51p20”
-f
target\atsame5x.cfg
upload_protocol = sam-ba
build_type=debug

When I start the debug, the icons for pause, step over, restart, stop show up and it does not highlight the pause icon as it would for the Arduino M0 pro that debugs perfectly without an atmel-ice. Do I have to take the bootloader out?