ADC1 BCTU Configure can't work

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

ADC1 BCTU Configure can't work

902 次查看
ellie
Contributor I

I configure ADC0 can work but ADC1 can't work. 

I use the same configuration and notice "adc target mask" adc1 use 2. How to use adc1 correctly? 

I use ADC1 after power on system can't start up. I use UART to debug print program to find ADC driver bug. As long as adc_init() -> Adc_Sar_Ip_StartConversion(ADCHWUNIT_1_INSTANCE,
ADC_SAR_IP_CONV_CHAIN_NORMAL)-> SchM_Exit_Adc_ADC_EXCLUSIVE_AREA_10(), the program deadlock.

ellie_0-1715593765361.png

 

ellie_0-1715332880607.png

ellie_5-1715333688485.png

 

ellie_1-1715332968079.pngellie_2-1715333037283.png

ellie_3-1715333102655.png

ellie_4-1715333134970.png

 

 

0 项奖励
回复
3 回复数

841 次查看
_Leo_
NXP TechSupport
NXP TechSupport

Hi,

Thank you so much for your interest in our products and for using our community.

You can refer to the Adc_Sar_Bctu_Ip_example_S32K3xx example:

_Leo__0-1715901740872.png

 

Hope it helps you.

Have a nice day!

0 项奖励
回复

809 次查看
ellie
Contributor I

Please see my attachment, it's my ADC0 & ADC1 testing in s32k314 . 

When ADC1 use trigger mode, the system can't work. 

They are same configuration, but only ADC0 can be use.

How to use ADC0 & ADC1 parallel? 

0 项奖励
回复

816 次查看
ellie
Contributor I

We didn't solve the problem.We both refer to S32k344 BCTU ADC example code.

We use the different project but same configure in S32K311, it can work.

Initial adc1 to call Adc_Sar_Ip_StartConversion() system hang in S32K314.

Can you try adc1 and use this function in S32k314?   

 
0 项奖励
回复