Question
stm32cubemx generates incorrect code for internal voltage reference peripheral
code generated in cube mx contains several bugs in [stm32h7xx_hal_msp.c] source file:
- in function HAL_MspInit, vref clock enabling is missing - __HAL_RCC_VREF_CLK_ENABLE
- function HAL_SYSCFG_VREFBUF_HighImpedanceConfig shall be called before HAL_SYSCFG_EnableVREFBUF
- in [stm32h7xx_hal.h] file, wrongly defined symbols for voltage scale, e.g. SYSCFG_VREFBUF_VOLTAGE_SCALE0 shall have value VREFBUF_CSR_VRS_OUT1 instead of wrong VREFBUF_CSR_VRS_OUT2 macro (description is ok)
this is my first post here, so hope, that written in good place
