Hi Sandro Mores,
1: You should make sure that you already enable the bandgap in PMC.
PMC_SPMSC1 |= PMC_SPMSC1_BGBE_MASK;
2: Test your VDDA and Vrefh, whether it is 5V.
3: Check your configuration code, I test it on our FRDM-KE02Z40M, my bandgap ADC resut is 985 with 5V VDDA, when I test my VDDA, I find it is actually 4.85V.
Then my bandgap is : (985/4096)*4.85=1.166V, it meets the Vbg data in our datasheet.
You can refer to my test code to check your code, please find the test code from the attachment:
Wish it helps you!
If you still have question please let me know!
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------