cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L452CEU6 48QFPN VREFBUF issue

jaindevasy
Associate II

We are using STM32L452CEU6 with 48QFPN package and trying to enable internal voltage buffer (VREFBUF), by using HAL_SYSCFG_EnableVREFBUF(), always timeout happening in this function. Is it because of no internal volatage regulator available on the controller?
Asking because the data sheet saying "The VREF+ pin is double-bonded with VDDA on some packages. In these packages the internal voltage reference buffer is not available". Below showing the schematic and VDDA and VREF+ is on same pin (pin 9).

jaindevasy_0-1717083299068.png

If the VREFBUF is not available in this package, shall we connect the pin to VDD, to configure external referance voltage?

3 REPLIES 3
Muhammed Güler
Senior III

The following sentence appears in section 3.17 Voltage reference buffer (VREFBUF) in the datasheet.
The VREF+ pin is double-bonded with VDDA on some packages. In these packages the internal voltage reference buffer is not available. 

VREFBUF is not available in your MCU. don't use it.

https://community.st.com/t5/stm32-mcus/how-to-configure-vrefbuf-on-my-stm32/ta-p/49594

Don't use it if the pins are bonded together, you'll short the part internally.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

And connect VDDA/VREF+ to VDD, which should be done via decoupling, e.g. an LC filter or a ferrite bead, if you use analog functions (ADC etc).

However, if you then want to measure with the ADC, you can only measure ratiometrically. To do this, you must always carry out at least one additional measurement on a reference (internal or external), the result of which you can use to convert the actual measured value of the ADC channel you are interested in. Sounds complicated, but it's just a ratio calculation.

In order 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.