Rust Runs on EVERYTHING, Including the Arduino | Adventures in Embedded Rust Programming

Rust Runs on EVERYTHING, Including the Arduino | Adventures in Embedded Rust Programming

Low Level Learning

2 года назад

122,342 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@user-hv9pj8lr1r
@user-hv9pj8lr1r - 22.11.2023 09:53

Hi, somebody write Code in RUST for ESP32-2432S08R ? Please share a Example for Display Text / Graphic on the Display please

Ответить
@MrFloopy69
@MrFloopy69 - 20.11.2023 02:59

What's the point? Why would one do this?

Ответить
@deeptangshusaha7793
@deeptangshusaha7793 - 24.09.2023 07:14

Help!!!! Trying this on my pc and it just won't compile and I don't even get how to go about debugging it Please create an updated video with latest version of rust. The things on this video does not work anymore. Please!!!!

Ответить
@ajdca4331
@ajdca4331 - 13.09.2023 08:43

Thanks, the video was awesome!!
Do you think I could use Rust for more complex project or a better choise is use C/C++ ?

Ответить
@E_mosfet
@E_mosfet - 16.07.2023 08:52

i dont get it, i keep getting fetching errors from this repo

Ответить
@brandongunnarson7483
@brandongunnarson7483 - 06.04.2023 21:59

i wish i understood what was going on, maybe someday

Ответить
@mtalhakhalid1679
@mtalhakhalid1679 - 21.03.2023 21:10

Arduino got rust NOw cool project thansk a lot login to my linux to test it

Ответить
@talhakhalid6302
@talhakhalid6302 - 21.03.2023 17:51

Can i do same with python??

Ответить
@talhakhalid6302
@talhakhalid6302 - 21.03.2023 17:51

Good project must try i am learning rust these days

Ответить
@InMemoryOfNeo
@InMemoryOfNeo - 03.03.2023 16:02

awesome 👏👏👏👏👏👏👏

Ответить
@kayakMike1000
@kayakMike1000 - 27.02.2023 05:30

It's not so much that rust runs on everything, you just have a toolchain that compiles to whatever janky BS that is AVR.

Ответить
@RetoonHD
@RetoonHD - 23.01.2023 20:26

Yeah, a very important thing you forgot to mention is --release for a release binary, idk how many takes you did so it's fine but having a pinned comment would be nice.

Ответить
@hannescamitz8575
@hannescamitz8575 - 15.01.2023 11:05

Unless I missunderstand that amount of data written, that's insane for such a small function.
5,8KiB for a blinking LED, it's about 800B with Arduinos "C++ thingy" and 300B in C.
It's fine on Raspberries and other higher level of embedded systems but not an Atmega 328 or a PIC etc.

I get the point of this video that this language can be compiled for enything and it's great in that sense.
Keep up the good work.

Ответить
@peircedan
@peircedan - 10.01.2023 19:38

With only 2K ram I would think one would avoid using the heap. In that case why use Rust?

Ответить
@xokelis0015
@xokelis0015 - 02.01.2023 12:31

Dude, why aren't you showing how the guy you stole the code from knows what memory mapped io address the pins are at? What's the point of teaching a bunch of code to a bunch of code noobs, if you aren't going to explain how to find this information out for yourself?

You're basically teaching high level programming and pretending that you're teaching low level machine programming.

Ответить
@daniel-lb4bh
@daniel-lb4bh - 02.01.2023 08:15

perfect video
You offer rust or C++ as options for someone interested in learning embedded system programming ?

Ответить
@TheChrisey
@TheChrisey - 30.12.2022 11:09

I mean, it's a compiled language and not a runtime, pretty obvious it'll run on anything

Ответить
@robertpeters9438
@robertpeters9438 - 20.12.2022 05:06

This reminds me of how we used th threaded list language FORTH to write code for custom military hardware. The ability to construct an arbitrary software architecture for a hardware level architecture and run FORTRAN on top of that was a powerful tool back in the 1980s.

Ответить
@neilfpv
@neilfpv - 08.12.2022 09:55

The git commit sha you wrote was wrong. Instead of 450c, you wrote 540c.

I enjoyed your tutorial. I finished it. How should we prepare the arduino board?

Ответить
@chrisobrien7531
@chrisobrien7531 - 26.11.2022 19:49

The out/debug will have a compiled binary but without --release it will be significantly bigger

Ответить
@ColaEuphoria
@ColaEuphoria - 16.11.2022 05:13

If you're on Windows and have Arduino already installed, then you already have avr-gcc and avrdude. Just add it to your PATH. It's usually in C:\Program Files (x86)\Arduino\hardware\tools\avr\bin

Ответить
@disguisedpigeon5465
@disguisedpigeon5465 - 26.10.2022 23:21

Please, do all of us a favor and set that sublime text border to dark

Nice video btw

Ответить
@metamud8686
@metamud8686 - 19.10.2022 21:04

I tried to run Rust on my vacuum cleaner, but it didn't work. Perhaps because it's a Microsoft vacuum cleaner: the only product they made that doesn't suck?

Ответить
@metamud8686
@metamud8686 - 19.10.2022 20:53

You say '450' where it is (and you type) '540'

Ответить
@chrisalexthomas
@chrisalexthomas - 11.10.2022 00:31

