2025-06-04 7:35 PM - edited 2025-06-04 8:31 PM
Greetings,
During the power-on and power-off processes of the STM32F407 chip, the GPIO used as the DAC output will be pulled high for 8ms. The goal is that the GPIO should remain low when there is no DAC output. Adding an external pull-down resistor has an effect but cannot completely eliminate it. It was not present during online debugging, only occurring when there was a power surge. After erasing the program, it still existed. Preliminary judgment is that it is a hardware issue. Is there any way to solve this problem?
Thank you so much for the help. @KDJEM.1 @LPetr.1 @TDK
2025-06-06 12:40 AM
> It seems that the VDDA and VSSA chips are not available.
I don't understand what do you mean by that.
How are these pins connected?
JW
2025-06-06 12:46 AM
VDDA is connected to VDD, and VSSA is connected to GND.
2025-06-06 1:03 AM
2025-06-06 1:12 AM - edited 2025-06-06 1:15 AM
1. Does the problem happen when you use the reset pushbutton?
2. As an experiment, try disconnecting TL431 from VREF+ and connecting VREF+ temporarily to VDD
3. What if the root of problem is some sort of current injection through the opamp connected to the DAC output, during the opamp's powerup? Try disconnecting the DAC output from the opamp (or removing the opamp itself, whichever is easier) and observe the DAC output alone. Or, alternatively, try to keep the opamp powered up, while powering down and then back up the mcu alone (having some means to disconnect the +5V rail, perhaps).
JW
2025-06-06 1:17 AM - edited 2025-06-06 1:19 AM
1.This phenomenon occurs when the power is turned on and off. The reset button was not pressed.
2.I will attempt to observe the effect of connecting VREF to VDD.
3.Even without the operational amplifier chip, the same problem persists. We have already tried that.