LeanStack works seamlessly with MATLAB and Simulink. Design your application logic as models, generate code, and it plugs straight into the basic software that LeanCfg generates, with no glue code to write.
Mix and match per component. Hand-written and model-generated components sit side by side in the same ECU project.
LeanCfg generates a C template for each software component (SWC). Write your logic in the USER CODE sections, and it is preserved every time you regenerate.
Model the component in Simulink using LeanStack's customised classes, then generate code as you normally would. It drops into the project and connects automatically.
Break the application into SWCs on a block diagram.
LeanCfg's component map wires every SWC through BswIf.
Fill in C templates or generate code from Simulink models.
Build with the generated BSW and flash with LeanBoot.
In this wiper-control example, the model's inputs and outputs use BswIf data types directly. Generate code from the C Code tab and the component is ready to build with the rest of the ECU.
No. LeanStack supplies the customised classes your model uses, and you build, simulate and generate code in Simulink the way you already do.
Yes. Each SWC can be implemented on its own terms, either in a generated C template or in Simulink, and they all connect through the same BswIf layer.
Regenerate the BSW and BswIf. Your models and the USER CODE sections in C templates are preserved, so integration stays a build step rather than a rewrite.
We'll show you a model going from simulation to a running ECU.