2020-01-24 10:22 AM - last edited on 2023-07-11 09:08 AM by Kevin HUBER
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);
}
2020-01-30 05:56 AM
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
2020-02-03 04:02 AM
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!