Hi,
please see this thread:
https://community.nxp.com/t5/CodeWarrior-Development-Tools/how-can-I-write-a-library-function-in-cod...
It is about DSCs but it is applicable to MPC5xxx.
Hope it helps.
Stan
never-displayed