cancel
Showing results for 
Search instead for 
Did you mean: 

When the MCU is powered on or off, the GPIO will output a pulse at that moment.

Haixiang
Associate

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

 

Haixiang_0-1749091424348.png

Haixiang_1-1749091641053.png

Haixiang_0-1749094234422.png

 

 

 

 

14 REPLIES 14

> 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?

waclawekjan_0-1749195603699.png

JW

VDDA is connected to VDD, and VSSA is connected to GND.

Haixiang_0-1749195952592.png

 

Haixiang_0-1749196938848.pngHaixiang_1-1749196964657.png

Haixiang_2-1749197016470.png

 

waclawek.jan
Super User

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

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.