[HN Gopher] Rust on Embedded: How we monitor our battery storage...
       ___________________________________________________________________
        
       Rust on Embedded: How we monitor our battery storage systems
        
       Author : michidk
       Score  : 8 points
       Date   : 2024-02-20 20:48 UTC (2 hours ago)
        
 (HTM) web link (blog.lohr.dev)
 (TXT) w3m dump (blog.lohr.dev)
        
       | jauntywundrkind wrote:
       | There's so much good embedded OS work happening. These Bluetooth,
       | wifi, matter problems? Pretty well tackled by Zephyr & others.
       | 
       | It'll be interesting to see if "rewrite it in Rust" really can
       | re-do all these efforts satisfactorily. Or to see how Rust & C
       | interop goes (as Linux is doing). Or whether Rust remains useful
       | & awesome on embedded if and only if you don't need complex
       | protocols and device drivers.
        
         | tonyarkles wrote:
         | > Pretty well tackled by Zephyr & others
         | 
         | Yeah, we started using Zephyr about a year ago at work and
         | while it hasn't been seamless it has been pretty darned
         | awesome. One of the more interesting outcomes is that, more
         | often than not, we've shifted from "lots of stupid easy bugs"
         | to a smaller handful of "tricky to debug" bugs, around half of
         | them being actual hardware issues and not strictly code issues.
         | One of the most amazing things has been being able to take the
         | same firmware code and run it on our v1 production board using
         | a Cortex M0 and on our v2 prototype board using a Teensy v4.1
         | Cortex M7 board and all we really needed to do was modify the
         | devicetree to remap which peripherals and pins were connected
         | to the rest of the hardware. Amazing!
         | 
         | One of my coworkers has started using Rust on a personal
         | embedded project (on an STM32 processor of some kind). Once
         | we're done this current prototype cycle I want to sit down with
         | him and see what he's got figured out. Seems like a cool place
         | for Rust and all of the memory safety goodness.
        
       ___________________________________________________________________
       (page generated 2024-02-20 23:01 UTC)