Can't connect to XIAO nrf52840 SWD interface

Hi there,

So a couple issues
:face_with_peeking_eye:
you only need 4 Wires BTW, so fix that.
Also You may need to connect under reset if your JLink isn’t official?
What unit is that?
I can appreciate the AI… I can , but man so typical to throw this at it and think its gonna just work, C’mon man…
Can You perform the steps required manually ?
Open Jlink , Connect to the device
Halt it,
Read some registers,
Erase it,
Flash it ,
set it to RUN?

BASIC A,B,C stuff…:grin:
Try that, the AI will work , I have a video on here of CodeX doing this very thing , each step. Generating code, compiling the code, flashing the code and logging the Output.
However the setup required needs to be done or you will get what you have.

from this thread..

Stick with JLink,


or this for Nrf52840..
Start there, can you establish a connection to it? , check your wiring, compare it to what I used on the RAL JLink and connect it the same, I think your mixing too many things together, Stay with the JLink get it working first ,then try different flash methods.

Fix the wires first.
You can Halt, Step, READ registers, Reset the MCU once you get it working , you can do EVERYTHING in Jlink.

HTH
GL :slight_smile: PJ :v:

Get it working then throw the Automation to it :+1: