![]() |
Forum Index : Microcontroller and PC projects : Using VS Code to compile for Pico question.
Author | Message | ||||
Bleep Guru ![]() Joined: 09/01/2022 Location: United KingdomPosts: 534 |
I'm trying to set up VS Code, on Windows 11, with Raspberry Pi Pico extension. Initially, to get it working, I'm attempting to duplicate any of the simple example projects provided. The first problem I hit, which took me a while to work out what was going on, was that nowhere in the Setting up your Pico documents does it bother to mention that you have to manually install Git on your PC, if you've never used it before, the documentation implies that VSCode comes complete, on Windows. :-( Now my current problem, it won't now download the Python or SDK required, I believe this is a one off download & doesn't need to be repeated for every project. Sometimes I see it start the Python download, but it never finishes, so has never got to download the SDK. Hunting through interweb, it seems I might need a GitHub Personal access token, because I may? be being bandwidth limited, (this came from raspberry pi own vscode GitHub page) though it's only me on this connection, (I am using Internet over mobile broadband, which may be upsetting it?) Anyway I have created a GitHub personal access token & copy/pasted it into the 'Raspberry-pi-pico: Github token' box in the Raspberry Pi Pico extension settings, I have found ZERO information on what I'm meant to do otherwise with this token? This has made no difference, I still see the Python download start, get about half or two thirds of the way, then nothing, just stops. I do get an error in the developer tools window '[raspberry-pi.raspberry-pi-pico] the server aborted pending request'? I have managed to get it all working on a Pi4 setup, but I did have the same downloading problems, though with that, after about 30 attempts it did eventually download the Python stuff, & eventually the SDK, but it was painful in the extreme. Any experts out there able to assist? Thanks in advance. Kevin. Edited 2025-02-01 20:33 by Bleep |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 9512 |
I installed everything manually on W11 based on the instructions in the first "getting started" manual for the Pico. It was a major pain to get working and now I won't touch the environment for fear of breaking it. Subsequently they have gone this automated root and I have tried it on a different computer and failed completely. Unfortunately the old manual is too big to attach. Remind me of your email by PM and I'll send it to you. Overall, I despise the whole Pico dev environment. CMAKE is awful. VSCode is difficult and if you try and use different environments (e.g. both platformIO and Pico) things go horribly wrong. The Raspberry Pi people seem to think that developing at the command line is OK (under Linux) and anything else is bizarre. |
||||
Bleep Guru ![]() Joined: 09/01/2022 Location: United KingdomPosts: 534 |
Hi Peter, Thanks for your reply, if even you struggle, there is no hope for me. :-( I'll try your manual method, but I'll probably also post on the Pico forum. Thanks, pm on its way. Regards Kevin. |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4136 |
Sorry I can't help, but I'm in the command-line camp ![]() Best wishes, Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
Martin H.![]() Guru ![]() Joined: 04/06/2022 Location: GermanyPosts: 1140 |
Kevin, the same thing happened to me with VSCode, even though I had found step-by-step instructions on youtube. I thought I was too stupid (which can always be the case). But I don't know the VS working environment, except from VB.dot.net, so I'm quickly at a loss if something doesn't work there. So you are not alone in this. Cheers Martin 'no comment |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 3907 |
Sorry I also can't help (I use Linux, set up Pico stuff by hand, don't use VSCode, didn't need or use a git account, command-line only, etc). I got as far as having 2 SDK versions (on the same PC) and being able to build with either but that was ages ago and haven't had time to try any newer versions. But... I also used the early Pico docs as a guide. Then did it my own way but they pointed me very much in the right direction. hmm, I hate cmake, too, but mainly cos I'm stuck in my ways I suspect. John |
||||
karlelch![]() Senior Member ![]() Joined: 30/10/2014 Location: GermanyPosts: 205 |
I am using Windows 11 and successfully built MMBasic a few weeks ago using VSCode. I thought that it was very straight forward back then, but I have not tried since. I started with a fresh VSCode installation and only installed VSCode plug-ins - installing externally packaged was not necessary. I am currently away from my PC but I can check later what plugins were needed Best Thomas |
||||
darthvader Regular Member ![]() Joined: 31/01/2020 Location: FrancePosts: 78 |
I just got a crazy idea ![]() Why not just use the arduino ide environment ? (i know it's crazy but easy ![]() Best. Darth Theory is when we know everything but nothing work ... Practice is when everything work but no one know why ;) |
||||
![]() |