Hi Prathik,
In your example, the ADC is configured on Synchronous mode. It could be helpful to check if the system clock is working at the expected frequency, determining if this is not causing the issue.
Could you help me with the following?
1. Check the value of the resulting conversion when the ADC channel 0 is selected
Channel 0 is connected to the internal temperature sensor , which is initialized in the example that you provided. For example, at 24°C the conversion will be close 650.
2. Do you have another custom board to test this ?
3. Provide an screenshot of the ADC registers CTRL and SEQ-GDATA ( after a faulty conversion)
Also, I am not aware if you received my previous email, regarding a ticket with the same inquire. Being that the case, please let me know, this will help us to avoid having information on two places.
Best regards,
Diego.