Do It Yourself – Tutorials – How to Debug the Raspberry Pi Pico Using Another Pico! – Picoprobe and VSCode Tutorial

by | Mar 7, 2021 | 0 comments

Do It Yourself – Tutorials – How to Debug the Raspberry Pi Pico Using Another Pico! – Picoprobe and VSCode Tutorial

by | Mar 7, 2021 | Do It Yourself - Build Your Own Website | 0 comments

Do It Yourself – Website Tutorials



This video shows you how to debug the Raspberry Pi Pico using another Pico acting as a Picoprobe. We walk-through how to install the required dependencies to enable debugging inside Visual Studio Code (VSCode) and demonstrate simply how to add breakpoints and inspect register values. We debug a simple C blink LED program which was written in a previous video.

This video also covers how to create a Picoprobe from a Raspberry Pi Pico, how to wire it to a target Pico and use it as a UART serial monitor as well as a debugger! By following this short tutorial you will be able to debug your C programs on your Pico in no time!

The OpenOCD build and boilerplate code is available here: https://learnembeddedsystems.co.uk/133-2

Links to programs mentioned in this video:
OpenOCD: https://learnembeddedsystems.co.uk/133-2
Picoprobe UF2: https://www.raspberrypi.org/documentation/rp2040/getting-started/
Zadig: https://zadig.akeo.ie/

Timestamps
00:00 Introduction
00:33 What will we need?
01:23 OpenOCD
02:18 USB Drivers
02:50 Picoprobe UF2
03:14 Pico Wiring
04:28 Testing Toolchain
06:09 Picoprobe UART to USB
06:35 Set up VSCode
07:40 launch.json
08:25 Debugging
10:28 Conclusion

If this video helped you, please consider leaving a like and subscribing, thank you!

To see my other videos on the Raspberry Pi Pico, check out the playlist here: https://www.youtube.com/playlist?list=PLEB5F4gTNK68IlRIJtcJ_2cW4dSdmreTw

You can find more embedded systems tutorials and projects on my website https://learnembeddedsystems.co.uk

— Equipment I use regularly —
The following links are affiliate links where I may make a small percentage on qualifying sales through these links. Use the respective UK or US links listed.

Budget Soldering Iron: UK: https://amzn.to/3pQpvUu US: https://amzn.to/3bBawIJ
Breadboards: UK: https://amzn.to/3solZCe US: https://amzn.to/3dGsHiS
Jumper Cables: UK: https://amzn.to/37JfToi US: https://amzn.to/3r384S9
Camera: UK: https://amzn.to/3qKLwFr US: https://amzn.to/3pK0V7C
Lens: UK: https://amzn.to/380lQxp US: https://amzn.to/3knH3WL
Tripod: UK: https://amzn.to/37H0Nzw US: https://amzn.to/3byKHsV

All videos and tutorials on this channel and mentioned websites are for educational purposes only.

source