cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with switching pins

Embedded_dev1
Associate II

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!

1 ACCEPTED SOLUTION

Accepted Solutions
Imen.D
ST Employee

Hello @Embedded_dev1,

Check the configuration and reset state of the pins.

 

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

View solution in original post

5 REPLIES 5
AScha.3
Chief III

1. show your circuit - i cannot see it clear in my blue glass ball...

If you feel a post has answered your question, please click "Accept as Solution".
Imen.D
ST Employee

Hello @Embedded_dev1,

Check the configuration and reset state of the pins.

 

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Millertom3862
Associate

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.

Ok, thank you!

Thanks for the answer!