Example usage CMU_FM_1 (without using MCAL)

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Example usage CMU_FM_1 (without using MCAL)

ソリューションへジャンプ
1,335件の閲覧回数
abemat
Contributor III

I would like to enable CMU_FM_1 to monitor the FIRC_CLK frequency, but have a hard time.

Could someone point me to a tutorial or a step by step method to enable the meter? Ideally using RTD 3.0.0 function calls, but direct register accesses may be done as well.

タグ(5)
0 件の賞賛
返信
1 解決策
1,310件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @abemat,

The full version of SAF has API for CMU_FM.

https://www.nxp.com/design/design-center/software/functional-safety-software/s32-safety-software-fra...

 

sCheck/srs/sCheck_CmuFmTest.c

danielmartynek_0-1736425611448.png

 

It is not present in the evaluation version.

 

We have also some non-RTD baremetal code that I can share with you privately.

 

Regards,

Daniel

元の投稿で解決策を見る

2 返答(返信)
1,045件の閲覧回数
narimanelashkar
Contributor I
I tried to enable CMU_FM_1 to monitor the FIRC_CLK frequency and enable the interrupt FMCIE from IER register to be fired after the measurement is completed by these steps:

IP_CMU_1->RCCR = CMU_FM_RCCR_REF_CNT(50);
IP_CMU_1->IER |= CMU_FM_IER_FMCIE_MASK;
IP_CMU_1->GCR |= CMU_FM_GCR_FME_MASK;

But I faced the following behavior that the interrupt was not fired after the completed window and went to power on reset.

Did you face this behavior or something similar like this?
1,311件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @abemat,

The full version of SAF has API for CMU_FM.

https://www.nxp.com/design/design-center/software/functional-safety-software/s32-safety-software-fra...

 

sCheck/srs/sCheck_CmuFmTest.c

danielmartynek_0-1736425611448.png

 

It is not present in the evaluation version.

 

We have also some non-RTD baremetal code that I can share with you privately.

 

Regards,

Daniel