STM32F7 DACs enabling inconsistently upon powerup
Using STM32F765VG6TR, every time I power on the MCU, the two DACs are supposed to be set to constant output voltages of 2.4V and 0.8V. This happens inconsistently - sometimes it works, about 50/50 success rate. A few notes:
- If it isn't working, an MCU reset does not fix it.
- There seems to be a correlation between how long I wait after power-down and power up and the DACs enabling properly. Waiting not too long and not too short seems to be the sweet spot (about 1.5s)
- This would lead me to believe it's a power sequencing issue with VDDA/VDD, but can't seem to correlate a specific start-up waveform with bad DAC behavior
- Have reproduced the issue on two separate processors with different PCBAs
- Either both DAC channels work, or both do not work. Haven't seen one work and not the other.
It didn't work on this try (DAC voltage in yellow):
It did work on this try (see DAC voltage rise in yellow):
I have tried waiting 100ms in the code before trying to run the DAC, no luck - which kind of makes sense since MCU reset doesn't fix it. Stepping over the DAC enable line with the debugger doesn't affect the voltage no matter what voltage value is passed.
It almost seems like sometimes the clock for that peripheral doesn't enable sometimes - just my guess at this point. Here's the clock configuration in CubeMX (v5.3.0):
Any ideas? This DAC output is critical to the board function in this case, so it's gotta work.
Thanks!



