Hi @Maciek ,
You can use MCUX Configuration Tool for the initialization part:
The SNVS peripheral will allow configuration of the RTC. (next to your model you should have a file with .mex extension that is the MCUX Configuration File with the platform initialization).
The SDK API for this can be found in the next files: fsl_svns_hp.c/fsl_svns_lp.c and fsl_svns_hp.h/fsl_svns_lp.h.
You'll need to use custom code to instruct the simulink make process to add to source path the fsl_svns_hp.c/fsl_svns_lp.c file. And also for other functionalities:
- IRQ handler interrupt implementation
- other RTC functionalities that you need to be called during step execution. You can use here the SDK API function calls from the above mentioned files.
e.g
I hope this helps.
Best regards,
Alexandra