ADC external channels doubt
I use the STM32CubeIDE Version: 1.18.1 and the stm32g030k8.
I have a hardware that uses a firmware. This firmware correctly returns the values of the ADC. The ADC is linked to a DMA.
Channel 4 == 2545 (this is a voltage divisor) 12.5 volts
Channel 10 == 1 (this is connected to a current shunt resistor) No current, then almost 0.
Channel Temperature == 929
Channel Vreference == 1506

I develop a new firmware with the very same hardware (not just same design but same device). I apply debug optimization. I use ADC1 with the DMA, first I use the ioc file to set up the ADC and then I copy the MX_ADC1_Initfrom the other stm32cubeide project.
Yet It does not return the same value from the external pins. Why is that?

Thanks for all.
