TIM2 autostart ADC1 (Scan, 4 channel) w/o HAL_ADC_Start_DMA() ?
I'm searching for super coding comfort in CubeIDE. Currently TIM2 resets/updates.
In HAL_TIM_PeriodElapsedCallback() I "manually" start HAL_ADC_Start_DMA() the Scan conversion of four channels and have the four results shipped into my progs memory, via DMA. Works like a charm.
But there is the mighty diagram (Fig.31) on p.213 of the STM32F411CEU6 reference manual,
clearly showing that ther are alternatives to starting the ADC manually via software.
Among a lot of options there is TIM2_TRGO or TIM2_CHx configurable as ADC trigger input.
So, is the following possible:
1) TIM2 loops indefinitely at a speed configured by me after being started once in main().
2) At every interation TIM2 triggers the start of the ADC (HOW?).
3) The ADC is configured to convert 4 channels.
4) The ADC is configuired to ship the result of every conversion to my memory via DMA.
Currently I've no idea how to click / dropdwon CubeIDE to get 2) working.
The result would be very cool:
no callbacks at all, all steps in that process chain done automagically,
the software coder simply has to look at DMA destination buffers, and do his thing.
