S32K144 EVB: ADC PAL group conversion doesn't finish

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

S32K144 EVB: ADC PAL group conversion doesn't finish

跳至解决方案
2,606 次查看
sripav-7
Contributor III

Hello

Sorry if this is a noob question, I am trying to use software trigger and ADC PAL library to convert readings on 4 ADC channels at once. While the example works well for me, using seemingly the same steps in my code doesn't work. Execution just gets stuck at ADC_StartGroupConversion command. Can someone please tell me what I am doing wrong?

I attached my project with this post.

Thanks,

Sri Harsha Pavuluri

标签 (1)
1 解答
2,225 次查看
cosmindinu
NXP Employee
NXP Employee

Hello,

You need to enable the Peripheral Clock also for PDB modules, because each ADC_PAL instance uses one instance of ADC and one of PDB.

I also noticed that you are using an older version of SDK (S32SDK S32K14x EAR 0.8.6). It is recommended to use newer versions: S32SDK S32K14x BETA 1.9.0 which is already available, or S32SDK S32K14x RTM 2.0.0 which should become available in the following week.

Please let me know if this helps.

Best regards,

Cosmin

在原帖中查看解决方案

2 回复数
2,226 次查看
cosmindinu
NXP Employee
NXP Employee

Hello,

You need to enable the Peripheral Clock also for PDB modules, because each ADC_PAL instance uses one instance of ADC and one of PDB.

I also noticed that you are using an older version of SDK (S32SDK S32K14x EAR 0.8.6). It is recommended to use newer versions: S32SDK S32K14x BETA 1.9.0 which is already available, or S32SDK S32K14x RTM 2.0.0 which should become available in the following week.

Please let me know if this helps.

Best regards,

Cosmin

2,225 次查看
sripav-7
Contributor III

Hi Cosmin,

Thanks for the reply. That worked. Thank you so much.

I'll update to the newer version of the SDK.

Best,

Sri Harsha Pavuluri

0 项奖励
回复