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?
Thanks and best regard
He Wei
Solved! Go to Solution.
Hi wei_w_he,
You can find out this line caused fault.
Operating peripheral register trigger fault are usually caused by not enabling the peripheral clock.
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Dear Robin,
Thanks a lot.
Best regards
He Wei
Hi wei_w_he,
You can find out this line caused fault.
Operating peripheral register trigger fault are usually caused by not enabling the peripheral clock.
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------