Resolved! How to set up the ADC channel correctly? When I set up the channel as ADC_CHANNEL_5 I get the readings from the pin ADC_IN0(PA0). Changing Channels switches reading between CH0 and CH1. I am using STM32G030K8T on a custom board and FW_g0_v1.2.0
__HAL_RCC_GPIOA_CLK_ENABLE(); GPIO_InitTypeDef agpio; agpio.Mode = GPIO_MODE_ANALOG; agpio.Pull = GPIO_NOPULL; agpio.Pin = GPIO_PIN_5; HAL_GPIO_Init(GPIOA, &agpio); __HAL_RCC_ADC_CLK_ENABLE(); RCC_PeriphCLKInitTypeDef adc_clk; adc_clk.PeriphClockSele...