Тэги:
#rust_arduino #arduino_programming #rust_programming #embedded_rust #rp2040 #raspberry_pi_pico_rust #rust_rp2040 #raspberry_pi #pico #rpi #microcontroller #arduino #maker #craft #hobby #electronics #wires #temperature #safety #project #board #electric #leds #led #thonny #python #micropython #os #ide #onewire #ds18b20 #circuitpython #review #launch #measure #probe #specs #specifications #how_to #guide #programming #Pico_emulation #retro_games_raspberry_pi_pico #etaprime #raspberry_pi_pico #arm_cortex_m0+ #low_costКомментарии:
Hi, somebody write Code in RUST for ESP32-2432S08R ? Please share a Example for Display Text / Graphic on the Display please
ОтветитьWhat's the point? Why would one do this?
Ответить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!!!!
ОтветитьThanks, the video was awesome!!
Do you think I could use Rust for more complex project or a better choise is use C/C++ ?
i dont get it, i keep getting fetching errors from this repo
Ответитьi wish i understood what was going on, maybe someday
ОтветитьArduino got rust NOw cool project thansk a lot login to my linux to test it
ОтветитьCan i do same with python??
ОтветитьGood project must try i am learning rust these days
Ответитьawesome 👏👏👏👏👏👏👏
ОтветитьIt's not so much that rust runs on everything, you just have a toolchain that compiles to whatever janky BS that is AVR.
Ответить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.
Ответить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.
With only 2K ram I would think one would avoid using the heap. In that case why use Rust?
Ответить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.
perfect video
You offer rust or C++ as options for someone interested in learning embedded system programming ?
I mean, it's a compiled language and not a runtime, pretty obvious it'll run on anything
Ответить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.
Ответить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?
The out/debug will have a compiled binary but without --release it will be significantly bigger
Ответить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
ОтветитьPlease, do all of us a favor and set that sublime text border to dark
Nice video btw
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?
ОтветитьYou say '450' where it is (and you type) '540'
Ответить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.
Ответитьi find it frustratiing watching tutorials with a statements like 'not a very good panic but itll do'
Ответить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.
What os are you using in this video?
ОтветитьIs there any way to do this on windows? Any ide or smthn?
ОтветитьCool video, but i can't compile for some reason it gives me language item required, but not found: `eh_personality` error
Ответить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.
ОтветитьVery interesting. Nice upload speed to the board!
Ответить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
Ответить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?
ОтветитьIt's now crab rave for rustaceans
ОтветитьAfter dealing with c++ arduino code now i understand why rust is so loved
Ответить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.
Thank for the video.
It really helps me a lot.
suggestion: use stm32 as they are supported in mainline rust
ОтветитьThat was cool.
ОтветитьWhy no_main.. but you still have main..crippled one but never the less.. its in there
ОтветитьThanks!
ОтветитьCurious, why did you add the panic-halt dependency (which adds a panic handler), but then implement your own panic handler?
Ответить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)!
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.
ОтветитьI love rust
ОтветитьIf the binary is 100kb how does it fit on the 32kb flash? Love your content btw!!!
ОтветитьAhah, low level gang😎
Ответить