I thought all the ADC related issues were resolved until I tested my AFEC code in my second SAM E70 Xplained board.
Issue seems to be relatively simple, but its serious.
Say, when I am using board 1, with the AFEC channel grounded, output of the AFEC module will be '0'. On the other hand, the second board reads almost 40~50mV even when the pin is grounded. All this happens for the same program.
I have done the offset calibration & the issue persists.
Again, when I tried using the example AFEC code for reading the internal temperature sensor, first board read almost 20C where as second board read almost 45C. Actual temperature was around 20C.
IC's weren't heating up.
It seems like different boards has got different offset,