DISCLAIMER: This example requires CMake and can not be build with Eclipse
FreeRTOS - RTOS Integration (C)
Embedded Systems Integration Guide - FreeRTOS Integration.
This example has been created to illustrate how itemis CREATE can be integrated in FreeRTOS. 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.

FreeRTOS Installation
In order to run the example, FreeRTOS must be cloned. Clone FreeRTOS from https://github.com/FreeRTOS/FreeRTOS
Compile and run the example
Open a terminal and cd to the root of this project, call cmake, make the project and run the binary. Ensure that the state machines code has been generated.
cd "path to your project"
cmake -B build -DCOMPILER=GCC_POSIX -DFREE_RTOS_PATH="path to your cloned FreeRTOS"
./create_freeRTOS
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.