2023-12-19 03:06 AM
Hi to all!
I have the following question: why do the relays in the circuit start switching when I connect the STM32F1 microcontroller to the computer through the programmer?
And similar happens when I initialize RCC. As if all the contacts are being checked and the relays are starting to switch.
What could be the problem?
I will be grateful for the answer!
Solved! Go to Solution.
2023-12-19 05:27 AM
Hello @Embedded_dev1,
Check the configuration and reset state of the pins.
2023-12-19 03:10 AM
1. show your circuit - i cannot see it clear in my blue glass ball...
2023-12-19 05:27 AM
Hello @Embedded_dev1,
Check the configuration and reset state of the pins.
2023-12-19 05:46 AM
The relays switching during STM32F1 microcontroller connection may result from default GPIO states during initialization. Ensure proper pull-up/down resistors to prevent undefined states. When initializing RCC, check for inadvertent GPIO state changes and add delays or debouncing if necessary to stabilize signals during startup.
2023-12-20 12:43 AM
Ok, thank you!
2023-12-20 02:19 AM
Thanks for the answer!