Using C++ in Embedded Systems - Applying C++11/C++14 Training Course
This training intends to introduce C++ as the common extension of C when applying object-oriented embedded system development. Since C++ encloses C, this training takes us from C to C++ in a natural way, and looks under the hood of how C++ is implemented. This is especially valuable to comprehend when applying C++ in an embedded resource limited environment. The C++ standard has recently been undergoing a major revision, a.k.a. as C++11, and a new one is on its way, C++14. This course addresses subjects brought in with these revisions that are especially useful like high performance memory management, concurrency making use of a multicore environment, and bare-metal close to the hardware programming.
GOAL/BENEFITS
The major objective of this class is that you shall be able to use C++ in a “correct way”.
- Introduce C++ as an object oriented language alternative in an embedded system context
- Show the similarities ‑ and differences ‑ with the C language
- Comprehend different memory management strategies – especially the move semantics introduced with C++11
- Look under the hood and understand what different paradigms in C++ leads to in machine code
- Use templates to achieve type safe high order abstractions for bare-metal close to the hardware programming – memory mapped I/O as well as interrupts – especially the variadic templates introduced with C++11
- Provide some useful design patterns especially applicable in an embedded context
- A few exercises in order to practice some concepts
AUDIENCE/PARTICIPANTS
This training is aimed C++- programmers who intend to start using C++ in an embedded system context.
PREVIOUS KNOWLEDGE
The course requires basic knowledge in C++ programming, corresponding to our trainings ”C++ – Level 1” and ”C++ Level 2 – Introducing C++11”.
PRACTICAL EXERCISES
During the training you will practice the presented concepts in a number of exercises. We will use the open and free integrated development environment from Eclipse
Course Outline
- What’s an Embedded System?
- Simple Definition
- Some Milestones
- Characteristics
- Why using C++?
- Comparison with C
- C: A subset of C++ – almost
- Performance
- Added “Free” Functionality
- Why not using C++?
- Classes
- Member Variables
- Instance variables
- Class variables
- Member Functions
- Instance functions
- Class functions
- Implicit Methods
- Constructor
- Initialization
- Delegation
- Destructor
- Copy assignment operator
- Constructor
- Move Semantics – avoiding unnecessary deep copy
- struct in C++
- Package/Namespace
- Member Variables
- Inheritance
- Introduction
- Realization
- Performance
- Multiple Inheritance
- Virtual Inheritance
- Polymorphism
- Introduction
- Virtual Function
- Virtual Destructor
- Implementation
- Runtime Type Information, RTTI
- Performance
- Templates
- Introduction
- Function Template
- Class Template
- Variadic Templates
- Code Bloat
- Implementation Strategies
- Template Meta Programming
- Template versus Inheritance?
- Error Handling
- Exception Handling
- Performance Issues
- Implementation
- Inline Code
- When to Use?
- Strategies
- Start-up
- System Start-up
- The C Part
- The C++ Part
- Standard Library
- Standard Template Library, STL
- iostream Library
- Major extensions made on STL due to C++11:
- Move semantics
- Variadic Templates
- Concurrency
- Memory Management
- The C++ Memory Model
- The stdint-types
- Atomic types and their operations
- Strategies
- Variables
- Placement new
- User Defined Memory Management
- The C++ Memory Model
- Interoperation between C and C++
- Name Mangling
- Static Initialization
- Dynamic Memory
- struct Contents
- POD – Plain Old Data type
- Design Patterns
- RAII – Resource Acquisition Is Initialization
- Memory-mapped I/O
- Interrupt
- Initialization of Static Objects
Requirements
There are no specific requirements needed to attend this course.
Need help picking the right course?
Using C++ in Embedded Systems - Applying C++11/C++14 Training Course - Enquiry
Testimonials (2)
I enjoyed the time allocated for us to solve the exercices. This was very useful as it allowed us to spend some time thinking about our solutions and implementing them.
Valeriu - Siemens
Course - Using C++ in Embedded Systems - Applying C++11/C++14
The details on how compiler behaves depending on to the syntax usage. The "Quiz" sections are very stimulating
Andrea Pomatto
Course - Using C++ in Embedded Systems - Applying C++11/C++14
Upcoming Courses
Related Courses
Advanced Embedded Systems Development
35 HoursThis instructor-led, live training in China (online or onsite) is aimed at engineers who wish to learn how to use embedded C to program various types of microcontrollers based on different processor architectures (8051, ARM CORTEX M-3, and ARM9).
Arduino Programming for Beginners
21 HoursIn this instructor-led, live training in China, participants will learn how to program the Arduino for real-world usage, such as to control lights, motors and motion detection sensors. This course assumes the use of real hardware components in a live lab environment (not software-simulated hardware).
By the end of this training, participants will be able to:
- Program Arduino to control lights, motors, and other devices.
- Understand Arduino's architecture, including inputs and connectors for add-on devices.
- Add third-party components such as LCDs, accelerometers, gyroscopes, and GPS trackers to extend Arduino's functionality.
- Understand the various options in programming languages, from C to drag-and-drop languages.
- Test, debug, and deploy the Arduino to solve real world problems.
Buildroot: a Firmware Generator for Embedded Systems
7 HoursBuildroot is an open-source project that contains scripts that produce a cross-compilation toolchain, a customizable root filesystem image, and a Linux kernel for embedded devices. During this practical course, participants will learn how to use it:
- How to select software that goes into the root filesystem.
- How to add new packages and modify existing ones.
- How to add support for new embedded boards.
During the course, bootable filesystem images will be produced. Remote courses are delivered using the QEMU emulator, while in the classroom it is possible to use either QEMU or real embedded boards of the trainer's choice.
Other projects with similar goals include the Yocto project and OpenWRT. Please use these presentations to determine which one is the right choice for your needs.
Circuits and Electronics Fundamentals
14 HoursThis instructor-led, live training in China (online or onsite) is aimed at engineers and computer scientists who wish to apply the fundamentals of circuits and electronics to design devices and systems that utilize properties of electrical components for the development of hardware functionalities.
By the end of this training, participants will be able to:
- Set-up and configure the necessary tools and programs for circuits and circuit board development.
- Understand the basic principles behind circuits and electronics engineering.
- Utilize the primary electronic components in constructing efficient computer hardware technologies.
- Optimize electronic devices by implementing circuit analysis methods.
- Apply the fundamentals of electronics and circuits to the development of enterprise applications.
Digital Signal Processing (DSP) Fundamentals
21 HoursThis instructor-led, live training in China (online or onsite) is aimed at engineers and scientists who wish to learn and apply DSP implementations to efficiently handle different signal types and gain better control over multi-channel electronic systems.
By the end of this training, participants will be able to:
- Setup and configure the necessary software platform and tools for Digital Signal Processing.
- Understand the concepts and principles that are foundational to DSP and its applications.
- Familiarize themselves with DSP components and employ them in electronics systems.
- Generate algorithms and operational functions using the results from DSP.
- Utilize the basic features of DSP software platforms and design signal filters.
- Synthesize DSP simulations and implement various types of filters for DSP.
Embedded C Application Design Principles for Automotive Professionals
14 HoursA two day course covering all design principles with code examples coupled with recent industrial technology; very useful for automotive software developers
Embedded C Application Design Principles
14 HoursThis instructor-led, live training (online or onsite) is aimed at C developers wishing to learn embedded C design principles.
By the end of this training, participants will be able to:
- Understand the design considerations that make embedded C programs reliable
- Define the functionality of an embedded system
- Define the program logic and structure to obtain the desired result
- Design a reliable, error-free embedded application
- Obtain optimal performance from target hardware
Format of the Course:
- Interactive lecture and discussion
- Exercises and practice
- Hands-on implementation in a live-lab environment
Course Customization Options:
- To request a customized training for this course, please contact us to arrange.
Electronic Control Unit (ECU) - Practical Vector
28 HoursThis instructor-led, live training in China (online or onsite) is aimed at intermediate-level automotive engineers and technicians who wish to gain hands-on experience in testing, simulating, and diagnosing ECUs using Vector tools like CANoe and CANape.
By the end of this training, participants will be able to:
- Understand the role and function of ECUs in automotive systems.
- Set up and configure Vector tools such as CANoe and CANape.
- Simulate and test ECU communication on CAN and LIN networks.
- Analyze data and perform diagnostics on ECUs.
- Create test cases and automate testing workflows.
- Calibrate and optimize ECUs using practical approaches.
Electronic Control Unit (ECU) - Theoretical Vector
21 HoursThis instructor-led, live training in China (online or onsite) is aimed at intermediate-level automotive engineers and embedded systems developers who wish to understand the theoretical aspects of ECUs, focusing on Vector-based tools and methodologies used in automotive design and development.
By the end of this training, participants will be able to:
- Understand the architecture and functions of ECUs in modern vehicles.
- Analyze communication protocols used in ECU development.
- Explore Vector-based tools and their theoretical applications.
- Apply model-based development principles to ECU design.
FreeRTOS: Programming for Real Time Operating Systems
14 HoursIn this instructor-led, live training in China, participants will learn how to code using FreeRTOS as they step through the development of a simple RTOS project using a microcontroller.
By the end of this training, participants will be able to:
- Understand the basic concepts of real-time operating systems.
- Learn the environment of FreeRTOS.
- Learn how to code with FreeRTOS.
- Interface a FreeRTOS application to hardware peripherals.
Learning Vivado
14 HoursThis instructor-led, live training in China (online or onsite) is aimed at FPGA developers who wish to use Vivado to design, debug, and implement hardware solutions.
By the end of this training, participants will be able to:
- Develop HDL systems with C code and Vivado tools.
- Generate and implement soft processors in Vivado.
- Test and simulate C code using Vivado.
LEDE: Set Up a Linux Wireless Router
7 HoursThe LEDE Project (Linux Embedded Development Environment) is a Linux operating system based on OpenWrt. It is a complete replacement for the vendor-supplied firmware of a wide range of wireless routers and non-network devices.
In this instructor-led, live training, participants will learn how to set up a LEDE based wireless router.
Audience
- Network administrators and technicians
Format of the course
- Part lecture, part discussion, exercises and heavy hands-on practice
Deploying AI on Microcontrollers with TinyML
21 HoursThis instructor-led, live training in China (online or onsite) is aimed at intermediate-level embedded systems engineers and AI developers who wish to deploy machine learning models on microcontrollers using TensorFlow Lite and Edge Impulse.
By the end of this training, participants will be able to:
- Understand the fundamentals of TinyML and its benefits for edge AI applications.
- Set up a development environment for TinyML projects.
- Train, optimize, and deploy AI models on low-power microcontrollers.
- Use TensorFlow Lite and Edge Impulse to implement real-world TinyML applications.
- Optimize AI models for power efficiency and memory constraints.
Yocto Project
28 HoursIn this instructor-led, live training in China, participants will learn how to create a build system for embedded Linux based on Yocto Project.
By the end of this training, participants will be able to:
- Understand the fundamental concepts behind a Yocto Project build system, including recipes, metadata, and layers.
- Build a Linux image and run it under emulation.
- Save time and energy building embedded Linux systems.