Simulink compilation produces code, how can S32DS be compiled automatically?
We have model based design toolbox to Matlab/Simulink.
Please check this community site dedicated to model based design:
See below e.g. one document that describes how to import the project generated from model:
How to export Generated Code to S32 Design Studio IDE (applicable for MBDT for MPC5744P v2.0)
Hope it helps