STM32CubeMX ADC missing 'DISABLE' option for EOC ?
Hi,
I was making a demo project so needed a really straightforward way to use the ADC of my STM32F446RE.
I configured the ADC1 with only channel. Default parameter everywhere except I enabled ‘Continuous Conversion Mode’ as I understood it, all I had to do with it was to start the ADC (HAL_ADC_Start(&hadc1)) and pick the values every time my loop needed it. I was surprised to notice that ‘HAL_ADC_PollForConversion(&hadc1, 100)’ worked only the first call then always yield HAL_TIMEOUT as I was expecting the ‘Continuous Conversion’ mode to allow me to not call HAL_ADC_Start and stop every time.
After finding the linked post, I found the solution was to change the ADC setting
Still according to this link this configuration set should be officialy supported as it’s in the exemple file.
NOTE: So after writing all of this I noticed that ADC_EOC_SEQ_CONV is also defined as ‘0’ like just like ‘DISABLE’ so it would have work if I picked ‘EOC flag at the end of all conversion’ instead ‘EOC flag at the end of single channel conversion’ but I think it’s missleading
