n00b question:
I connected SWD to NRF52840 DK and could flash to Seeed nrf52840 Sense Board through VSCode extension, but I cann’t start a debug session and also the Serial Terminal seems also outputing from DK not Seeed board.
How can I debug it through DK or at least how can I see the output.
Hi there,
SO check out the threads on here about it, You can use Nrf_SDK and it works fine.
I’m able to flash the Xiao with the DK or the onboard Nrf52840 as well as Debug both
I’m on a WIndows 10/11ish machine. I was using PLIO and VsCode with the Jlink (see those posts too) comparing the SWD Jlink Xiao and the DK’s built in JLink +
Can you start a debugging session in PLIO? SOunds like it’s missing a file, driver or Add-on?
Stop holding out on yourself , LOL switch to NRF_SDK takes about 3 hours to be very functional less than thirty to flash your first Xiao Externally with the DK, debugging just works right out of the box, no switching screens either. very smooth transition imo. YMMV
HTH
GL PJ
Hi, thanks for reply. I am using Nrf_SDK on VS code. I can flash to Xiao, but when I tried to debug, I got error:
Unknown device type: nrf52840
May you point out which post mentioned how to debug it? I did find some posts but still couldn’t get how to debug it through the DK. Sorry if this is a too n00b question.
Hi there,
No such thing… LOL .
So to start… Does your build configuration allow for debugging?
which toolchain are you using? What comes out on the DEBUG console ?
Should look like this:
HTH
GL:-) PJ
yes, I can debug with DK without a problem, and could see what is in your picture as well. Just not after I connect SWD to DK from Xiao Seeed nrf 52840, I see Unknown device type: nrf52840
when I try to debug on Xiao Seeed, after I hit the debug button below. I can flash to Xiao though. The toolchain is nrf2.8.0.
Do you mind to share the setup, sorry if this is too n00b question.