Skip to main content
Associate
May 30, 2024
Question

STM32L452CEU6 48QFPN VREFBUF issue

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?

This topic has been closed for replies.

3 replies

Muhammed Güler
Senior III
May 30, 2024

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.

Tesla DeLorean
Guru
May 30, 2024

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
Peter BENSCH
ST Technical Moderator
May 30, 2024

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.