Install svc function

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Install svc function

1,342 Views
smruthi_ramesh
Contributor II

How to install an svc function to call a specific svc handler in for S32K148?

0 Kudos
3 Replies

1,231 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi smruthi.ramesh@se.com,

Please take a look at this thread:

 How to make S32K146 M4 Core user mode and supervisor mode switching? 

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.

Regards,

Daniel

0 Kudos

1,231 Views
smruthi_ramesh
Contributor II

Hi Daniel

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?

Regards,

Smruthi

0 Kudos

1,231 Views
smruthi_ramesh
Contributor II

I figured it out. Thanks

0 Kudos