Hierarchical State Machines Masterclass - From the Ground Up to Production
Build a hierarchical state machine in embedded C and verify its behaviour with a golden trace.
About this course
The course starts with problems that arise as flat state machines grow and shows how a statechart can share behaviour across related states. It connects state definitions and event dispatch to a small C framework.
You’ll implement the model and dispatch logic, exercise a debounced button application on the target, and inspect the resulting golden trace.
Read moreShow less
What you’ll be able to do
Explain hierarchical state-machine behaviour
- Describe why duplicated transitions accumulate in large flat state machines.
- Explain how state nesting lets a parent handle events that a child leaves unhandled.
- Describe the roles of state handlers, return codes, and the event dispatcher.
- Distinguish transitions, internal events, and entry or exit actions.
- Explain how a state catalogue and event dictionary keep a model consistent.
- Describe how a golden trace helps verify an event-driven implementation.
Build and verify a hierarchical firmware model
- Define state and event types, an event dictionary, and model invariants in C.
- Implement the dispatcher and the state-handler return codes.
- Implement top, running, idle, debounce, and pressed states.
- Connect periodic tick and button-edge events to the application.
- Build and test the state machine on the development target.
- Capture and analyse the golden trace and use it to check the model.
Course curriculum
Hierarchical State Machines Masterclass - From the Ground Up to Production
Develop HSM driven firmware in embbedded C with enterprise rigor - MISRA practice, deterministic logs, and golden traces.
Watch Promo
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.