Hello igorpadykov.
This is a solution, but I don't understand it, so I have a question.
According to the pin assignment in the datasheet, there are eight physical inputs, ADC1_IN0 to ADC2_IN3.
In the reference manual, CHA_SEL of ADCx_CH_A_CFG1 ranges from 0 to 15.
What do ADC1_INx and Channelx correspond to?
Or are they unrelated?
How should I set ADC2_IN0?
Best regards.