Still alive and kicking. And with another year in my back in Embedded Development.
My recent tamperings have been about creating a bootloader for a Cortex-M0 µ-processor that performs firmware update either from UART or SPI.
There was a interesting bit on how to set-up the system to have two Firmwares running (Boot Mode and application mode). And that is what I’ll explain in this post. How to set up a project to build a boot and successfully run your main application.
Boot me up
Filed under code, electronic
Unit testing is something that lots of developers are used to, and in environments like Python or Java can be even bundled in some awesome libraries. Easy to use, easy to implement, great results.
Then it comes C Embedded: The environment is different, even the people is different!!. Praising the benefits of unit testing is not that easy sometimes, even writing the unit test functions is not as straigtforward.
In this post, I’ll talk about Unity, a small unit test library for C.
See how we test
What to say about Hyperion.
It’s a Sci-Fi book about 7 pilgrims with 6 stories in it. (Yes, there’s a story missing there, that’s not a typo).
I have this book since 2014 but I did not dare to start it until recently. I excuse myself telling people that it is a long book about weird tales, but there’s no excuse, you should recommend this book to everyone, sci-fi lover or not.
The different narrations range from impressive to breath taking, I don’t think I’ll ever forget Father’s Duré notes, or Weintraub’s sad account of his family’s misery. All the other are also well told, but as it happens, everybody will remember their favourites. Sometimes seems that Simmons gets over the top, but those are minor flops easy to forget.
Be warned though, you may feel swindled when finishing it. Every pilgrim is set off to meet a mysterious god-like machine called the Shrike, but the book does not revolve around this adventure, but on the backgrounds of the pilgrims. So, at the end of the book, you know the same things that you knew back when you started sort of.
Don’t forget that there’s a second book “The fall of Hyperion” (I’m reading right now), that may solve some of the mysteries presented here.
A simple post on how to configure a Logitech Trackman Marble on GNU/Linux. This post is tested on Ubuntu but since this is Xorg configuration it should be usable almost everywhere.
I discovered XCircuit when looking for an easy and quick way to generate a schematic.
Since I am not going to simulate it, it would be enough to have a vector design program like Inkscape, but it’s never too late to learn a tool that may prove useful in the future.
There are other bigger, better, stronger EDA tools: Geda, KiCAD, EagleCAD… but I settled for something designed for publications.
(…)program for drawing publishable-quality electrical circuit schematic diagrams and related figures(…)
— XCircuit website
In this post you’ll find a quick overview of XCircuit, and how to create a module with it.
One of the main functionalities of the clock will be… suprise surprise, keep track of time!
For this task we’ll interface with a DS1307 RTC using the RTClib. You can just include that library and forget how it works. But that’s not the way this blog works. Let’s dive a little deeper.
How arduino RTClib works