Experience Embedded

Professionelle Schulungen, Beratung und Projektunterstützung

Embedded Software Design and Patterns with C - Live Online Training

Modern embedded systems with complex microcontroller and processor architectures incorporate more and more software that has to be planned and implemented faster than ever. System functions are increasingly shifted to software. Consequently, software has to be based on architecture and design. Today, you will use efficient software design methods with C-programming. In many cases, requirements need to be met which are subject to standards and safety-critical aspects. Real-time capability, reusability, adjustability to changing basic conditions and enhanced readability are key factors in software.

  • Inhalt
     
  • Ziele -
    Ihr Nutzen
  • Teilnehmer
     
  • Voraussetzungen
     

You get to know the programming principles and design patterns that are essential for embedded software development. You learn how to program them in C and use them in your projects.

You learn all about object-oriented programming and implementation, including state machines in C, and get familiar with the mechanisms of an embedded/real-time operating system.

This way, you can implement hardware drivers, interrupt concepts and callback structures in C.

The training "Embedded Software Design and Patterns with C" addresses programmers, software developers, software designers and software architects using C for embedded software applications

Knowledge of C programming is required; a basic knowledge of microcontrollers is of advantage.

Embedded Software Design - Introduction

  • Definition of software design
  • Integration in the development process
  • The role of a software designer

Object Orientation in C

  • Classes and objects
  • Relations: dependency, association, aggregation, composition, inheritance
  • Interfaces and virtual functions
  • Practical exercise: You design and implement classes and objects with different relations, execute them on an embedded target and test them. Each exercise will be part of the set-up of a measurement device application.

Select Design Principles Implemented in C

  • DRY, KISS, avoid premature optimization
  • SLA, SRP, dependency inversion
  • Principle of least surprise
  • Open/closed principle, Law of Demeter, YAGNI
  • Source code conventions, MISRA

Select Design Patterns

  • Software architecture patterns: layer, blackboard, pipes and filters, client server, model view controller (MVC), microkernel
  • Software design patterns: builder/manager, facade, strategy
  • Hardware access patterns: HW proxy, HW adapter, mediator, observer, debouncing, interrupt, polling
  • Safety and reliability, one's complement, CRC, smart data, channel, protected single channel, multi-channel (dual, triple), sanity check, monitor-actuator
  • Practical exercise: You use some of the above-mentioned patterns in the measurement device application

State Machines

  • Design
  • Implementation variants: switch-case, table, state pattern
  • Practical exercise: You design and implement the object-oriented state machine in the measurement device application

Operating System

  • Overview of mechanisms: task management, scheduler, synchronization, communication, resource management, time management, interrupt management, memory management
  • Practical example: Applying the mechanisms in the measurement device application

Callback Structures

  • Communication between architecture elements
  • Design rules
  • Synchronous, asynchronous
  • Callback structure procedural and object-oriented
  • Callback structure with and without operating system
  • Variation options
  • High-quality software architecture with callback structures
  • Practical exercise: You design and implement an object-oriented callback structure in the measurement device application

Hardware Driver Concepts and Interrupts

  • Architecture guidelines
  • Software layer patterns
  • Practical examples of software layer architectures
  • Object-oriented driver concepts
  • Interrupt handling
  • Practical tips: Standards and sources for driver concepts
  • Practical exercise: You design and implement a driver and the related driver access in the measurement device application

Select Refactorings in C

  • Preconditions for successful refactoring
  • Small steps, big steps
  • Smells
  • Refactoring patterns

Practical exercise

  • For the underlying practical exercise (measurement device application), you will use the Arm Keil MDK (microcontroller development kit) with real hardware based on an Arm Cortex™-M3 microcontroller.

MicroConsult PLUS:

  • We will provide you with a download link for your exercises and the solutions from this workshop.
  • You get all examples for C and UML models in electronic format and can easily adjust them to your development environment.
  • You moreover get a tool and software component overview for developing embedded software.
  • You get a helpful notation overview for UML.

Im Preis enthalten:
Trainingsdokumentation, Ihr Zertifikat sowie ggf. erforderliche Ziel-HW o.ä.


ALL INCLUSIVE!

Spätestens 3 Wochen vor Trainingsbeginn erhalten Sie eine verbindliche Durchführungsbestätigung.

