Associate III
February 6, 2020
Solved
Setting VREF voltage in CubeMX not working for STM32G4
- February 6, 2020
- 6 replies
- 2009 views
I'd like to report 2 bugs/errors in CubeMx and the documentation in the stm32g4xx LL driver file:
Setting the "Internal Voltage reference scale" in the "SYS" menu of CubeMX to SCALE2 (2.9V), won't take effect and the selected value always falls back to SCALE0. I'm working with an STM32G474 device.
Also the values of the scales in CubeMX are wrong, where it's written:
SCALE0: 2.5V
SCALE1: 2.048V
SCALE2: 2.9V
Whereas the correct asignments are:
SCALE0: 2.048V
SCALE1: 2.5V
SCALE2: 2.9V
Furthermore the documentation in the LL driver in "stm32g4xx_ll_system.h" has the documentation wrong for LL_VREFBUF_VOLTAGE_SCALE2, where a voltage is 2.8V is documented instead of the correct value 2.9V
