News for hackers. Stuff that matters.
Re:Aerugo – RTOS for aerospace uses written in Rust by hlandau on Friday February 02, 2024 @03:12PM (#39233642)
A bit surprised to see a common MCU used here rather than one designed for safety applications (e.g. TMS570). Is there any rationale to this?
Re:Aerugo – RTOS for aerospace uses written in Rust by steveklabnik on Friday February 02, 2024 @03:43PM (#39234064)
I don't see a super explicit one, but: https://activities.esa.int/4000140241

> The proposed activity is to evaluate the usage of Rust programming language in space applications,

> The design of the system will be guided to support potential future qualification activities.

> This application will showcase the viability of the developed RTOS and provide input to a Lessons Learned report, describing the encountered issues, potential problem and improvement areas, usage recommendations and proposed way forward.

Looks like it's not intended for real applications, but instead to gain some experience. What better way to ensure that you don't ship the prototype than by doing it on hardware that is similar but different enough to ensure that it won't be used in production.

Just a guess though!

Re:Aerugo – RTOS for aerospace uses written in Rust by sesm on Friday February 02, 2024 @03:58PM (#39234276)
I hope they also publish the Lessons Learned report mentioned above, would be an interesting read.
Re:Aerugo – RTOS for aerospace uses written in Rust by topspin on Friday February 02, 2024 @05:30PM (#39235337)
> Is there any rationale to this?

It's all ARM Cortex? The RTOS doesn't care.

Re:Aerugo – RTOS for aerospace uses written in Rust by xyx0826 on Friday February 02, 2024 @06:30PM (#39235943)
The choice of microcontroller matters. Functional safety qualified MCUs might have the same CPU core but is built in a way that minimizes interference or common cause of failures between peripherals. The software needs to be written closely following the safety manual of such a MCU to make maximum use of those safety guarantees.
Re:Aerugo – RTOS for aerospace uses written in Rust by topspin on Friday February 02, 2024 @06:53PM (#39236135)
There are several safety critical Cortex implementations around, with features like multi-core lock-step operation that is largely transparent to the RTOS (or whatever) beyond fault handling. There isn't some vast gulf between the ATSAMV71Q21 they've piloted this on and whatever space rated device and requirements you imagine.
Re:Aerugo – RTOS for aerospace uses written in Rust by SteelPh0enix on Monday February 05, 2024 @11:27AM (#39262964)
While our RTOS in fact doesn't care about it, because it's up to the user to implement the abstraction for the platform, the bigger issue is Rust support for more exotic architectures used in space - for example, SPARC (LEON3), which we'd like to consider for a Rust project, but it's compiler support seems relatively bad.
Re:Aerugo – RTOS for aerospace uses written in Rust by topspin on Monday February 05, 2024 @12:46PM (#39264097)
That seems like an insoluble problem: for every fault tolerant SPARC device someone slices off a wafer the ARM crowd ships a truck load of chips. SPARC will never have the mindshare necessary to polish the LLVM/Rust stack to parity.
Re:Aerugo – RTOS for aerospace uses written in Rust by SteelPh0enix on Monday February 05, 2024 @11:25AM (#39262933)
Hello, one of the devs of Aerugo here.

The rationale is rather simple - SAMV71 is used in critical applications (it has some functional safety certificates), and I have past experience of writing critical software for it at N7.