How does VREFBUF HIZ bit get set via CUBEIDE?
I have a project where VREFBUF outputs 2.0xxV correctly without intervention. I created a new project and I see VREFBUF output stuck at 0V, and I'm not sure what's causing the changed behavior. I inspected the VREFBUF_CSR register and I see ENVR=1 and HIZ=1. When I set HIZ=0 via StLink, I see the VREFBUF output pop to the correct value. I don’t see CubeIDE options to set this explicitly, but it appears there is some setting that manipulates this value. What should I look at?
I tried adding both of the below lines to set the HIZ bit in user code, but it didn’t appear to change the HIZ bit when I checked via StLink. What could I be doing wrong?
VREFBUF->CSR&=0b11101;
HAL_SYSCFG_VREFBUF_HighImpedanceConfig(SYSCFG_VREFBUF_HIGH_IMPEDANCE_DISABLE);
I'm also seeing DAC output drop to zero when the HIZ bit is set. Is this normal or a potential clue?
