Hi @sai-bodhanapu
Yes, the crypto drivers can be used to encrypt data in SPI memory. See the examples in the RTD package.
Notice that HSE firmware needs to be installed first. This is up to user, this is not programmed in the factory.
We provide document AN744810 “HSE FW install for S32K3xx” which describes how to install the firmware. It can be found in Documentation in Secure Files section:
https://www.nxp.com/products/processors-and-microcontrollers/s32-automotive-platform/s32k-auto-gener...
Then we provide HSE FW and HSE DEMOAPP as a part of S32K3 Standard Software package:
https://www.nxp.com/webapp/swlicensing/sso/downloadSoftware.sp?catid=SW32K3-STDSW-D
HSE DEMOAPP contains a number of scripts for Trace32 which shows how to do all the install – update – program operations. Document HSE_DEMOAPP_..._ReadMe.pdf explains how to use the scripts. The scripts can be modified per your needs.
Regards,
Lukas