Just digged up

Welcome to MolesBlog.

In my first post, I want to introduce to you, who am I and why I started this blog.

I’m a professional elelctronics engineer, never getting enough from hardware, software, IT, … everything that has to do with creativity and technology is a good candidate to attract me 😉

I started my experience around 30 years ago, when I was a child. 1987 I got a Commodore C64 and a few electronics construction kits from my uncle, including a soldering iron. This made me locking myself in the garage for weeks. I soon blew away the CIA of the so called User-Port (max output current is 2mA) of the C64 with my first clavilux LED (drawing 20mA) experiments and soon, beside going to school, I spent most of my time in my garage, sometimes together with friends having the same interrests. This was the starting point of my career, leading to a diploma degree in electronics engineering with a great emphasis on VHDL, software in general and open source in particular.

During the last years, I realised that engineering has a lot of best practices, but hardly anybody is doing it with heart and soul. Many projects, independent from the company’s industry, either rule their developers with strict processes or give them plenty of rope. Neither plenty rope, nor strictness leads to high quality software. This I encountered many times with brownfield projects I need to take as a base for my developments.

But even when I got a greenfield project (not yet happened in my business career, only with private projects), it is hard to find some guideline, how quality assurance works best and makes fun. There are too many pitfalls and time wasting hurdles to not being forced to take some shortcut, always guiding you to a messy product, lacking real software quality. This always leads to dissatisfaction. Sometimes you just skip the testing, sometimes the toolchain effectively resists to play well or at all in a continuous integration environment. This mostly applies to very expensive commercial toolchains in my experience.

The most important question seems: Who else should back the quality of software, hardware and embedded systems, if not professional developers, engineers or technology addicted people like me and possibly you? Your boss, your project manager? Most probably some (so called) quality engineer, if he/she has time or exists at all. Regarding to SCRUM (which does not define a Project Manager and a quality engineer), the responsibility for quality belongs to the development team, not anybody else. This means, YOU, the developer is totally responsible and always needs to fight against commercial demands from the product management.

Another question simply is: Does it give you satisfaction to write bad code, hunt silly bugs or getting an „enema“ from your boss because of bad quality?

Welp, would you like to be satisfied about your work? Could quality lead to this satisfaction?

From my experience in various projects, a good starting point to get satisfaction (and quality) are the following rules:

  • Try to be the best in your class – You are a professional, then be one. If you order a mason, you expect he uses a mason’s level and delivers extraordinary quality. With software, customers usually don’t see „your work“, but your colleauges and yourself do. Apart from this, it is simply awkward if customers experience a lot of bugs.
  • Keep yourself up-to-date – Read blogs, magazines, books and watch videos about your profession. Especially with technology, you can not expect the world keeps as it is until you retire.
  • Review your work and yourself – One of the most important things is review and retrospection. Look back on your work and yourself and always ask, what could have been done better.
  • Keep human 🙂 – Take advantage of not working on your own. Your teammates are also professionals and have deeper knowledge in some parts than you. Trust them, talk to them and work together to get the most out of your project and life.

These are only a few thoughs to prepare the base for being a responsible and accountable development team. BTW, SCRUM already introduces some of these concepts as a part of it’s process.

I’m happy to receive responses about my statements above and I’m also interested in topic suggestions for future posts.

In my following posts, I plan to write about the STM32 test driven development (TDD) process, I currently try to establish, using unit tests and a CI to ensure a high quality and about how it is to (try to) be a Clean Code Developer (CCD).

Best Regards,
Daniel /themole

Getting Started Embedded – Part II – The Embedded Project

Start embedded projects in an ordered way using the right tools

For many people, „project“ is a mysterious word and everybody understands something different about it. Sales department has a totally different understanding than engineers. Engineers see it quite similar to software developers, but there are facets their opinion differs. Just take a minute to think about what a project means to you.

So, after you got your own opinion, let’s first define, what a project means to me. At first it means nothing more than a vision, e.g. a customer’s product idea, to talk about. And with every vision, everybody has an individual understanding of it in the beginning.

The Information Collection Project

Welp, what is that? It has at first nothing to do with software, hardware or an embedded project. We start to collect information. Since we are living in the 21st century, we try to avoid using paper and put everything into „the cloud“. One way to organize such information is putting everything into a MS Word document… OK, this was a joke 🙂

I tend to use „the Atlassian tools“ (Jira, Confluence, Bitbucket) for that purpose. Not that I receive any revenue for that, but I did not find anything that can compete with it at the moment… Most important in my opinion at this stage is Confluence. But to start a „Space“ in Confluence, the more effective workflow is to start with a Jira project (again this word…).

If you create a Jira project, I suggest you use a template that contains user stories and bugs (e.g. Scrum or Kanban), and then add issue types (Tutorial) for requirements and impediments. Don’t try to optimize the workflow for every issue type, during the project is the perfect time to do it.

Now create a new Confluence space (Software Project Space template) and link it to your just created Jira project. This space is the container for all relevant project information. Neither is Jira only suited for software projects, nor is Confluence (with this software template). In fact, you can drive anything with it efficiently. I love it to steer my renovation projects around my house with it. (Yes, I’m a nerd 🙂 !) This is not classical project management with a tight schedule, it is simply collecting issues, linking them and pick them according to their priority and dependencies.

For those old stagers around us and for those new to agile principles or just interested people, I would recommend to have a look into Design Thinking. It gives you some ideas on how to collect the relevant information, define stakeholders,…

The Vision

