How to configure ADC PAL in S32K118

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

How to configure ADC PAL in S32K118

ソリューションへジャンプ
2,357件の閲覧回数
wei_w_he
Contributor IV

Dear Officer,

I am using ADC from S32K118 for battery detection in Sunroof project. I can successfully run the adc_pal_s32k118 example. But when I configure or even copy the adc pal setting from example to my project. It always crashed on at ADC_StartGroupConversion()->PDB_Init() as below; I verify all the setting and can't find any wrong with my setting. I attached my simple code (LedBink.zip), Can you help to have a quick look?

wei_w_he_0-1600751872886.png

 

Thanks and best regard

He Wei

 

0 件の賞賛
返信
1 解決策
2,352件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi wei_w_he,

You can find out this line caused fault.

cause fault.png

Operating peripheral register trigger fault are usually caused by not enabling the peripheral clock.

enable clock PDB0.png

Best Regards,
Robin

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

 

元の投稿で解決策を見る

2 返答(返信)
2,342件の閲覧回数
wei_w_he
Contributor IV

Dear Robin,

Thanks a lot.

Best regards

He Wei

 

 

0 件の賞賛
返信
2,353件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi wei_w_he,

You can find out this line caused fault.

cause fault.png

Operating peripheral register trigger fault are usually caused by not enabling the peripheral clock.

enable clock PDB0.png

Best Regards,
Robin

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------