Write Fast C/C++ Code for the Raspberry Pi Pico 2 using Visual Studio Code - Best RISC-V Compiler

  Рет қаралды 14,514

Gary Explains

Gary Explains

Күн бұрын

The RP2350 is a dual architecture, dual core, microcontroller chip. You can develop for it using Windows, Linux, and macOS, using the command line or using Visual Studio Code. In this video I show you how to use the official Visual Studio Code extension for Raspberry Pi Pico/Pico 2 development.
---
Let Me Explain T-shirt: teespring.com/...
Twitter: / garyexplains
Instagram: / garyexplains
#garyexplains

Пікірлер: 37
@DQSoft
@DQSoft 4 ай бұрын
Look, mama, I'm on a Gary Explains video! Great video, Gary, and kudos for Raspberry for updating the VSCode extension.
@leonardgallion6439
@leonardgallion6439 4 ай бұрын
Thanks for going down this ARM/RISC-V compiler rabbit hole across multiple videos. It has been very interesting to see just how much compilers, libraries & settings make a difference. Also happy to see RISC-V is generally holding it's own when it has hardware equivalence to M33. I wouldn't doubt a new, lower cost RISC-V only Pico hits within the next year or so
@ristekostadinov2820
@ristekostadinov2820 4 ай бұрын
Upgrading the RP2040 to be risc-v only will be amazing upgrade over the Cortex M0+
@GaryExplains
@GaryExplains 4 ай бұрын
Really. Why? What advantages does it give compared to M0+ ?
@leonardgallion6439
@leonardgallion6439 4 ай бұрын
@@GaryExplains My reasoning is that the Hazard 3 core has near identical integer performance to the M33 but without the licensing costs. This means that a RISC V only Pico would have a much smaller, cheaper core (or they use that space for more memory or features like hardware floating point, etc - after all RISC V is modular) but no licensing costs so instead of $5, it is back down to $4 or even less. Not a big deal for a hobbyist buying one but makes a big difference for Pico chip integration for OEMs & manufacturers. That moves RISC V further up the food chain of adoption and provides an even more accessible high performance (compared to the M0+) tool for hobbyist. For micro controllers it is either price performant for your task or not. It matters little if it is running an ARM, RISC V or Dorito as the chip
@GaryExplains
@GaryExplains 4 ай бұрын
This is a common theory however majority of the costs for the boards are the manufacturing costs: the PCB, the RP2350, etc. The licensing costs are negligible. I can guarantee that a RISC-V only Pico will be the same price as an Arm one.
@leonardgallion6439
@leonardgallion6439 4 ай бұрын
@@GaryExplains Perhaps the licensing cost is a minimal component of overall cost but Hazard 3 core is basically a more performant M0+ and its modular nature means it can be customized to match board needs much more seamlessly and maybe even from existing RISC V designs.Having a bespoke design also means you have a minimum amount of silicon to pay for per product specification. I think these are strong reasons that Raspberry Pi corporation is actively supporting and beginning to demo RISC V usage,even if licensing costs are a small part of that overall improvement in product
@sugerbear586
@sugerbear586 4 ай бұрын
at last!! Managed to get it working on MacBook with no issues. This is so much simpler than the older way of cobbling together than IDE.
@rickh6963
@rickh6963 4 ай бұрын
Great info to know Gary! Thanks for keeping up up-to-date!
@nezbrun872
@nezbrun872 4 ай бұрын
Wow, the end user experience now is sooooo much better than it was. There's not even any need for Zadig for Pico 2 under Windows, although you still need it for the original Picos. Furthermore, debugging in VS Code with the Debug Probe is an OOB experience now. What an improvement!
@captmulch1
@captmulch1 4 ай бұрын
My two Pi Pico 2s just arrived today! Thanks for the vid Gazza mate …
@GaryExplains
@GaryExplains 4 ай бұрын
Have fun!
@TerribleShmeltingAccident
@TerribleShmeltingAccident 4 ай бұрын
fr? im super jealous! didnt realize they moved past pre-order
@AntonioCosta-jd6fg
@AntonioCosta-jd6fg 4 ай бұрын
As always, great job, Gary!! Thanks a lot!! :)
@michaelwaites6101
@michaelwaites6101 4 ай бұрын
This is great, thanks. I don't suppose you know how to build with different levels of optimisation for debug/release type build configurations do you? I'd love an explanation of how to do that...
@armingeiss1281
@armingeiss1281 4 ай бұрын
Hi and thanks a lot. Based on your Great Video i was able to program my raspberry pico by vs code instand of ardunio ide in view minutes. 😊
@GaryExplains
@GaryExplains 4 ай бұрын
Glad it helped
@OmidAtaollahi
@OmidAtaollahi 4 ай бұрын
learnt a lot. tnx🎉
@arnauddurand127
@arnauddurand127 4 ай бұрын
Could you make a video on the (now infamous) RP2350 E9 Erratum? I think it is quite obscure for newcomers what are the implications of it.
@JeroenWolf-vu4xe
@JeroenWolf-vu4xe Ай бұрын
Gary nice video :) Question: I have a degree in C (not C++), JAVA and Python (+ HTML/CSS/PHP/SQL). Which (in your experience) programming language is the best (in your opinion) for setting up (from the ground up) a custom script that lets the Pico2 (I have a WIZnet W6100-EVB-Pico2 test board in combination with a Nordic nRF7002-EB Wifi 6 board) act as a webserver...? My use-case: I want to monitor the powerstatus of a flatscreen through an API call and sent out the response via WiFi to a remote SQL database. Is this C or perhaps C++, or micropython or is the Arduino IDE the most successfull route to take?? I hope to hear from you, thx so much in advance. With kind regards, Jeroen Wolf
@kirishima638
@kirishima638 4 ай бұрын
Does the new Pico support hardware debugging?
@we_teach
@we_teach 2 ай бұрын
it creates a program in the language C, how do i make this c++ do i just rename the .c to .cpp? 💀💀💀💀💀💀
@littlechay
@littlechay 4 ай бұрын
Your T-shirt link doesn't work!
@pavelperina7629
@pavelperina7629 3 ай бұрын
Interesting, I let it to create sample code, it generated blink.pio file that looks like mix of unknown (pseudo-)assembly (not RISC-V, not x86) and C with unfamiliar functions and then blink_cpp that includes mysterious blink_pio_h that contains byte array blink_program_instructions with this assembly in the comment. It almost feels like each GPIO pin can run a program with 16bit instructions while main cpu can run something completely different (in this case sleep/print hello world). Can't use dots, youtube evaluates it as a domain and erases post.
@fastbeta
@fastbeta 4 ай бұрын
is there any real complex project demo for rp2350 like doom for rp2040 from pico sdk author?
@merseyless
@merseyless 4 ай бұрын
Now get them to put in J-link support. My aneurisms have aneurisms from trying to get it to work.
@panjak323
@panjak323 4 ай бұрын
VsCode is rarely to the rescue. Now I'm fighting on Linux, because it simply refuses to make intellisense work with larger cmake project. However on windows it works fine (which is useless because I don't need Windows binaries)
@nakfan
@nakfan 4 ай бұрын
First 😊
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
Raspberry Pi Pico 2: a RISC-V bet!
8:05
Jeff Geerling
Рет қаралды 318 М.
VSCode Extension for Raspberry Pi Pico 1 & 2 | DrJonea.co.uk
19:02
Dr Jon EA Ltd
Рет қаралды 4,5 М.
Raspberry Pi Debugging with Visual Studio
16:26
Dave's Garage
Рет қаралды 67 М.
RISC-V isn't killing Arm (yet)
9:05
Jeff Geerling
Рет қаралды 361 М.
C++ Super Optimization: 1000X Faster
15:33
Dave's Garage
Рет қаралды 337 М.
rust runs on EVERYTHING (no operating system, just Rust)
14:29
Low Level
Рет қаралды 218 М.
Build - gusmanb's 24 Channel 100MHz Logic Analyser
27:54
Happy Little Diodes
Рет қаралды 49 М.
R-Pi Pico 2: 10 Things You Must Know Before Buy!
6:50
ToP Projects Compilation
Рет қаралды 27 М.