Hi @ZEROOO
We have application note AN5401 which includes SW examples:
https://www.nxp.com/webapp/Download?colCode=AN5401&location=null
https://www.nxp.com/webapp/Download?colCode=AN5401SW&location=null
First, it’s necessary to configure the device using 1_Configure_part_and_Load_keys project. Then run 3_Basic_operations which shows how to use the features.
If you use SDK, there are three examples:
c:\NXP\S32DS.3.4\S32DS\software\S32SDK_S32K1XX_RTM_4.0.2\examples\S32K116\driver_examples\system\csec_flash_part\
c:\NXP\S32DS.3.4\S32DS\software\S32SDK_S32K1XX_RTM_4.0.2\examples\S32K116\driver_examples\system\csec_keyconfig\
c:\NXP\S32DS.3.4\S32DS\software\S32SDK_S32K1XX_RTM_4.0.2\examples\S32K116\driver_examples\system\security_pal\
First one is used to partition the device, i.e. enable the CSEc. This is needed to run next two examples.
See please description of the examples in:
c:\NXP\S32DS.3.4\S32DS\software\S32SDK_S32K1XX_RTM_4.0.2\doc\S32SDK_S32K116_UserManual.pdf
And my recommendation - as a first step, read thoroughly whole AN5401 to understand all the steps.
Regards,
Lukas