VSCode Extension for Raspberry Pi Pico 1 & 2 | DrJonea.co.uk

preview_player
Показать описание


The extension from the Pico can be found in the extensions catalogue.

⏰Timestamps
00:00 Introduction
01:56 SDK Journey
03:10 PCBWay
03:50 VSCode
06:15 Pico Extension
10:55 Real Projects
15:45 Debug and Serial Terminal
17:15 Summary

Get more out of the Raspberry Pi Pico and Pico 2. Subscribe for more Python and C++ programming tips and tricks, like if you found this video helpful, and comment below with your thoughts or questions. Follow us on social media for the latest updates and exciting content!

Video Title: Weather Station A Raspberry Pi Pico W Project

🔔Build, Code, Create – Your Pathway to Innovation Starts Here!! Subscribe now and unlock the power of Raspberry PI Pico for your Embedded IoT and Robotics projects.

✅Important Link to Follow

🔗GitHub

✅ Stay Connected With Me.

=============================

✅ Recommended Playlists

👉 RP2040 Guides

✅ Other Videos You Might Be Interested In Watching:

👉 Tutorial using PWM on Raspberry PI Pico to Dim/Fade an LED in C/C++

👉 How to Use a Servo Feedback Hack with Raspberry PI Pico to Measure Angle

👉 Driving Servo from Raspberry PI Pico

=============================

✅ About Dr Jon EA Ltd.

Welcome to Dr Jon EA Ltd, your go-to channel for mastering Embedded Systems, IoT, and Robotics with the Raspberry PI Pico and beyond! Get into my hands-on tutorials and courses, created by me, Dr. Jon EA – a Udemy training author, enterprise architect, and passionate hobby developer based in Brighton, UK. Whether you're getting into coding with C, C++, or Python or exploring FreeRTOS, this channel is crafted to elevate your skills in a simple, accessible way. Join me on this journey of creation and innovation today!

For Collaboration and Business inquiries, please use the contact information below:

🔔Elevate Your Coding Skills to New Heights! Subscribe now and get on a learning journey with Raspberry PI Pico tutorials that make complex concepts simple.

=================================

⚠️Disclaimer: I do not accept any liability for any loss or damage incurred from you acting or not acting as a result of watching any of my publications. You acknowledge that you use the information I provide at your own risk. Do your research.

Copyright Notice: This video and my YouTube channel contain dialogue, music, and images that are the property of Dr Jon EA Ltd. You are authorised to share the video link and channel and embed this video in your website or others as long as a link back to my YouTube channel is provided.

© Dr Jon EA Ltd
Рекомендации по теме
Комментарии
Автор

Jon, good video. Thanks for the effort to create it. It would be great if you could make a follow up vid where you delve into config of a more complex project like you highlighted. IMO, examples/tutorials of this are sorely lacking by Rpi and makes there extension just a “first program hobby tool” at this point. We are all left to sort through trying to mod the Cmake file from the project start Cmake. Right now it seems a bit clumsy. Any insight you could offer here would be greatly appreciated.

ChromaticReflection
Автор

You can of course open terminals within VS Code and you can also move any VS Code tab into its own window (right click on the tab). You need a recent version to be able to move terminal tabs into their own windows.

john_hind
Автор

This video probably has the wrong Title? Newbies probably just want clear instructions on how to install and use the extension. Dealing with the extention's incapabilities is probably worth another separate video.

HendersonHood
Автор

The Pico extension sounds like it takes too much control, though it sounds like it has the benefit of automatically installing any dependencies.
I know at one time RP had an installer for windows that would install everything including the SDK, VSCode and needed extensions (really only cmake).
You did have to launch vscode from the shortcut RP install provided so that the environment variables would be set for the session.

As for flashing through USB, I'm surprised the Pico extension doesn't take advantage of picotool which can put the Pico in bootsel mode without having to touch the bootsel button.
I use the picotool all the time when I update the Pico controlled 16x300 ws2812b sign with a new message.

What I have to learn is how to deal with cmake files. Too often VSCode says an import file can't be found if the cmake isn't quite right.

danman
Автор

In the CMakeLists.txt file in the top level directory, on line 7 you have 'set(sdkVersion 2.1.0)'. Then, on line 22, you have 'set(sdkVersion 2.0.0)'. You also make changes to the toolchain version. ??

spillagonner
Автор

Thanks for this content. They really need to bring back the Windows installer.

Upgrading to the 2.0 version broke everything I was working on and I had to spend hours figuring out what I needed to continue building from the command line with not even an ounce of instructions from the Pi Foundation. Even worse is that the SDK install instructions for Windows in their readme on github is just "get the vscode extension". I would be okay with using the (forced) extension but mine will not import any work. It's great for creating new projects and getting all of the configuration set up right from the start, but if I ever wish to continue old work, the import will fail. Either silently, or after attempting to re-download the entire SDK, CMake, and other dependencies when they're all installed, and correctly set in the system path. It's a little upsetting that the Pico 2 is this good, the API documentation is top tier, but the user experience is still...not there yet.

I will just continue making "new" projects and pasting my previous work in until they resolve whatever's going on there.

boredcompsciguy
Автор

I clicked on the "flash (SWD)" button but got an OpenOCD error of some kind. I'm scared that I might damage or brick the chip. Also, could it be that I haven't "configured" the cmake extension as you did in the video? Because the official documentation on the pico extension says that we should ignore any cmake pop-ups, which I did and now it doesn't work.
To add context, the "Run" option works perfectly, but the pico does not run the program after the power was disconnected and reapplied. It seems that only this "Flash" option doesn't work.

AstonJay
Автор

Hello.
Not clear to me, if modifications in cmake file of imported projets, are necesary just to debug, or for the building itself

rvv
Автор

How can I import library from github and use it for my rpi pico program with VScode? In Arduino IDE it's simple, you can download zip file and arduino software does everything, but I dont know how can i do the same thing in vscode

jakub
Автор

Oddly I could never get the pi-pico SDK to work on windows. Only on Linux would it get all the way to the drag and drop final file format.

dennissdigitaldump
Автор

Following your instructions, when I execute I get an error 'could not find CMAKE_PROJECT_NAME ic Cache'

spillagonner
Автор

in vs code eventually I open a terminal and start coding in my text cli editor

remotepinecone
Автор

Agree. Using VS Code for a Pico is far from practical.

alevans
visit shbcf.ru