This project exists because there was no existing way to deploy Simulink models onto a Raspberry Pi and measure/calibrate them live using industry-standard tools like ETAS INCA or Vector CANape.
CM-STACK Simulink Compiler fills that gap by turning a Simulink model into a fully deployed, XCP-instrumented application running on a Raspberry Pi — with a single command. It handles C code generation, XCP stack integration (measurement/calibration protocol), cross-compilation, A2L/HEX artifact generation, and remote deployment, so that model changes go straight from Simulink to a live, calibratable target without any manual toolchain work.
Its main use case is to provide the high-level, non-strictly-real-time software layer for the RT-STACK project — an Engine Control Unit (ECU) platform built to control internal combustion engines, from 2-stroke and 4-stroke to Wankel and Diesel, including complex turbocharged or high-revving V12 setups. RT-STACK leverages a Raspberry Pi for high-level control paired with Simulink support, allowing graphical programming of engine control logic without writing C code, while measurement and calibration happen over the XCP protocol (a2l + hex), compatible with OEM tools like INCA/CANape or open-source alternatives such as Vehicle Spy. github + 3
In short: CM-STACK Simulink Compiler is the bridge that lets engine-control engineers design logic graphically in Simulink and get it running, measurable, and calibratable on real ECU-class hardware — closing the gap that off-the-shelf toolchains left open.