Einige Tage vor dem Live-Online-Training erhalten Sie von uns E-Mails mit …

  • ausführlichen Infos rund um Ihr Training
  • Ihre Schulungsunterlagen (Download-Link)
  • einer Einladung zu einer optionalen Probesession mit dem Trainer
  • einer Einladung für die Schulungstage, mit Link und Zugangsdaten

Ggf. erforderliche Übungs-HW senden wir Ihnen rechtzeitig vorab zu.


ABLAUF

Verwandte Trainings

Embedded C Training: Programming Methods and Tools for Embedded Applications - Live Online Training
Anmeldecode: LE-EMB-C

Coaching: High-Quality Program Code
Anmeldecode: CE-QU-PRG


Verwandte Trainings

Live Online Training

Termin Preis *Dauer
24.06. – 27.06.20242.600,00 €4 Tage 
11.11. – 14.11.20242.600,00 €4 Tage 
31.03. – 03.04.20252.600,00 €4 Tage 
Anmeldecode: LE-ESD-C
* Preis je Teilnehmer, in Euro zzgl. USt.

> Download Blanko-Anmeldeformular
> Trainingsbeschreibung als PDF

Präsenz-Training - Englisch

Termin Dauer
09.09. – 12.09.2024 4 Tage  
27.01. – 30.01.2025 4 Tage  

Live-Online - Deutsch

Termin Dauer
24.06. – 27.06.2024 4 Tage  
11.11. – 14.11.2024 4 Tage  
31.03. – 03.04.2025 4 Tage  

Präsenz-Training - Deutsch

Termin Dauer
09.09. – 12.09.2024 4 Tage  
27.01. – 30.01.2025 4 Tage  

Embedded Software Design and Patterns with C - Live Online Training

Inhalt

Embedded Software Design - Introduction

  • Definition of software design
  • Integration in the development process
  • The role of a software designer

Object Orientation in C

  • Classes and objects
  • Relations: dependency, association, aggregation, composition, inheritance
  • Interfaces and virtual functions
  • Practical exercise: You design and implement classes and objects with different relations, execute them on an embedded target and test them. Each exercise will be part of the set-up of a measurement device application.

Select Design Principles Implemented in C

  • DRY, KISS, avoid premature optimization
  • SLA, SRP, dependency inversion
  • Principle of least surprise
  • Open/closed principle, Law of Demeter, YAGNI
  • Source code conventions, MISRA

Select Design Patterns

  • Software architecture patterns: layer, blackboard, pipes and filters, client server, model view controller (MVC), microkernel
  • Software design patterns: builder/manager, facade, strategy
  • Hardware access patterns: HW proxy, HW adapter, mediator, observer, debouncing, interrupt, polling
  • Safety and reliability, one's complement, CRC, smart data, channel, protected single channel, multi-channel (dual, triple), sanity check, monitor-actuator
  • Practical exercise: You use some of the above-mentioned patterns in the measurement device application

State Machines

  • Design
  • Implementation variants: switch-case, table, state pattern
  • Practical exercise: You design and implement the object-oriented state machine in the measurement device application

Operating System

  • Overview of mechanisms: task management, scheduler, synchronization, communication, resource management, time management, interrupt management, memory management
  • Practical example: Applying the mechanisms in the measurement device application

Callback Structures

  • Communication between architecture elements
  • Design rules
  • Synchronous, asynchronous
  • Callback structure procedural and object-oriented
  • Callback structure with and without operating system
  • Variation options
  • High-quality software architecture with callback structures
  • Practical exercise: You design and implement an object-oriented callback structure in the measurement device application

Hardware Driver Concepts and Interrupts

  • Architecture guidelines
  • Software layer patterns
  • Practical examples of software layer architectures
  • Object-oriented driver concepts
  • Interrupt handling
  • Practical tips: Standards and sources for driver concepts
  • Practical exercise: You design and implement a driver and the related driver access in the measurement device application

Select Refactorings in C

  • Preconditions for successful refactoring
  • Small steps, big steps
  • Smells
  • Refactoring patterns

Practical exercise

  • For the underlying practical exercise (measurement device application), you will use the Arm Keil MDK (microcontroller development kit) with real hardware based on an Arm Cortex™-M3 microcontroller.

MicroConsult PLUS:

  • We will provide you with a download link for your exercises and the solutions from this workshop.
  • You get all examples for C and UML models in electronic format and can easily adjust them to your development environment.
  • You moreover get a tool and software component overview for developing embedded software.
  • You get a helpful notation overview for UML.