DISCLAIMER: This example requires CMake and can not be build with Eclipse
Zephyr - RTOS Integration (C)
Embedded Systems Integration Guide - Zephyr Integration.
This example has been created to illustrate how itemis CREATE can be integrated in Zephyr. You can find a detailed description in our documentation.
The state machine
The state machine contains the following parts:
- Two regular states
- One final state
- Two incoming events
- Two outgoing events
- One timed event
The main idea is to use every component, which has an effect on the integration of the state machine code. A detailed description can be found in our documentation.

Zephyr Installation
In order to run the example, Zephyr must be installed. Please follow the Getting Started Guide and ensure that you can at least run the "Hello World" example.
Compile and run the example
Open a terminal and cd to the root of this project, run west build and execute the binary. Ensure that the state machines code has been generated.
cd "path to your project"
west build -b native_posix . -p always
./build/zephyr/zephyr.exe
Get this example
The complete project — statechart models, sources and build files — lives in the itemis CREATE examples repository. Inside itemis CREATE for Eclipse you can import it directly with the example wizard.