Autoplay
Autocomplete
Previous Lesson
Complete and Continue
Hierarchical State Machines Masterclass - From the Ground Up to Production
Introduction
Welcome(Same as Promo) (1:28)
Course Requirements
Orientation and Guardrails
The "Why": The Problem with Ad-Hoc Firmware (3:02)
Anti-Patterns in Flat Finite State Machines (FSMs) (1:16)
The Solution: Hierarchical State Machines (Statecharts) (1:59)
A Simplified Project Layout (1:46)
Guardrails: Adherance to MISRA C (1:13)
Setting Up
Downloading CubeIDE (2:34)
Installing CubeIDE (2:38)
Getting the required documentation (7:41)
Getting the required package for bare-metal development (21:19)
Testing the project setup (15:54)
HSM Fundamentals for Microcontrollers
The Anatomy of a Statechart (1:46)
Hierarchy and Event Handling (2:02)
Other Concepts: Internal Transition, History State, Orthogonal Regions (1:12)
Developing some System Drivers for Implementing Real World Examples
Programming : Enabling the Floating Point Unit (FPU) (18:00)
Programming : Developing a UART Driver - Analyzing the Documentation (11:35)
Programming : Developing a UART Driver - Listing out the steps (4:00)
Programming : Developing a UART Driver - Implementing the Initialization function (22:13)
Programming : Developing a UART Driver - Implementing the Write function (5:39)
Programming : Developing a UART Driver - Testing the Driver (6:39)
Programming : Developing the System Timebase - Analyzing the Documentation (8:28)
Programming : Developing the System Timebase - Implementing the Init. function (9:52)
Programming : Developing the System Timebase - The rest of the functions (12:15)
Programming : Developing the System Timebase - Testing the Timebase (5:34)
Programming : Developing a BSP for the Dev Board - Required functions (7:55)
Programming : Developing a BSP for the Dev Board - The LED Driver (5:01)
Programming : Developing a BSP for the Dev Board - The Button Driver (4:00)
Programming : Developing a BSP for the Dev Board - Testing the BSP (3:35)
Programming : Developing an ADC Driver - Analyzing the Documentation (5:21)
Programming : Developing an ADC Driver - Listing out the steps. (5:27)
Programming : Developing an ADC Driver - The Initialization function (13:21)
Programming : Developing an ADC Driver - The Read function (14:05)
Developing A Hierarchical State Machine(HSM) Firmware
Representing States and Events in C (2:13)
The State Handler Signature (2:47)
The Dispatcher: Processing an Event (1:29)
Programming: Updating the Workspace (0:58)
Programming: Creating the Project (2:35)
Programming: Implementing the Project Structure (5:07)
Programming: Implementing the Requirments File (6:43)
Source Code Download
Implementing the Model Files
Programming: Implementing the Specification File (5:59)
Programming: Implementing the Acceptance File (2:43)
Programming: Implementing the Event Dictionary And Invariants Files (2:50)
Programming: Implementing the State Catalog File (2:34)
Programming: Implementing the Transition Table File (3:53)
Developing the Micro-Kernel
Programming: Creating the Event Types (4:02)
Programming: Implementing the State Handler Signature and HSM Object (4:14)
Programming: Defining the State Handler Return Codes (2:37)
Programming: Implementing the ENUM For the Events (1:17)
The HSM Implementation File
Programming: Declaring Prebuilt Constant Framework Events (7:28)
Programming: Implementing the HSM Initialization Function (5:43)
Programming: Implementing the HSM Function for Requesting a Transition (1:11)
Programming: Implementing the HSM Dispatch Function (3:45)
Programming: Handling RET_HANDLED and RET_IGNORED Return Code (3:30)
Programming: Handling the RET_SUPER Return Code (2:53)
Programming: Handling the RET_TRANS Return Code (Pt.1) (5:14)
Programming: Handling the RET_TRANS Return Code (Pt.2) (10:30)
The Model Dump Module
Programming: Implementing the 'Transition Row Type' (7:24)
Programming: Creating the Module Files (8:13)
Programming: Formatting One Trasition Row as a CSV (5:22)
Programming: Implementing the Model Dump CSV Function(Pt.1) (5:11)
Programming: Implementing the Model Dump CSV Function(Pt.2) (2:51)
The HSM Application
Progrramming: Overview of the HSM Application (7:34)
Programming: Including the Relevant Header Files (1:54)
Programming: Creating the APP_MODEL_GPIO File (9:07)
Programming: Implementing the APP_TRANSITION_GPIO Array (9:44)
Programming: Implementing the APP_MODEL_DUMP_GPIO Function (2:31)
Programming: Adding the Modules for the System Drivers (3:29)
Programming: Refactoring the Timebase and FPU Module (5:23)
Programming: Refactoring the UART Module (6:53)
Programming: Refactoring the BSP Module (2:25)
Programming: Declaring the State Prototypes (7:36)
Programming: The Application and HSM Data Definitions (5:03)
Programmig: Implementing the TOP State (8:05)
Programmig: Implementing the RUNNING State (5:55)
Programmig: Implementing the IDLE State (10:57)
Programmig: Implementing the DEBOUNCE State(Pt.1) (5:29)
Programmig: Implementing the DEBOUNCE State(Pt.2) (10:39)
Programmig: Implementing the PRESSED State (5:36)
Testing the System
Programming: Initializing the State Machine Application (7:08)
Programming: Processing and Dispatching the EVT_TICK_1MS Event (8:25)
Programming: Processing and Dispatching the EVT_BTN_EDGE Event (2:51)
Programming: Testing the HSM Application(Pt.1) (9:21)
Programming: Testing the HSM Application(Pt.2) (9:52)
The Golden Trace Capture Tool
Programming: Creating the File (3:38)
Programming: Defining the Settings (4:20)
Programming: Dependency Check 'STATE' Regex (2:20)
Programming: Parsing a Single Line (2:25)
Programming: Detecting the Model Dump Header and Rows (2:31)
Programming: Opening the Serial and Constructing the Output Path (4:04)
The 'Main' Function
Programming: Initializing the System (4:05)
Programming: Continuously Reading the Bytes and Parsing (2:36)
Programming: Tracking 'EVENT' and Extracting Edge Targets (3:49)
Programming: Tracking and Processing 'STATE' (3:05)
Programming: Writing the Valid Row to the CSV File (4:29)
Programming: Testing and Analyzing the Golden Trace (7:54)
Programming: Stoping the Script with a Keyboard Shortcut (1:03)
Programming: Tracking and Processing 'STATE'
Lesson content locked
If you're already enrolled,
you'll need to login
.
Enroll in Course to Unlock