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