Hello cg0,
Indeed there is a bug in the TLC file corresponding to the custom initialization block; for a quick-fix you can either go and comment in the generated init_call_trigger.h line 6 (the #include pwm_private.h), then run the following in MATLAB terminal (note: you must be in the pwm_mbd_rtw generated folder)
!pwm.bat
or you can go to
{TOOLBOX_ROOT}\src\mbdtbx_s32k14x\mbdtbx_s32k14x\blocks\custom_init\custom_init_s32k14_trigger.tlc
and comment out line 30
#include "%<CompiledModel.Name + "_private.h">"
We will fix this bug and put a hotfix here on the community, but this being a simple fix, you can make it yourself now so you don't have to wait.
As a side-note, you can just select the "Start PWM signals generation immediately after initialization" if you Enable it immediately anyways. If you do that, you can also remove the custom init block. The Enable/Disable block is generally used if you want to enable the PWM generation after some other initialization (e.g.: sending some commands to motor driver over SPI; in this example, you'd enable the PWM generation after the transfer is complete, in an ISR).
Hope this helps,
Razvan.