You've selected the FVR as reference for the ADC but I see no code that configures the FVR (it's disabled on POR).
That's how far I got with what's shown.

/Henrik.