The Embedded Rust Book
I would absolutely <i>love</i> to throw my lot down behind something other than C&#x2F;C++ for embedded development, but after investigating Lua and Rust I could only come to the conclusion that they&#x27;re currently inappropriate for resource constrained commercial development... particularly if you use a broad range of sensors, have higher-level protocol communication requirements, etc. Re-implementing this stuff isn&#x27;t just a minor drag, it&#x27;s commercial insanity.<p>1. Example hardware in this book costs around 98RMB and has a huge form factor. AVR &#x2F; ATmega328P based platforms like Arduino Nano are currently ~10RMB, which can be beefed up to full ethernet connectivity with prebuilt hardware modules for another 20RMB. So in short it is possible to procure over three(!!!) embedded, ethernet capable AVR platforms for the same price as this hardware, no soldering required. Why not use something cheaper and more broadly available? It would help more people get on board (no pun intended). Oh wait, there&#x27;s no AVR support. I see...<p>2. The nominal target hardware in the book seems overpowered&#x2F;overpriced&#x2F;out of date. For example, the target used in the early book is LM3S6965, which is NRND (Not Recommended for New Designs). Probably as a result of NRND status (I guess people buying up stock to keep old designs in manufacturing) it costs over 125RMB for the chip alone. The manufacturer&#x27;s recommendation for replacement is TM4C12x, the cheapest development board for which is MINI-M4FORTIVA @ 22RMB (which features JTAG). ICs in this series begin at 22RMB or so, still many times AVR chip price, and with IMHO far too much hardware for novices (64KB flash, 12KB RAM, 12x12bit ADC channels, 49+ GPIO channels...). A direct quote from later in the book is <i>In this example, let&#x27;s assume we have an Texas Instruments TM4C123 - a middling 80MHz Cortex-M4 with 256 KiB of Flash.</i> That&#x27;s not middling, that&#x27;s ridiculously overpowered for almost anything embedded.<p>3. See example code at <a href="https:&#x2F;&#x2F;rust-embedded.github.io&#x2F;book&#x2F;start&#x2F;registers.html" rel="nofollow">https:&#x2F;&#x2F;rust-embedded.github.io&#x2F;book&#x2F;start&#x2F;registers.html</a> and compare C and Rust <i>Volatile Access</i> examples at <a href="https:&#x2F;&#x2F;rust-embedded.github.io&#x2F;book&#x2F;c-tips&#x2F;index.html" rel="nofollow">https:&#x2F;&#x2F;rust-embedded.github.io&#x2F;book&#x2F;c-tips&#x2F;index.html</a> and see which syntax you prefer...