What's up ? Yeah I been out of the game for 5 years. DEC of 2017 ended my last paid gig as an embedded developer /system architect for LEDs4Sports out of Florida. Worked a remote 1 year contract, on a beaglebone hardware based project( NDA ). Once the contract ended my best friend from high school heard about it, called me up, and asked me if I wanted to hang out a bit, AND he had been living on Maui for the last 25 ish years . . . Spent two years on Maui soaking it all in, before rolling back into the mainland in 2020. Wasn't really interested into getting back into the trade until now. The only interactions I've had with computers had been gaming, trading / mining crypto, and everyday email like stuff.
In short, I had burnt out, and it's taken me this long to get the "urge" back.
Forget the Arduino IDE! I would recommend using Visual Studio Code with the C/C++, Arduino and Cortex-Debug extensions.
The Raspberry Pi Pico acting as programmer-debugger is called Picoprobe. It also features redirection of the Serial1 port.
The installation process is detailed at the earlephilhower/arduino-pico page. You may need to build OpenOCD with specific options. It is easy and works fine.
Debugging is performed from Visual Studio Code. Obviously, you can use manual command-line GDB and OpenOCD. The only caveat is Serial1 should be used instead of Serial to print to the console.
Please find some pointers below.
That's great! I bought a 2nd one expressedly for that purpose although I haven't used it yet (don't have my soldering equipment out of storage yet so the debug header isn't mounted yet). Do you have any links or guides on how to use this with Arduino? (does it come with GDB and is there a GUI or is it all CLI driven GDB usage?)