Please take a look at this thread:
Or you can create a new project in S32 Design Studio for ARM version 2.2, by default, every empty S32K project contains a SVC call.
I tried to do the same, but it is not working. I have to implement system calls using the SVC handler. Using the SVC handler provided in the project, I am not able to extract the SVC number from the instruction "SVC 0". Can you advice on how to proceed?
Also I am facing the Device is secure, erase to unsecure issue with the S32K148 Eval board. It was working well and suddenly happened while using the PE micro debugger. I tried to erase memory but the board is not getting programmed. I did take a look at the following posts, but none of them worked: device is secure. erase to unsecure?, https://community.nxp.com/thread/461300 , Any workaround?