Hi, Mateo,
Regarding your question, I think you do not set up the ADC pins assignment, which leads to the sample result error.
First of all, if you want to use ADC0_0 channel, you have to disable the temperature with the code.
/* Use the temperature sensor input to channel 0. */
ADC_EnableTemperatureSensor(DEMO_ADC_BASE, false); in the void ADC_Configuration(void).
Secondly, you have to set up the ADC0 pins assignment with the code like:
(/* Enables clock for switch matrix.: enable */
CLOCK_EnableClock(kCLOCK_Swm);
you have to write the PINENABLE 0 register so that you can set up the register.
SWM->PINENABLE0&=~(0x0FFF<<10); //enable all ADC channels
You can use a function to write the PINENABLE 0 register in SDK, pls do it yourself.
Hope it can help you
Regard
XiangJun Rong
