Rust on ESP32 - Getting started

  Переглядів 16,379

Floodplain: Streaming, Rust and Embedded

Floodplain: Streaming, Rust and Embedded

9 місяців тому

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
@AlizeuDev
@AlizeuDev 4 місяці тому
straight to the point. cheers brother!
@user-zj7hw9vs2m
@user-zj7hw9vs2m 28 днів тому
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)
@floodplainnl
@floodplainnl 22 дні тому
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
@randomhunter47
@randomhunter47 5 місяців тому
Regular developer here. Subbed
@airman122469
@airman122469 5 місяців тому
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.
@sherpya
@sherpya 4 місяці тому
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
@thisisreallyme3130
@thisisreallyme3130 4 місяці тому
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.
@m23605
@m23605 4 місяці тому
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).
@floodplainnl
@floodplainnl 4 місяці тому
I source most from Amazon and Aliexpress, and aside from one cable that simply didn't work, I haven't had any negative experiences.
@floodplainnl
@floodplainnl 4 місяці тому
Never played the rust (the game), I guess you've confused the algorithm by looking at both ;-)
@petrus_nierop_thaigertech
@petrus_nierop_thaigertech 9 місяців тому
IDF stands for Iot Development Framework. It is not an OS. FreeRTOS is.
@floodplainnl
@floodplainnl 9 місяців тому
thanks!
@lohikarhu734
@lohikarhu734 2 місяці тому
Sure would be nice to get the screens as big as possible...
@samueleauteri9451
@samueleauteri9451 2 місяці тому
hi! I have a problem with openssl-sys --> failed to run custom build command for `openssl-sys v0.9.101`
@floodplainnl
@floodplainnl 2 місяці тому
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.
@alexon2010
@alexon2010 8 місяців тому
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
@floodplainnl
@floodplainnl 7 місяців тому
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.
@floodplainnl
@floodplainnl 7 місяців тому
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.
@thisisreallyme3130
@thisisreallyme3130 4 місяці тому
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_Manufacturing
@JD_Manufacturing 2 місяці тому
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?
@floodplainnl
@floodplainnl 2 місяці тому
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.
@WhatsTheWordBozo
@WhatsTheWordBozo 7 годин тому
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.
Rust on ESP32 - Adding WiFi
10:53
Floodplain: Streaming, Rust and Embedded
Переглядів 3,5 тис.
rust runs on EVERYTHING (no operating system, just Rust)
18:10
Low Level Learning
Переглядів 333 тис.
Normal vs Smokers !! 😱😱😱
00:12
Tibo InShape
Переглядів 10 млн
Піхотинці - про потребу у людях
00:57
Суспільне Новини
Переглядів 941 тис.
Getting Started with ESP32 - Step-By-Step Tutorial
19:50
Tomasz Tarnowski
Переглядів 298 тис.
YOU can Learn the ESP32 in 15 Minutes:  Hello World!
22:52
Dave's Garage
Переглядів 279 тис.
Slint on Embedded Devices: An Introduction
3:31
Slint
Переглядів 12 тис.
Fixing HORRIBLE Embedded Rust So You Don’t Have To
11:14
Low Level Learning
Переглядів 97 тис.
Blinking an LED: Embedded Rust ecosystem explored
17:14
The Rusty Bits
Переглядів 12 тис.
I spent six months rewriting everything in Rust
15:11
chris biscardi
Переглядів 379 тис.
What Makes Rust Different?
12:38
No Boilerplate
Переглядів 193 тис.
why rust libraries may never exist.
7:26
Low Level Learning
Переглядів 210 тис.
My Tech Stack 2024 | Day In The Life of a Software Engineer
14:04
Brian Ruiz
Переглядів 106 тис.
All Rust string types explained
22:13
Let's Get Rusty
Переглядів 141 тис.
Хомяк может разблокировать АЙФОН
0:14
Собиратель новостей
Переглядів 1,1 млн
С Какой Высоты Разобьётся NOKIA3310 ?!😳
0:43
🤯Самая КРУТАЯ Функция #shorts
0:58
YOLODROID
Переглядів 3,1 млн