Embedded systems have become increasingly popular in the last two decades, thanks to the technological progress made by microelectronics manufacturers and designers, aimed at increasing the computing power and decreasing the size of microprocessors' and peripherals' logic.
Designing, implementing, and integrating the software components for these systems requires a direct approach to the hardware functionalities in most cases, where tasks are implemented in a single thread and there is no operating system to provide abstractions to access CPU features and external peripherals. For this reason, embedded development is considered a domain on its own in the universe of software development, where the developer's approach and workflow need to be adapted accordingly.
This book briefly explains the hardware architecture of a typical embedded system, introduces tools and methodologies to get started with development of a target architecture, and then guides the readers through the interaction with system features and peripheral interaction. Some areas, such as energy efficiency and connectivity, are addressed in more detail to give a closer view of the techniques used to design low-power and connected systems. Further on, a more complex design, incorporating a (simplified) real-time operating system, is built from the bottom up, starting from the implementation of single system components. Finally, an overview of valid existing open source operating systems designed for embedded devices is provided, including considerations about their internal implementation and indications about their ideal fields of application.
The discussion is often focused on specific security and safety mechanisms, by suggesting specific technologies aimed at improving the robustness of the system against programming errors in the application code, or even malicious attempts to compromise its integrity.
Most of the content of this book has been addressed to software developers and designers with experience in different fields, who are willing to learn about embedded systems.
Beginners and less experienced embedded programmers can extend their knowledge in specific areas of development.
More experienced embedded software engineers might be inspired by the discussion points raised in the book, particularly about safety, secure connectivity, and energy efficiency for the next generations of embedded systems.
Chapter 1, Embedded Systems – A Pragmatic Approach, is an introduction to microcontroller-based embedded systems.
Chapter 2, Work Environment and Workflow Optimization, describes the tools used and the development workflow.
Chapter 3, Architectural Patterns, is about strategies and development methodologies for collaborative development and testing.
Chapter 4, The Boot-Up Procedure, analyzes the boot phase of an embedded system, boot stages, and bootloaders.
Chapter 5, Memory Management, suggests optimal strategies for memory management.
Chapter 6, General-Purpose Peripherals, describes access to GPIO pins and other generic integrated peripherals.
Chapter 7, Local Bus Interfaces, guides the reader through the integration of serial bus controllers (UART, SPI, I2C).
Chapter 8, Low-Power Optimizations, explores the available techniques of reducing power consumption on energy-efficient systems.
Chapter 9, Distributed Systems and IoT Architecture, introduces the available protocols and interfaces required to build distributed and connected systems.
Chapter 10, Parallel Tasks and Scheduling, explains the infrastructure of a multi-tasking operating system through the implementation of a real-time task scheduler.
Chapter 11, Embedded Operating Systems, is an overview of the available open source operating systems for the embedded world, focusing on the safety and security mechanisms implemented.
- It is expected that the reader is proficient in the C language and understands how computer systems work
- A GNU/Linux development machine is required to apply the concepts explained
- Going through the example code provided is sometimes necessary to fully understand the mechanisms implemented
- The reader is encouraged to modify, improve, and reuse the examples provided, applying the methodologies suggested
You can download the example code files for this book from your account at www.packtpub.com. If you purchased this book elsewhere, you can visit www.packtpub.com/support and register to have the files emailed directly to you.
You can download the code files by following these steps:
- Log in or register at www.packtpub.com.
- Select the
SUPPORT
tab. - Click on
Code Downloads & Errata
. - Enter the name of the book in the
Search
box and follow the onscreen instructions.
Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:
- WinRAR/7-Zip for Windows
- Zipeg/iZip/UnRarX for Mac
- 7-Zip/PeaZip for Linux
The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/Embedded-Systems-Architecture. In case there's an update to the code, it will be updated on the existing GitHub repository.
We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. You can download it here: https://www.packtpub.com/sites/default/files/downloads/EmbeddedSystemsArchitecture_ColorImages.pdf.
There are a number of text conventions used throughout this book.
code_in_text
: Indicates code words in text, folder names, filenames, file extensions, pathnames, user input, and interaction with the command console. Here is an example: "Compile the source file, hello.c
, to produce the executable."
A block of code is set as follows:
#include <stdio.h> int main(void) { printf("Hello, world!"); return 0; }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
CFLAGS=-Wall hello.o: hello.c gcc -c -o $(@) $(^) $(CFLAGS)
Any command-line input or output is written as follows:
$ gcc -c -o hello.o hello.c $ make clean
Commands for the debugger console are written as follows:
> add-symbol-file app.elf 0x1000
> bt full
Bold: Indicates a new term, an important word, or words that you see onscreen.
Feedback from our readers is always welcome.
General feedback: Email [email protected]
and mention the book title in the subject of your message. If you have questions about any aspect of this book, please email us at [email protected]
.
Errata: Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you have found a mistake in this book, we would be grateful if you would report this to us. Please visit www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details.
Piracy: If you come across any illegal copies of our works in any form on the Internet, we would be grateful if you would provide us with the location address or website name. Please contact us at [email protected]
with a link to the material.
If you are interested in becoming an author: If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, please visit authors.packtpub.com.
Please leave a review. Once you have read and used this book, why not leave a review on the site that you purchased it from? Potential readers can then see and use your unbiased opinion to make purchase decisions, we at Packt can understand what you think about our products, and our authors can see your feedback on their book. Thank you!
For more information about Packt, please visit packtpub.com.