cancel
Showing results for 
Search instead for 
Did you mean: 

ADC issue

lenonrt
Associate III

Hi!

 

I am trying to use ADC on STM32MP157C-DK2.

 

With Starter Package image it runs fine, but with st-example-image-qt it stuck on the function below.

 

Can somebody helps me with this? I think it is a problem in the device tree file.

 

 if(HAL_ADC_PollForConversion(&hadc2, 5000) != HAL_OK){
 
    HAL_Delay(1000);
 
}

 

2 REPLIES 2
mleo
Senior II

Hello, 

Could you provide more info?

Is it your apllication or provided example?

When creating the qt image, BSP layers (meta-st-stm32mp and meta-st-stm32mp-addons) were correctly included?

BR,

Milan

lenonrt
Associate III

Hello @mleo​ !

I solve the problem.

I haven't understanding the how "*.dts" files works.

I actived @adc{} instead @m4_adc{}.

Now it works.

But I have a doubt.

Is "*.dts" files generated by CubeMX "replace" the ".dts" of the kernel?

How it works in projects without this files?

Thank you!