An in-depth lesson on hierarchical state machine (HSM) semantics using the QP/C framework's qhsm_tst example. Covers multi-level state nesting, transition chains, least common ancestor (LCA) calculations, entry/exit action ordering, guard conditions, internal vs. self transitions, and software tracing. Demonstrates how to build and run the example on a workstation, copy it to a local project, fix Makefile paths, and modify the model to add proper cleanup via exit actions on termination.

23m watch time
1 Impression