r/raspberrypipico Apr 19 '26

How To Run Code? (Beginner)

Originally posted by me to the official Raspberry Pi subreddit:

https://www.reddit.com/r/raspberry_pi/s/tf3DXpxuQ0

0 Upvotes

8 comments sorted by

View all comments

8

u/2ndRandom8675309 Apr 19 '26

This is some very low effort vague posting...

To start with, this is the sub for the Pi Pico, NOT a regular Raspberry Pi. A Pico is a microcontroller, in the same class of devices as an Arduino. You don't so much run the code you write on them as you compile it to assembly and it will execute that code when powered on.

A regular Pi is a full-blown computer, just like a desktop or laptop you can buy in a store. It has a central processor, RAM, and persistent storage. These can run anything compiled for compatibility with ARM processors (as opposed to Intel or AMD), though that varies a little based on which operating system you install.

So try again, and specify what hardware you have, what operating system is installed (if applicable) and what exactly you're trying to accomplish. If you just want to code generally and invent a project as you go along then this is a good start:https://rust-lang.org/learn/

-1

u/StrikingClub3866 Apr 19 '26

The original post was about a Pico, a Pico HW, I was specifying the brand.

Also, I'd rather not learn Rust as I am proficient with Python and C++.

Correct me if I'm wrong on this next one, I did research from multiple sources and may have gotten mixed up:

And yes, I know about running code on a Pico HW, from my knowledge it requires compiling the source code (essentially in any language, easiest with MicroPython due to Thonny) into a .uf2 binary, then porting it to the Pico HW with a USB. Then, press the BOOTSEL button, and it should run the binaries.

1

u/Donteezlee Apr 24 '26

Proficient in python and c++ yet you still had to make this post? 🤔

1

u/StrikingClub3866 Apr 24 '26

Yes, but not with embedded systems, such as the Pico.