But what is the memory use like? since on a microcontroller every byte counts. A binary that is 600KB is a lot of memory for such a small amount of code, so if that has to also be used in memory too. This is way too expensive.

Ответить
@80sixd
@80sixd - 09.10.2022 03:24

i find it frustratiing watching tutorials with a statements like 'not a very good panic but itll do'

Ответить
@elmariachi5133
@elmariachi5133 - 03.10.2022 03:24

Modern coding languages are so terrible .. more and more bullshit like :: -> & () {} and whatever everywhere are making readability and understanding of the code an terribly awful experience. For the main any language since C is mosty a clone of C, which only enhanced capabilities but doesn't improve the coding itself at all, which by enhancing the complexity made it worse and worse through the years.
Even coding Assembler was a charm against this ..
It's time for someone to innovate on this, and come up with some understandable and easy to type syntax clear word making all those crappy and annoying to type special characters redundant. A bit like BASIC was, but more flexible with AI support.

Ответить
@PandaEatGRass
@PandaEatGRass - 11.09.2022 22:40

What os are you using in this video?

Ответить
@dominikkruk5235
@dominikkruk5235 - 23.08.2022 10:29

Is there any way to do this on windows? Any ide or smthn?

Ответить
@bomsh_channel
@bomsh_channel - 16.08.2022 00:31

Cool video, but i can't compile for some reason it gives me language item required, but not found: `eh_personality` error

Ответить
@kenrod6643
@kenrod6643 - 05.08.2022 05:50

I appreciate the video. I just started learning Rust after hearing so much praise. I got my X86 dev environment up and running without any effort. But I must say I was surprised after running into so many "gotchas" trying to get code onto just an Arduino. By comparison getting golang code to run on all my microcontrollers was much more seamless. I think i'll have to wait until things advance before using Rust for my embedded projects. Good content as always.

Ответить
@cornjulio4033
@cornjulio4033 - 24.07.2022 02:27

Very interesting. Nice upload speed to the board!

Ответить
@raptorjesus3396
@raptorjesus3396 - 09.07.2022 13:45

I think that rust is a bit problematic on embedded cus because when initializing a rust runtime executable a lot of memory allocated compared to a c rtex. An in-depth analysis of the memory allocations performed can be found under the topic "Investigating Memory Allocations in Rust" by ysantos

Ответить
@thegardenofeatin5965
@thegardenofeatin5965 - 29.06.2022 06:18

So, it's hard to tell. Are you going to focus on embedded Rust, or just briefly showcase it and jump to the next thing?

Ответить
@KangJangkrik
@KangJangkrik - 20.06.2022 09:16

It's now crab rave for rustaceans

Ответить
@nikos4677
@nikos4677 - 18.06.2022 23:34

After dealing with c++ arduino code now i understand why rust is so loved

Ответить
@llf_iran
@llf_iran - 17.06.2022 14:14

It's not really a good idea to override your default toolchain to nightly because you may possibly not need nightly features in most projects.
Instead, you can create a file with the name `rust-toolchain` and write your desired toolchain (you can be specific and use the date of the nightly version) in it so it's being used only in that particular project and not every project you may use.

Ответить
@arcsine4344
@arcsine4344 - 29.05.2022 05:23

Thank for the video.
It really helps me a lot.

Ответить
@lesto12321
@lesto12321 - 27.05.2022 12:51

suggestion: use stm32 as they are supported in mainline rust

Ответить
@michaeledwardharris
@michaeledwardharris - 24.05.2022 07:04

That was cool.

Ответить
@maksimmuruev423
@maksimmuruev423 - 21.05.2022 17:57

Why no_main.. but you still have main..crippled one but never the less.. its in there

Ответить
@nasmmakes
@nasmmakes - 11.05.2022 00:09

Thanks!

Ответить
@rockboynton3006
@rockboynton3006 - 08.05.2022 06:42

Curious, why did you add the panic-halt dependency (which adds a panic handler), but then implement your own panic handler?

Ответить
@gergonagy846
@gergonagy846 - 05.05.2022 23:33

This is great and all, and don't get me wrong, this is a really impressive proof of concept project. But isn't the code like... bloated to the Extreme? For me, an embedded project is a challenge, because you have to keep complexity in mind, speed, and yes, code size. Yes, you COULD use a bigger micro, but you also could slap a RPI on and call it a day. What's the challenge in that?
Again, this is a great video, and straight to the point tutorial, I just don't see the practicality of it (yet)!

Ответить
@joshuaparmenter373
@joshuaparmenter373 - 18.04.2022 18:39

Is Rust bloated and slow compared to embedded c? As someone who exclusively uses c for real time embedded applications I am very partial to C compared to anything else, this may just be internal bias but if I see any type of intelligence or memory safety I immediately assume it is going to be slow code.

Ответить
@basicallybrand
@basicallybrand - 09.04.2022 11:43

I love rust

Ответить
@SpeedingFlare
@SpeedingFlare - 17.03.2022 19:18

If the binary is 100kb how does it fit on the 32kb flash? Love your content btw!!!

Ответить
@exdcode3369
@exdcode3369 - 09.03.2022 13:08

Ahah, low level gang😎

Ответить