i.MX RT Toolbox Real Time Clock support

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

i.MX RT Toolbox Real Time Clock support

1,133 次查看
Maciek
Contributor V

Is there a way to use (in-built) RTC functionality on i.MX RT1064 without writing custom blocks ?

Regards

Maciek

0 项奖励
回复
1 回复

1,124 次查看
nxa11767
NXP Employee
NXP Employee

Hi @Maciek ,

You can use MCUX Configuration Tool for the initialization part:

nxa11767_0-1621425215089.png

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

nxa11767_1-1621426914291.png

I hope this helps.

Best regards,

Alexandra

  

 

 

0 项奖励
回复