Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
I'm trying to first target the ARM Cortex-M so I've been looking at crates like cortexm-threads but I can't seem to get them to run without a hard fault. Is this maybe the compiler over optimizing?
I've checked out C implementations like os h and (MirOS)[https://github.com/QuantumLeaps/MiROS] but when I port them to rust (even with C2Rust) they cause hard faults too.
I've checked out C implementations like os h and (MirOS)[https://github.com/QuantumLeaps/MiROS] but when I port them to rust (even with C2Rust) they cause hard faults too.
I wanted to do the same thing some time ago and ended up writing a little rtos to learn about the subject. maybe it will help you. the part that does the context switch is here.