Adc2 initialisation problem in dual regular conversion mode for STM32H573I-DK
I want to make 24 bit resolution adc reading from STM32H573I-DK starter kit. For this, after the documents I examined, I decided to configure ADC1 as master ADC2 as slave in dual regular conversion mode. However, when I run the code after making the necessary configurations in CUBE IDE, HAL_ADCEx_MultiModeConfigChannel(&hadc2, &multimode) != HAL_OK
I go to the error handler after the line. Although I created the cube from ide, it returns an error value from this line. When I look inside the function
ADC_MULTI_SLAVE(hadc, &tmp_hadc_slave);
line
if (tmp_hadc_slave.Instance == NULL)
I saw that it returned null in the If block. Adc2 does not seem to be a slave.
How can I solve this problem? I am waiting for your help. Thank you.
ADC1 Init
ADC2 Init
