u/active-objectin r/embedded • Recommends
On “Do you use HSM (Hierarcical State Machines)?”
#hierarchicalstatemachines#uml#qp/c
74K subscribers • 20 videos on Hallway
Intermediate. Assumes working knowledge.
19K views5 years ago1 recommendation
Systems programmingSoftware designEmbedded systemsDesign patternsSoftware architecture
Miro Samek explains the execution semantics and transition behaviors of hierarchical state machines with multiple levels of nesting.
This lesson continues the subject of STATE MACHINES. Today you will dive deeper into the semantics of hierarchical state machines. Specifically, in this lesson, you will examine a hierarchical state machine with multiple levels of state nesting. You will then see how this more advanced state machine handles various transitions and exactly which actions are executed in which order. Contents with Timestamps: ------------------------- The QHsmTst example in the QP/C framework directory Download for the book "Practical UML Statecharts in C/C++" Explanation of the QHsmTst example Concept of "Software Tracing" Code generated from QHsmTst model Personal story and a case for code generation Building the QHsmTst example from the command prompt Explanation of the semantics Semantics of the top-most initial transition Semantics of regular state transitions Least Common Ancestor (LCA) state Semantics of internal transitions Semantics of self transitions Semantics of guard conditions (on regular transitions) Guaranteed cleanup and initialization High-Level Transitions Guard conditions (on internal transitions) Copying and modifying the QHsmTst example Defining the QPC environment variable Adjusting the Makefile The explicit [else] guard condition Cleanly terminating a state machine Summary ------- Resources: Companion web page for this video course: state-machine.com/quickstart GitHub repository for projects for this video course: github.com/QuantumLeaps/modern-embedded-programming-course Transcript of this lesson: state-machine.com/course/lesson42.txt Recommended Reading: "Practical UML Statecharts in C/C++, 2nd Edition: Event-Driven Programming for Embedded Systems" by Miro Samek (state-machine.com/psicc2) Music credits: The background music comes from: bensound.com/royalty-free-music/track/straightWhat people say. Recommended as an in-depth explanation of hierarchical state machine semantics and transition execution order.
u/active-objectin r/embedded • Recommends
On “Do you use HSM (Hierarcical State Machines)?”
u/active-objectin r/embedded • Recommends
On “What is your way to go for state machines in C++?”
u/active-objectin r/embedded • Recommends
On “Generic HSM implementation in C”
u/active-objectin r/embedded • Recommends
On “Your experience with UML for embedded firmware design and debugging”
u/active-objectin r/embedded • Recommends
On “State Machines in embedded?”
u/active-objectin r/embedded • Recommends
On “Is preemptive RTOS costing you too much?”
u/active-objectin r/embedded • Recommends