I have asked colleagues as I don't have HSM knowledge and I can sum it to following.
There is HSM example code within the S32 design studio, SDK code.
1) HSM must be present on the device
2) HSM must be configured in DCF records
3) HSM Firmware must be present on the device
If not, the example in S32DS is not possible to run.
