2023-09-18 08:11 AM
Hello,
I'm using an STM32F411RE MCU to control a DC motor driver, and I'm encountering an issue. Whenever I program the microcontroller using the STM32CubeIDE software, the motor starts operating.
This occurs even when I connect the electronic board to the power supply or press the reset button. I suspect that the STM32 microcontroller is sending a high-level signal to the GPIOs when.
The problem is not consistent; sometimes I can program the microcontroller without any issues, and other times, when I connect the board to the power supply, nothing goes wrong. Do you have any suggestions to prevent these actions from occurring?
2023-09-18 08:14 AM
GPIO pins are generally in a high-impedance state when the chip is in reset. When these pins are floating, it can lead to either a high or low level.
If you need a specific state, either high or low, add an external pullup or pulldown resistor to those specific pins.