Question on HAL_ADC_Start function (STM32F767 Nucleo)

Thread Starter

Xavier Pacheco Paulino

Joined Oct 21, 2015
728
Hi,

I have set the ADC in continuous mode.

When I use "HAL_ADC_Start(&hadc1)" before the while(1) loop, the ADC doesn't work. But if I use it in the while loop, then it works. I have seen some people doing the same code and they always put HAL_ADC_Start(&hadc1) before the while loop. Why is this happening?
 
Top