Monday, October 20, 2025

Pi PICO Debug demo

With the uncertain future of the Arduino platform I've decided to look more deeply into the Raspberry Pi PICO platform. I ordered a Raspberry Pi Debug Probe and it arrived today. It plugs into three pins on the end of the board and also to the serial port pins.


I had previously installed the official extension for Visual Studio Code.


By some magic it automatically found the board and the debug probe and "just works". The marvellous thing is that this lets me set breakpoints and single step through a program while inspecting variables. 


I had a bit of trouble the first time I added a variable which didn't show up in the Locals area. Turns out the compiler optimises out variables you don't actually use. Presumably this can be turned off but it's for the best. Anyhow, this is a very nice improvement over lots of print statements to figure out what's going on.

 The Pi Pico software development kit is extensive and well documented

1 comment:

k1te said...

On buddy Dhiru’s wisdom we purchase the $4 USD pico USD pico W from Adaftuit with never a return in the first 30 boards ChatGPt is able to take a sensor data sheet and generate micro python working code in 2-4 iterations My entire career has vanished.yet now i am a kind manager of ChatGPT generating working detailed projects easily ten times my human speed. A swell time to be working with bargain boards. Only killed one once, by drowning, and it was clearly my fsult. $4 smoked….. and forgiven…..