News for hackers. Stuff that matters.
Re:From Zero to Main(): Bare Metal Rust by wiremine on Tuesday December 17, 2019 @03:57PM (#21818744)
Semi-related: are there any good recommendations for Rust-based RTOSs. Bare metal is great, but for a lot of projects you'll want some sort of scheduler.
Re:From Zero to Main(): Bare Metal Rust by fra on Tuesday December 17, 2019 @04:08PM (#21818859)
Check out Tock: https://www.tockos.org/. As far as I know it's the most complete effort out there.
Re:From Zero to Main(): Bare Metal Rust by jsjohnst on Tuesday December 17, 2019 @08:00PM (#21820780)
Tock definitely looks interesting, but reading the walkthrough[0] leaves a bad taste in my mouth. Mixing C and Rust without even calling that out, let alone explaining the why. Their init() function (serves same purpose as the reset_handler in OP’s article) is also a gnarly mess in comparison to OP’s version.

That said, judging a project based solely on its howto will mean you’ll miss out on a lot of otherwise good stuff. As such, will definitely keep digging into it as I have a project that could leverage it.

[0] https://www.tockos.org/documentation/walkthrough/

Re:From Zero to Main(): Bare Metal Rust by nicoburns on Tuesday December 17, 2019 @06:20PM (#21820088)
There is also Real Time For The Masses https://rtfm.rs/0.5/book/en/
Re:From Zero to Main(): Bare Metal Rust by seren on Wednesday December 18, 2019 @01:47AM (#21822465)
Is Tock a Real Time OS though ? They mention a preemptive scheduling, but not priority inversion for example. And they do not claim anything regarding real time in their doc.
Re:From Zero to Main(): Bare Metal Rust by SAI_Peregrinus on Wednesday December 18, 2019 @01:25PM (#21827675)
There's also Drone: https://www.drone-os.com/

I've not used either though, yet. I need to play with them.

Re:From Zero to Main(): Bare Metal Rust by mlindner on Tuesday December 17, 2019 @10:59PM (#21821641)
I mean it's not that hard to write your own scheduler. You can easily set up a simple event poll loop that's not much more than a raw loop. See cooperative multitasking which is completely sufficient for this case if you want something a little more complex.