Question
VREFBUF not working on STM32H743?
The current STM32CubeMX package cannot generate proper code to initialize the VREFBUF in STM32H743 MCU.
Modifications to HAL_MspInit() in stm32h7xx_hal_msp.c can fix this:
- Add "__HAL_RCC_VREF_CLK_ENABLE();" to user code section 0.
- In user code section 1,
- Add HAL_SYSCFG_VREFBUF_VoltageScalingConfig(0x00000020); // For 1.8V Vref+. or
- Add HAL_SYSCFG_VREFBUF_VoltageScalingConfig(0x00000030); // For 1.5V Vref+. or ...
