Re:Asynchronous Rust on Cortex-M Microcontrollers
by 0xfedbee on Wednesday July 19, 2023 @10:04PM
(#36796080)
As I said, anyone with serious embedded experience will understand my point. People who think triggering watchdog is a normal thing won’t.
[ Parent
| on HN ]
Re:Asynchronous Rust on Cortex-M Microcontrollers
by MarkMarine on Thursday July 20, 2023 @01:54AM
(#36797279)
Yikes, no kidding. Triggering a watchdog is a “stop the dev cycle and everyone figure out what show-stopping bug is lurking in our code” time.
I have no desire to use embedded rust async, I use C++ with none of the allocating containers, and honestly it’s more of a C with classes style than modern C++, plus FreeRTOS in my production embedded code. I would happily trade out C++ for the memory safety of rust.
I would pick up a lightweight RTOS written in non-async rust if one existed and I could have faith in it, but other than personal projects I can’t advocate for building a hardware project on something like this yet.
Re:Asynchronous Rust on Cortex-M Microcontrollers
by junon on Thursday July 20, 2023 @11:35AM
(#36802074)
I never said that, please stop the "holier than thou" tone. I'm aware of what a watchdog timer is and what its purpose is.
My point is that async doesn't introduce stalls unless you have a bug - a bug that could introduce a stall anyway. I don't see how async changes that.
I write firmware and operating systems for a living, by the way.