The subconscious mumblings of therealprof https://therealprof.github.io/ Everything you ever wanted to know about electronics, embedded programming, Rust and life in general... Zola en Mon, 07 Sep 2020 00:00:00 +0000 Rust Roadmap 2021: Adding a useful dev mode and making it the default Mon, 07 Sep 2020 00:00:00 +0000 https://therealprof.github.io/blog/roadmap-2021-usable-dev-mode/ https://therealprof.github.io/blog/roadmap-2021-usable-dev-mode/ <p>In this blog entry following the <strong><a href="https://blog.rust-lang.org/2020/09/03/Planning-2021-Roadmap.html">Call for Rust 2021 Roadmap items</a></strong>, I shall layout my vision for giving Rust the ability to create debuggable binaries which will also fit in the flash of a microcontroller.</p> Rust Roadmap 2021: Allowing for arbitrary size integer primitives Sun, 06 Sep 2020 00:00:00 +0000 https://therealprof.github.io/blog/roadmap-2021-arbitrary-size-primitives/ https://therealprof.github.io/blog/roadmap-2021-arbitrary-size-primitives/ <p>In this blog entry following the <strong><a href="https://blog.rust-lang.org/2020/09/03/Planning-2021-Roadmap.html">Call for Rust 2021 Roadmap items</a></strong>, I shall layout my vision for giving Rust the ability to use arbitrarily sized integer primitives.</p> Revamping Rust Embedded Error Handling - a case for embedded-error Mon, 24 Aug 2020 00:00:00 +0000 https://therealprof.github.io/blog/revamping-rust-embedded-error-handling/ https://therealprof.github.io/blog/revamping-rust-embedded-error-handling/ <p>In this blog post we'll have a look at error handling in Rust embedded scenarios. How does this work at the moment, what are the user expectations and what can we do to make error handling future proof?</p> Introducing: The USB-C pill Sat, 15 Aug 2020 00:00:00 +0000 https://therealprof.github.io/blog/usb-c-pill-part1/ https://therealprof.github.io/blog/usb-c-pill-part1/ <p>In this blog entry I will explore a new excellent and cheap embedded hardware board I came across in the context of embedded Rust. This is done in the hope that people will jump on it and drop the crapadelic boards known as &quot;BluePill&quot; like a hot potato.</p> A look into ways to implement and share data with interrupt handlers in Rust (Update 1) Sat, 29 Feb 2020 00:00:00 +0000 https://therealprof.github.io/blog/interrupt-comparison/ https://therealprof.github.io/blog/interrupt-comparison/ <p>In this blog entry I will explain a bit what interrupts are and they work in embedded systems and compare various interrupt implementation and sharing methods in Rust.</p> <p><strong>Update 2020-03-06:</strong> @jamesmunns has provided a new version of <a href="https://crates.io/crates/cmim">cmim</a> which allows to use the <code>SysTick</code> exception and an adaption of the example for it so I updated this post accordingly.</p> Converting an Embedded HAL impl from digital::v1 to digital::v2 traits Thu, 03 Oct 2019 00:00:00 +0000 https://therealprof.github.io/blog/digital-v1-to-digital-v2/ https://therealprof.github.io/blog/digital-v1-to-digital-v2/ <p>A while ago people had the idea to introduce fallible traits for GPIO pin to allow the implementation of virtual pins and port expanders. In this blog I'm demonstrating how to convert an existing implementation to the <code>v2</code> version of the traits.</p> A deeper look into embedded-bridge with an example Mon, 26 Aug 2019 00:00:00 +0000 https://therealprof.github.io/blog/embedded-bridge-part-2/ https://therealprof.github.io/blog/embedded-bridge-part-2/ <p>In the previous part I introduced the concept of <a href="https://github.com/therealprof/embedded-bridge">embedded-bridge</a>. Now let's dive a little bit deeper and have a look at a real life example.</p> Introduction into a new approach to develop with and for embedded devices Fri, 23 Aug 2019 00:00:00 +0000 https://therealprof.github.io/blog/embedded-bridge-part-1/ https://therealprof.github.io/blog/embedded-bridge-part-1/ <p>Maybe you've wondered whether there was a simpler way to prototype with MCUs or or interface with typical MCU peripherals in a simpler way than the usual code (even in the slightly more complicated <strong>no_std</strong> flavour), program, debug, test cycle. Wonder no more because now there's a approach on the horizon and this first article will explain the concept behind that...</p> A closer look at the E32-868T20D LoRA Module with UART interface Tue, 06 Aug 2019 00:00:00 +0000 https://therealprof.github.io/blog/e32-868t20d/ https://therealprof.github.io/blog/e32-868t20d/ <p>I've recently set up a gateway for <a href="https://www.thethingsnetwork.org/">The Things Network</a> and to spice things up a bit a was looking into possibilities of hooking up some microcontroller based board to it. So it started to look into options how to make this happen.</p> Welcome Mon, 05 Aug 2019 00:00:00 +0000 https://therealprof.github.io/welcome/ https://therealprof.github.io/welcome/ <h2 id="what-s-this-again">What's this again?</h2> <p>Welcome to yet another attempt to establish a blog type format about everthing embedded, electronics and of course Rust.</p> <p>I'll probably bring some of the previous content over for good measure but content gets outdated so fast it's not funny anymore. I guess, I'll have to just come up with new content. ;)</p> <h2 id="license">License</h2> <p>The content of this block is &quot;licensed&quot; under the terms of the <strong>unlicense</strong>, which I'll put here in its entirety for your enjoyment:</p> <pre><code>This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law. THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. For more information, please refer to &lt;http:&#x2F;&#x2F;unlicense.org&gt; </code></pre> <p>Please enjoy...</p>