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

  Рет қаралды 10,906

Gary Explains

Gary Explains

Күн бұрын

Пікірлер: 36
@DQSoft
@DQSoft 2 ай бұрын
Look, mama, I'm on a Gary Explains video! Great video, Gary, and kudos for Raspberry for updating the VSCode extension.
@rickh6963
@rickh6963 2 ай бұрын
Great info to know Gary! Thanks for keeping up up-to-date!
@leonardgallion6439
@leonardgallion6439 2 ай бұрын
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 2 ай бұрын
Upgrading the RP2040 to be risc-v only will be amazing upgrade over the Cortex M0+
@GaryExplains
@GaryExplains 2 ай бұрын
Really. Why? What advantages does it give compared to M0+ ?
@leonardgallion6439
@leonardgallion6439 2 ай бұрын
@@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 2 ай бұрын
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 2 ай бұрын
@@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 2 ай бұрын
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.
@nezbrun872
@nezbrun872 2 ай бұрын
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 2 ай бұрын
My two Pi Pico 2s just arrived today! Thanks for the vid Gazza mate …
@GaryExplains
@GaryExplains 2 ай бұрын
Have fun!
@TerribleShmeltingAccident
@TerribleShmeltingAccident 2 ай бұрын
fr? im super jealous! didnt realize they moved past pre-order
@AntonioCosta-jd6fg
@AntonioCosta-jd6fg 2 ай бұрын
As always, great job, Gary!! Thanks a lot!! :)
@michaelwaites6101
@michaelwaites6101 2 ай бұрын
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...
@OmidAtaollahi
@OmidAtaollahi 2 ай бұрын
learnt a lot. tnx🎉
@arnauddurand127
@arnauddurand127 2 ай бұрын
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.
@armingeiss1281
@armingeiss1281 2 ай бұрын
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 2 ай бұрын
Glad it helped
@kirishima638
@kirishima638 2 ай бұрын
Does the new Pico support hardware debugging?
@pavelperina7629
@pavelperina7629 28 күн бұрын
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 2 ай бұрын
is there any real complex project demo for rp2350 like doom for rp2040 from pico sdk author?
@merseyless
@merseyless Ай бұрын
Now get them to put in J-link support. My aneurisms have aneurisms from trying to get it to work.
@littlechay
@littlechay 2 ай бұрын
Your T-shirt link doesn't work!
@panjak323
@panjak323 2 ай бұрын
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)
@we_teach
@we_teach 20 күн бұрын
it creates a program in the language C, how do i make this c++ do i just rename the .c to .cpp? 💀💀💀💀💀💀
@nakfan
@nakfan 2 ай бұрын
First 😊
Players push long pins through a cardboard box attempting to pop the balloon!
00:31
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 5 МЛН
Yay😃 Let's make a Cute Handbag for me 👜 #diycrafts #shorts
00:33
LearnToon - Learn & Play
Рет қаралды 117 МЛН
Raspberry Pi Pico 2: a RISC-V bet!
8:05
Jeff Geerling
Рет қаралды 300 М.
GDvi: Simplified HDMI for the Pico
15:00
Dr. Francintosh
Рет қаралды 7 М.
Why Are Threads Needed On Single Core Processors
16:07
Core Dumped
Рет қаралды 10 М.
R-Pi Pico 2: 10 Things You Must Know Before Buy!
6:50
ToP Projects Compilation
Рет қаралды 19 М.
Raspberry Pi Pico - PIO explained
50:01
Slador
Рет қаралды 32 М.
RS232 flow control
14:49
Ben Eater
Рет қаралды 142 М.
Unboxing the Raspberry Pi CM5 Development Kit
11:36
Level 2 Jeff
Рет қаралды 49 М.
Players push long pins through a cardboard box attempting to pop the balloon!
00:31