One of the most important things, before we can talk about „the project“, we need to get a common understanding, what the inventor of that vision had in mind. If, and only if, the vision can be realized with hard- and software, we have an embedded project starting and many developers already have an idea, how it can be „solved“ as a collection of electronic parts and code. But this is the „solve a problem“ approach (engineers like that) to start a project, but very often not leading to customer’s satisfaction. We will start differently…

To get a common understanding, it is necessary to talk about the system’s requirements, making the vision more clear to all involved parties. At this point, it is the right time, to list possible stakeholders and the users of the potential product. Don’t forget to create meeting notes and other pages about your findings in Confluence and put every requirement into your Jira project. In Confluence you can create a nice page with a Jira-Table-Macro collecting requirements and also grouping them with filters for different stakeholders. You can use tags for that purpose or, even better, create Jira Service Desk accounts for your stakeholders (saving the costly developer accounts). For sure that requires the Jira Service Desk add-on (the smalles 3-Agent-Version should serve very well even for projects).

During this time of user and stakeholder analysis, the vision becomes more clear and a common understanding settles. Still it is not the time to carve the solution in stone, like many engineers/developers tend to (again, this is what they love). The vision will still evolve during „the project“ and also system requirements will do. Now it’s time for personas and use cases, to get an even better common understanding.

Use Cases

When we talk about use cases, we often only talk about users or customers of the end product. But you should never forget the other stakeholders. Even the development team can be a stakeholder, because they (in an agile environment) should be the responsible for quality and they for sure have specific requrements regarding QA (Quality Assurance, e.g. testing). BTW: Don’t forget a UART port in your hardware requirements if you go with headless embedded system. Otherwise the developers will kill you instantly when they move from eval board to prototype hardware.

If you have some uses cases collected, hopefully a few for every stakeholder, it’s time to move on. Don’t try to finalize the list, you will fail! It is much better to keep in mind, that the list will still evolve and steer your project to be agile. Try to prioritize them together with all stakehoders. Invite some avatars, if stakeholders can not be included (e.g. real end customers). Here personas come get handy.

The Project’s Disciplines

The list of requirement typed issues in Jira should be already extend across some pages and you identified the ones with most impact on your system design. Now the paths will split, depending on the resulting product. If it has some GUI, like many HMI projects tend to have nowadays, you should get some experienced Design Thinking engineer that possibly starts with paper prototypes or even more wired stuff. But this is not the focus of this post…

We know should define a few components. At first HW, SW and possible ME (Mechanical Engineering) will serve well. We can put more granularity in later on. Now try to assign your requirements to these components. If you did this, let the engineers of these disciplines have a look on every requirement that belongs to their component and let them comment on their understanding. Pull in the stakeholders (or their avatars) again to dicuss the requirements, should something be unclear.

Thougts about the Software Project

Now it is time to start the software project, isn’t it? Well, if you can tell, what a software project is! No, I don’t talk about the „Create project…“-button of your IDE. First we need to step back quite some distance to get a better overview on it.

We already defined some requirements above and assigned them components. The ones tagged with the SW-Component are the base for our user stories. Maybe we already defined some of them when we talked with the stakeholders, but now it’s time to check, if we have important requirements left, that have not been addresses by a story. But collecting these stories is another topic, we will not address in this post…

So, why I’m talking about that…? Because there should be some requirements and stories hanging around, that could conflict with the tools (and IDEs) we tend to use. If you are using e.g. Keil µVision and your have the requirement to do intensive testing (e.g. because there is some SIL-level required), then you should definitely rethink your decision using this IDE. Or if a customer requires a close feedback loop and high delivery rates (daily in extreme situations), then you need some continuous integration pipeline, which is hard to establich using GUI-driven IDEs.

Let me give an example. You have a project with many parties involved (maybe different companies in extreme). Think of a smart home system. Different companies design the sensor nodes, another the central (headless) unit, you design the HMI-unit and another company designs the GUI using a propritary tool for GUI design, sending you some pieces of API code and some static libraries to be linked in. You get a delivery every week and need to integrate it. The customer wants to test the new functionality of the GUI’s HMI (e.g. this week switch on light) as soon as possible. Many of the new functionalities and bug fixes from the GUI do not need your intervention, because they do not affect the API between embedded system and GUI. But not having an automated CI pipeline requires you to integrate the new GUI in your IDE and test it with every week’s delivery MANUALLY! I would hate your job from the bottom of my heart!

But you are an engineer and you love to solve problems immediately. Don’t make a project out of it, just raise an impediment (use this issue type in Jira) and find people to help solving it (Scrum-Master for communications and mental support, your boss for budget, IT employee for Jenkins,…).

The essence of this example is: If there are large parts of the development that could be automated using other tools (ot toolchains), start today changing your tools. Engineering should not consist of repetitive tasks, it should challenge your creativity with new tasks every week, every day,… every second. Switch over to CI and TDD, there is nothing giving you more satisfaction in your daily job as a software engineer. When mentioning TDD, already a few years old, but still very valueable is James W. Grenning’s book Test-Driven Development for Embedded C.

So before you start, choose the right toolchain. I highly recommend using GCC together with Eclipse and/or Makefiles. Why? Because it is platform independend, can be automated (even headless) and does not require a license. The licensing problem is not about the price, it is about the problem that you need one with anything or anybody involved in the development process. Even your Jenkins host needs a license, when you use commercial tools. And requiring a license makes it nearly impossible to spin up a fresh docker container for running a build. So, don’t shut the door on amazing technologies you don’t know yet but could make your life easier, like the wheel did six thousand years ago.

What’s next…?

In this post, I talked about starting an embedded project. Next post will be about starting the (non-GUI) embedded software of it.

Cookie Banner von Real Cookie Banner