Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4922

Question on HAL_ADC_Start function (STM32F767 Nucleo)

$
0
0
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?

Viewing all articles
Browse latest Browse all 4922

Trending Articles