Hi Daniel,
Unfortunately, I don’t have experience with MATLAB/Simulink generation code for S12(X/Z). However, there exist Motor Control Development Toolbox which applies this approach.
In fact, the Motor Control Development Toolbox supports S12ZVM device with S12Z core.
It is paid product focused mainly on motor control, but you may try contacting this team at address RAppID@freecale.com and ask for advice or personal solution.
BTW:
According to table at NXP Support from Embedded Coder - Hardware Support :
The MCUs with S12Z core are covered by "S12 MagniV" entry.
I hope it helps you.
Have a great day,
Radek
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------