Thank you for your interest in our products and for contributing to our community.
Please refer to the SAOC Example Project of the following community post:
S32M27x/S32K3 – eMIOS Usage -> https://community.nxp.com/t5/S32M-Knowledge-Base/S32M27x-S32K3-eMIOS-Usage/ta-p/2129760
We hope this resolves your issue.