STM32G473VCT Internal voltage reference setup failing
Hi All,
I created an STM32CubeIDE project to set up an Internal voltage reference on my
board that has an STM32G473VCT; see the screenshot attached. All I did was
create that Internal voltage reference, save and generate code. See screenshot:
I put breakpoints at the end of HAL_StatusTypeDef HAL_SYSCFG_EnableVREFBUF(void)
in /Sample_STM32G473VCT3_project_03/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal.c
at return HAL_TIMEOUT; and return HAL_OK;. Debugging and running it, it stopped
on "return HAL_TIMEOUT".
Looking at the datasheet, which I downloaded from mouser,
("Newest member cannot add links", so I had to remove the links.)
Pg 15: Table 2. STM32G473xB/xC/xE features and peripheral counts (continued)
says that STM32G473 Cx,Rx,Mx,Vx,Qx all have the Internal voltage reference buffer.
Pg 32, section 3.20 says:
The STM32G473xB/xC/xE devices embed a voltage reference buffer which can be used
as voltage reference for ADC, DACs and also as voltage reference for external
components through the VREF+ pin.
The VREF+ pin is double-bonded with VDDA on some packages. In these packages the
internal voltage reference buffer is not available.
Table 12. STM32G473xB/xC/xE, has the pin definitions. Pg 59/229 shows pin 36 and
pin 37 separate for VREF+ and VDDA respectively. If they were bonded, it would
show them both on one ball/pin. So there should be an Internal voltage reference
on this micro. It is LQFP100 -Table 12 seems to misspell this as LPQF100.
I did take a look at "How to configure VREFBUF on my STM32" in the Knowledge
Base, and I do have a scale set. Is there anything else I could have missed?
Does anyone know what could be causing this failure?
Thanks in advance for your assistance.
Best regards,
