RAK11300 - SWD debugging and Serial output

I’m wondering if there are folks here that have tried to debug with SWD?

The platformio setup for the RAK11300 is very nice, but i’d like to be able to use a Pi PICO to perform upload, SWD debugging (and preferably also Serial output).
An example of SWD debugging with a pico is here: How to Program and Debug Raspberry Pi Pico with SWD?
And here: https://www.digikey.com/en/maker/projects/raspberry-pi-pico-and-rp2040-cc-part-2-debugging-with-vs-code/470abc7efb07432b82c95f6f67f184c0

Has anybody been able to do this?

The aim is of course to be able to press a button (F5, or the deploy button) in vscode to upload the newly build firmware and attach a debugger.

This thread is quite old, but I have news:

I’ve tried to connect to my RAK11310 module but unfortunately it did not work. Not sure what I’m doing wrong - the same Pico Probe is working for one of my original Raspberry Pi Pico boards.

I’ve connected the SWD ports like this:

SWCLK => CLK
SWDIO => DIO

Got it working!

Probably one of the header pins that I’ve attached to the 11310 board was loose or was soldered badly. It’s working now.

Don’t forget to also connect ground between the Picoprobe-Pi and the RAK11300 / RAK 11310 and make sure the module is powered properly, e.g. via the Wisblock Base Board. SWDIO, SWDCLK and GND are not sufficient!

As an alternative to powering the whole Base Board, you can also plug the 3V3 pin near the SWD pins to 3,3 V.

In the end I’m running wires like this:

  • Probe Pin 4 => RAK11300 CLK
  • Probe Pin 5 => RAK11300 DIO
  • Probe Pin 36 => RAK11300 3V3
  • Probe Pin 38 => RAK11300 GND