TIM4 counter stops when ADC1 DMA less than 3 channels used.
I know this is very weird behavior but it is quite easily reproduceable error.
I am running Windows 11 on a laptop.
CubeMX version : 6.9.1
CubeIDE version : 1.13.1
Board I am using is this. Looks like genuine STM32F103C8T6 chip.
I could upload USB_DEVICE successfully with this chip.

For the test, I only enabled TIM4 counter up mode with Global interrupt and ADC1 as DMA.

ADC channels are set as below.

I made a git repository here for review.
https://github.com/kyuhyong/stm32_adc_test
TIM4 on this project is not working when only 1 or 2 channels are enabled. (Only 1 ISR is called then stop)
If I enable ADC1 with more than 3 channels, TIM4 works as expected. (checkout to adc3 branch)
Very strange bug I guess. Any solutions?
