In this video we'll connect a ESP32-C3 controller, create a Rust project from a template, and run a hello world. All source code: github.com/flyaruu/rust-on-esp32
КОМЕНТАРІ: 22
@AlizeuDev4 місяці тому
straight to the point. cheers brother!
@user-zj7hw9vs2m28 днів тому
Sending a big thumbsupp here after finishing this tutorial. some adittions: 1) "cargo espflash board-info" shows you if you board is connected correctly. 2) Not all the target boards are available under the default selected rustc toolchain. command: "rustup toolchain list" shows you a list and allows you to change (rust-toolchain.toml) to esp for the xtensa processor support. stable-x86_64-unknown-linux-gnu nightly-x86_64-unknown-linux-gnu esp (default) (override)
@floodplainnl22 дні тому
Thanks for the tip. There was some bug in nightly (can't find the link now), and I either needed to roll back embassy versions or the rust toolchain. Rather than using dated-nightlies I switched to the esp-up chain for a while, which also works fine for RiscV
@randomhunter475 місяців тому
Regular developer here. Subbed
@airman1224695 місяців тому
C is great. Don’t hate on C. Having said that, I really do like Rust. I wish the the Rust Foundation wasn’t so crap. But the language itself is pretty good.
@sherpya4 місяці тому
yes but is not a modern language and if you need to do something like string manipulations you will struggle at it, I known c, but I mainly use python because the development is faster and often you don't really need the c performance everywhere. I'm learning rust because it's a good compromise, particularly for dependencies
@thisisreallyme31304 місяці тому
I won't hate on C, or any other language. But the strengths of C do not include an inviting, inclusive user community with tons of novice-friendly handholding tutorials. There's just way too much stuff to remember with C (std lib functions that you're never supposed to use, or inconsistencies in the language itself). I don't think one can avoid C professionally with embedded, but the more "casual" coder will have a better experience in anything besides C.
@m236054 місяці тому
Thanks for the beginner friendly intro. I'm just starting with embedded stuff. Any chance of letting us know where you buy your kit from (trying to avoid fakes and scams)? Was a bit hard finding this video as there's a game called rust, which seems to be more popular than the language (this is what got me here in the end: rust esp -pvp -ban -cheat).
@floodplainnl4 місяці тому
I source most from Amazon and Aliexpress, and aside from one cable that simply didn't work, I haven't had any negative experiences.
@floodplainnl4 місяці тому
Never played the rust (the game), I guess you've confused the algorithm by looking at both ;-)
@petrus_nierop_thaigertech9 місяців тому
IDF stands for Iot Development Framework. It is not an OS. FreeRTOS is.
@floodplainnl9 місяців тому
thanks!
@lohikarhu7342 місяці тому
Sure would be nice to get the screens as big as possible...
@samueleauteri94512 місяці тому
hi! I have a problem with openssl-sys --> failed to run custom build command for `openssl-sys v0.9.101`
@floodplainnl2 місяці тому
I'll revisit some of the repo's, it's not super long ago but the rust / esp32 toolchains change quite a bit. Usually rolling back to an older version helps, but I'll have a look.
@alexon20108 місяців тому
Hello, I'm tired of trying to understand the best way to start developing with ESP32, I'm already a programmer I use Nodejs and React, but focused on the web, but I'm studying electronics because I like it a lot... in the case of ESP32, you have: NodeJS, IDF, Arduino, PlatformIO, everything is very confusing.... each platform determines a different way of writing code... since there is no standard... why not learn Rust + ESP32 then... I would like to use it ESP 32 only as a hardware communication interface... I want to bring the server to the Web, especially the Client, I already have it easy to create an interface with CSS and SVG.... But I'm not liking anything I've seen so far and I can't not even start
@floodplainnl7 місяців тому
Sorry for the delay. Yes, it is defnitely not easy. In general embedded programming is a bit more 'rough' than web programming, and if you are trying to do innovative stuff (that usually means using technologies in ways the designers never intended), you will be largely on your own and have to dig deep to figure it out.
@floodplainnl7 місяців тому
Still, for me that makes it interesting. Once technology is so mature it always is obvious how stuff is supposed to fit together it gets boring.
@thisisreallyme31304 місяці тому
It gets easier when you tackle a third language, at least that's what I am just finding now. I've wanted to learn Rust, but it looked harder, so I completed a book on Golang. But now I want to do things with ESP32 and networking (and presently, TinyGo language doesn't support ESP32 wifi device). The free "Rust book" is also very user-friendly. I would start with regular Rust on a PC or Mac, just to have a troubleshooting advantage if one of the libraries here breaks (as it did at 7:29). Good luck!
@JD_Manufacturing2 місяці тому
Im not trying to be cute or funny. I honestly would like to know what language would a good AI optimized for coding would use. I hear good things about RUST. Is rust just binart code that can be uploaded?
@floodplainnl2 місяці тому
I really don't know. AI can write any language to an extent. Rust is relatively complicated and gives you more control, but if you want to give that control to an AI and not code at all, I'm not sure if that makes sense.
@WhatsTheWordBozo7 годин тому
I will never understand why people use the most closed source operating system to use one of the most open source things out there which is code. Its like a 400 lb man giving lectures about how we should stop eating as much so we can donate more food to the homeless.