ADC1 BCTU Configure can't work

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ADC1 BCTU Configure can't work

254 Views
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 Kudos
3 Replies

193 Views
_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 Kudos

161 Views
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 Kudos

168 Views
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 Kudos