Hi there,
I have a function that i'd like to behave slightly differently depending on which S32K3 core invokes it. At the moment i have a function returning the value of what i thought was the correct register.
In the S32K3xx RM, under MCM Register Descriptions (Chapter 6.4.1) it mentions a Processor Identifier (PID) register. However if i read the value of this register, it returns 0 regardless of which core the read is performed on.
I'm assuming that this is not the correct register, but i cannot find a more relevant one in the manual. Could you advise :
- if it is possible to find the currently executing core ID, and if so
- what register/driver function is required to do this
I have both cores running no problem, but maybe there's something more i need to do in the .mex file?
Any help would be appreciated.