2026-02-26 5:08 AM
Using DMA to read 3 ADC channels. IN0, VSENSE & VREFINT all enabled in CUBEMX. First 2 channels read as expected but for VREFINT it seems to always read zero. Am I missing a setting in the CUBEMX?
2026-03-02 2:09 AM - edited 2026-03-02 3:40 AM
Hello,
1- What if you change the ranking by swapping VSENSE and VREFINT ranks?
2- Check if VREFEN bit is set in ADC_CCR register. From the reference manual:
I know you are using CubeMx to generate the code, but we need to ensure the code is well generated as well.
2026-03-02 3:12 AM - edited 2026-03-02 3:41 AM
Hello @Dunk,
Could you try to have a look at the ADC_MultiChannelSingleConversion example: Link(here)
It contains an .ioc file that will be helpful for your application.
I hope my answer has helped you. When your question is answered, please select this topic as the solution that answered you, as it will help others find that answer faster.
Thanks for your contribution.
Dor_RH