Skip to main content
Visitor II
March 10, 2025
Solved

Reference Voltage always reads as 0xFFFF

  • March 10, 2025
  • 1 reply
  • 420 views

I am using NUCLEO-U031R8 board and MCU is STM32UO31R8

while reding reference voltage by using below code

 

#define VREFINT_CAL_ADDR ((uint16_t*) (0x1FFF6EA4UL))

ADC1_COMMON->CCR |= ADC_CCR_VREFEN;

uint16_t Internal_voltage_reference = (uint16_t)*VREFINT_CAL_ADDR;

 

I am always getting 0xFFFF

 

what could be the issue?


Code formatting applied - please see How to insert source code for future reference.

    This topic has been closed for replies.
    Best answer by KDJEM.1

    Hello @Masud and welcome to the community;

     

    This issue is already reported here and reported internally.

    An internal ticket number: 183723 (PS: ticket number 183723 is an internal tracking number and is not accessible or usable by customers).

    May be this post help you.

    I apologize for any inconvenience and thank you for your contribution in STCommunity.

     

    Thank you.

    Kaouthar

    1 reply

    KDJEM.1Answer
    Technical Moderator
    March 10, 2025

    Hello @Masud and welcome to the community;

     

    This issue is already reported here and reported internally.

    An internal ticket number: 183723 (PS: ticket number 183723 is an internal tracking number and is not accessible or usable by customers).

    May be this post help you.

    I apologize for any inconvenience and thank you for your contribution in STCommunity.

     

    Thank you.

    Kaouthar