Hi Sanket,
there's an example for CRC in S32DS:
It can be found in this folder:
c:\NXP\S32DS_ARM_v2.2\S32DS\software\S32SDK_S32K1xx_RTM_3.0.0\examples\S32K142\driver_examples\system\crc_checksum\
And we provide this application note about ECC:
https://www.nxp.com/docs/en/application-note/AN12522.pdf
Hope it helps.
Regards,
Lukas