TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Rust on Embedded: How we monitor our battery storage systems

20 pointsby michidkabout 1 year ago

2 comments

mlsuabout 1 year ago
The embedded Rust story, at least for small projects on cortex series MCUs is pretty good. There is embedded-hal which just reached v1.0. This lets anyone to write a HAL against those traits and have drivers and application code across the whole ecosystem be compatible. Traits make it very easy to write portable code. STM32 series have good, relatively fully featured HAL crates.<p>On the tooling side, probe-rs is very nice and lets you get up and running with RTT + debug quickly.<p>The RTOS ecosystem is vibrant. Of note:<p>- The focus of most iot development seems to be embassy-rs<p>- I am building a project with hard real-time guarantees with RTIC and it&#x27;s been pretty straightforward so far<p>- Oxide&#x27;s Hubris looks interesting<p>If I were going to write a relatively simple, very high reliability system on an STM32 platform, I would do it in Rust without hesitation. (I am currently doing exactly this)
jauntywundrkindabout 1 year ago
There&#x27;s so much good embedded OS work happening. These Bluetooth, wifi, matter problems? Pretty well tackled by Zephyr &amp; others.<p>It&#x27;ll be interesting to see if &quot;rewrite it in Rust&quot; really can re-do all these efforts satisfactorily. Or to see how Rust &amp; C interop goes (as Linux is doing). Or whether Rust remains useful &amp; awesome on embedded if and only if you don&#x27;t need complex protocols and device drivers.
评论 #39447810 未加载