cancel
Showing results for 
Search instead for 
Did you mean: 

Reference Voltage always reads as 0xFFFF

Masud
Visitor

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.

1 ACCEPTED SOLUTION

Accepted Solutions
KDJEM.1
ST Employee

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

1 REPLY 1
KDJEM.1
ST Employee

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.