Issues with using Jlink on Xiao nRF with PlatformIO

Hi there,
Have you looked at this thread from Epressif.
https://docs.platformio.org/en/stable/boards/nordicnrf52/nrf52840_dk.html
it shows two configurations, You seem to have mixed them together.
What does this line do in your ini, You think ?

GL :slight_smile: PJ :v:
I’m following this one, Arduino and Nordic nRF52-DK: debugging and unit testing β€” PlatformIO v6.1 documentation

Looks like you need this INI

[env:nrf52_dk]
platform = nordicnrf52
board = nrf52_dk
framework = arduino
debug_tool = jlink
; SoftDevice version
build_flags = -DNRF52_S132
lib_deps =
  BLEPeripheral

Or close to it…HTH :v: