Hierarchical State Machines Masterclass for Embedded C++
Develop HSM driven firmware in embedded C++ with enterprise rigor - CRTP micro-kernel, MISRA C++ practice.
About this course
Use hierarchical state machines to organise event-driven firmware in bare-metal C++. Replace a flat switch-based design with a statechart that makes transitions, guards, and entry and exit actions explicit.
Implement the statechart with a small CRTP-based kernel, static interfaces and type-safe register access. Record state and event definitions, invariants and expected traces so other engineers can review the design and check its behaviour against the firmware.
Read moreShow less
- Build the same professional statechart designs you learned in embedded C, but with embedded C++ that reduce code size, lift clarity, and keep performance.
- Master a CRTP based HSM microkernel, RAII style register guards, constexpr utilities, and type safe bit operations - all without heap, exceptions, or RTTI.
- Present enterprise grade artifacts that auditors understand: model tables, invariants, golden traces, and deterministic logs, now backed by clean embedded C++ architecture.
- A header only CRTP HSM microkernel in C++ that enforces run to completion plus ENTRY and EXIT actions.
- Modern C++ bare metal techniques:
- End to end artifacts identical to the C track - State Catalog, Event Dictionary, Transition Table, Invariants, Golden Traces - with C++ specific examples and reviews.
- Convert a switch case FSM into a hierarchical, testable design in C++ with logs that prove behavior.
- Explain, with code and traces, why a transition occurs and what is set up on ENTRY and torn down on EXIT.
- Show maintainers a small, readable HSM core with strong typing and compile time checks that prevent entire classes of defects.
What you’ll be able to do
Explain hierarchical state machines
- Explain how hierarchy groups behaviour shared across related states.
- Trace an event through guards, transitions, and exit and entry actions.
- Describe what run-to-completion means for event dispatch.
- Explain how CRTP supports static dispatch on a resource-constrained target.
- Identify where type-safe register interfaces and compile-time configuration enforce constraints.
- Explain how invariants and golden traces make a statechart reviewable.
Implement and verify a statechart
- Refactor a switch-based state machine into a hierarchical C++ design.
- Implement event dispatch using the header-only state machine kernel.
- Define statically dispatched guards and entry and exit actions.
- Write constexpr masks and use typed register access in state actions.
- Document states, events, transitions and invariants for the firmware.
- Capture deterministic traces and compare them with expected transitions.
Hierarchical State Machines Masterclass for Embedded C++
Develop HSM driven firmware in embedded C++ with enterprise rigor - CRTP micro-kernel, MISRA C++ practice.
Watch Promo
- Build the same professional statechart designs you learned in embedded C, but with embedded C++ that reduce code size, lift clarity, and keep performance.
- Master a CRTP based HSM microkernel, RAII style register guards, constexpr utilities, and type safe bit operations - all without heap, exceptions, or RTTI.
- Present enterprise grade artifacts that auditors understand: model tables, invariants, golden traces, and deterministic logs, now backed by clean embedded C++ architecture.
- A header only CRTP HSM microkernel in C++ that enforces run to completion plus ENTRY and EXIT actions.
- Modern C++ bare metal techniques:
- End to end artifacts identical to the C track - State Catalog, Event Dictionary, Transition Table, Invariants, Golden Traces - with C++ specific examples and reviews.
- Convert a switch case FSM into a hierarchical, testable design in C++ with logs that prove behavior.
- Explain, with code and traces, why a transition occurs and what is set up on ENTRY and torn down on EXIT.
- Show maintainers a small, readable HSM core with strong typing and compile time checks that prevent entire classes of defects.
Frequently Asked Questions
Your Instructor
EmbeddedExpertIO represents a vibrant collective dedicated to the mastery of sophisticated embedded systems software development for professionals.
Our core objective is to equip individuals and organizations with the indispensable skills to thrive in the swiftly evolving embedded systems sector. We achieve this by providing immersive, hands-on education under the guidance of seasoned industry specialists. Our ambition is to emerge as the favored learning platform for embedded systems development professionals across the globe.